Design a service where clients periodically poll for updates instead of using WebSockets. The server tracks per-client cursors or ETags so clients receive only new events or data since the last poll, minimizing payload size.
Functional requirements
- Register a channel or resource to watch
- Poll endpoint returns deltas since last cursor or 304 Not Modified
- Server maintains ordered event log or version per channel
- Optional long-ish poll hold (near long-poll) within HTTP timeout
Non-functional requirements
- Efficient handling of many pollers without full scans
- Rate limits to prevent abusive tight loops
- Horizontally scalable state with sticky sessions or shared store