Skip to content

Long Polling

Medium — good to knowBackend

ELI5 — The Vibe Check

Long polling is a hack to fake real-time updates before WebSocket existed. Your client asks 'any new messages?' and instead of the server immediately saying 'nope,' it holds the connection open and waits. When a new message arrives, it responds. Then you immediately ask again. It's awkward but it works.

Real Talk

Long polling is a technique where the client sends an HTTP request and the server holds it open until new data is available or a timeout occurs, then responds. The client immediately sends another request. It simulates real-time communication over HTTP without WebSocket support.

When You'll Hear This

"Old chat systems used long polling before WebSocket was available." / "Long polling adds unnecessary overhead — use WebSocket or SSE instead."

Made with passive-aggressive love by manoga.digital. Powered by Claude.