Skip to content

Design Document

Karan Doshi edited this page Mar 18, 2022 · 6 revisions

Design

Capture1111

Discussion

Why Use Webhooks Instead of Polling an API?

  • Webhooks are far more efficient than polling, from a resource and communication standpoint
  • Webhooks are superior to polling in terms of freshness of data, the efficiency of communication, and infrastructure costs.

We recommend against the use of polling due to HTTP traffic and server load concerns. Let's say you set up a job running every minute that polls an API, This job runs 24 hours a day, 365 days a year. That’s over 500,000 queries per year to the service when in reality there are probably only 20 to 30 calls per day or most of the calls are in one particular month only.

image

We used Firebase as Database : Firebase is categorized as a NoSQL database program, which stores data in JSON-like documents. Ngrok is a cross-platform application that exposes local server ports to the Internet

Clone this wiki locally