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
.....
.....
.....
Nemanja Cukaric
· 10 months ago
Add SSE and Pub/Sub architecture
Sachin Puranik
· 2 years ago
server side events , is also a good candidate to be added here.
Deepak Gunaraj
· 2 years ago
Where are the WebSockets as they are considered bi-directional and an excellent alternative for chat applicatons?