← All interview questions

Skill Zuno · skillzunos.com · System Design

Polling and Streaming interview questions

Prepare for Polling and Streaming interviews on Skill Zuno. This practice book covers Polling and Streaming interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open Polling and Streaming on Skill Zuno

Also see the Polling and Streaming tutorial.

Polling and streaming are two ways for clients to get updates from a server. With polling the client asks repeatedly; with streaming the server pushes data over an open connection as soon as it changes. Real-time features such as chat, live scores and notifications depend on choosing well. Interviews compare short polling, long polling, Server-Sent Events and WebSockets, and how to scale persistent connections.

Sample Polling and Streaming interview questions

What is the difference between short polling and long polling?

Short polling sends a request every few seconds and usually gets an empty reply. Long polling keeps each request open until there is data or a timeout, so updates arrive quickly with fewer wasted requests.

When should you use Server-Sent Events instead of WebSockets?

When data only flows from server to client, such as notifications, feeds or streaming AI responses. SSE runs over plain HTTP, reconnects automatically and passes through proxies more easily.

How do you scale a WebSocket chat service?

Run many connection servers behind a load balancer and keep a registry of which server holds each user. Publish messages through Redis pub/sub or Kafka so the server holding the recipient delivers it.

What happens when a WebSocket server restarts?

All its connections drop. Clients must reconnect with backoff and jitter and fetch messages they missed since their last received ID, so the server should not be the only copy of undelivered messages.

Is polling ever the right choice?

Yes, for infrequent updates, simple clients, or when infrastructure cannot keep connections open. Checking a job's status every 30 seconds is fine with polling.

What you can practice

  • Polling and Streaming interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • System Design topics alongside Polling and Streaming on skillzunos.com

More System Design interview questions

All interview questions