Networking

Long polling

A pull that, if there's nothing, waits a while with the connection open for something to arrive before returning empty.

Example

Each question waits up to 20 seconds: you go from 3,600 questions per hour to about 180.

Test yourself: Long polling

Real time: long polling, WebSockets and SSE

With long polling, the server answers as soon as it gets the request, even if there's nothing new.

Lessons that use it

More networking terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.