Grokking the System Design Interview

0% completed

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

In modern web applications, real-time communication between clients and servers is crucial for delivering dynamic, responsive user experiences. Users expect to see new chat messages, notifications, or live data instantly without needing to refresh the page. To achieve this, developers can choose from several techniques: Polling, Long-Polling, WebSockets, and Webhooks. Each approach has its own mechanism, advantages, and trade-offs.

Polling

What it is: Polling is the simplest form of checking for updates

.....

.....

.....

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

Nemanja Cukaric

· 10 months ago

Add SSE and Pub/Sub architecture

Show 1 reply
Deepak Gunaraj

Deepak Gunaraj

· 2 years ago

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

Sachin Puranik

Sachin Puranik

· a year ago

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