Learning on Web Dev Open is free for all.

System Design & Performance > Front-end system designA chat where the messages arrive in order
Phase 06Front-end system design291 of 434

A chat where the messages arrive in order

Polling, SSE or WebSocket chosen on constraints, plus ordering, delivery states, reconnection and the gap you missed while disconnected.

Build60 minAI adversary

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Choose a transport from the requirements rather than by default
  • Design message ordering that survives clock skew
  • Reconnect and backfill without duplicating or losing messages
Ask the community

Loading…