Grokking the System Design Interview
Vote

0% completed

Polling vs. Long-Polling vs. WebSockets vs. Webhooks

A customer pays for an order in your shop. Your server does not charge the card itself. A payment provider such as Stripe does that, and confirmation takes a few seconds. How does your system learn that the payment cleared?

The same question appears everywhere in system design. Something happened in one place. Another part of the system needs to hear about it. This lesson compares four ways to deliver that news: polling, long polling, WebSockets, and webhooks.

The first three deliver updates from a server to its clients

.....

.....

.....

Like the course? Get enrolled and start learning!
Nemanja Cukaric

Nemanja Cukaric

· 10 months ago

Add SSE and Pub/Sub architecture

Show 1 reply
Sachin Puranik

Sachin Puranik

· 2 years ago

server side events , is also a good candidate to be added here.

Deepak Gunaraj

Deepak Gunaraj

· 2 years ago

Where are the WebSockets as they are considered bi-directional and an excellent alternative for chat applicatons?