Loading course…
Loading course…
Created by Shaunak Ghosh
Design real-time features that feel instantaneous at scale by connecting UX latency/freshness expectations to transport choices, scalable event fanout, and correctness primitives. You’ll learn when to use polling vs WebSockets vs SSE, how to make retries safe with idempotency and snapshots, how to ship optimistic UI with reliable rollback, and how offline/reconnect and E2EE constraints change your architecture decisions.
7 modules • Each builds on the previous one
Define what “instant” means (perceived latency budgets, jitter tolerance, update frequency) and how products like Uber, Figma, WhatsApp, and Notion map UX expectations to consistency guarantees (eventual, causal, strong) and failure modes.
Compare polling, long-polling, Server-Sent Events, and WebSockets for real-time updates: connection lifecycle, intermediaries (CDNs/proxies), mobile radio wakeups, heartbeats, and when to pick each.
How “millions of updates per second” works: pub/sub, topic partitioning, sharding by geography, edge fanout, presence channels, rate limiting, backpressure, and delta compression for feeds and maps.
The primitives that make real-time safe: event IDs, Lamport/vector clocks (conceptually), causal ordering, deduplication, idempotent writes, exactly-once illusions, and checkpointing snapshots vs logs.
Make apps feel instant: local-first writes, speculative rendering, server acks, rollback vs forward-fix, conflict UI, and reconciling optimistic state with authoritative state under races and partial failure.
Design for offline and flaky networks: local persistence, outbox/inbox queues, exponential backoff with jitter, resync strategies (diff, snapshot, log replay), conflict handling on reconnect, and reconnect storm mitigation.
Model WhatsApp-like messaging: sent/delivered/read semantics, device fanout, acknowledgements, ordering, retries, and how end-to-end encryption (e.g., Signal-style) constrains server visibility while preserving delivery UX.
Begin your learning journey
In-video quizzes and scaffolded content to maximize retention.