internalsGet Pro

System Design · Module 17

Realtime systems, chat and social feeds

Lessons
14
Free
0
Reading
~6 h

Your progress

0 / 14 lessons done

Sign in to track

Lessons

  1. WebSockets, SSE and long polling comparedLive screens need more than an open connection. You must choose how updates travel, recover after interruptions, and prevent slow clients from consuming unlimited server memory.19 min
  2. Scaling WebSocket connections to millionsLong-lived connections consume resources even when customers send nothing. Scaling them requires connection ownership, bounded buffers and a recovery path that survives server failures.20 min
  3. Presence: tracking online statusOnline indicators affect whether people expect an immediate reply. Building them requires handling silent failures, multiple devices and stale updates without making promises the network cannot support.20 min
  4. Data modeling for social networksA social feature connects records that change independently. Your model determines whether retries create duplicates, deleted posts return, and private content reaches the wrong reader.19 min
  5. Follow graphs: storing relationships at scaleFollow relationships drive feeds, notifications and audience lists. Their storage must support both ordinary accounts and unusually popular accounts without turning delayed copies into incorrect permissions.20 min
  6. Feed generation: fan-out on write vs on readPersonalized feeds move work between publishing and reading. Understanding that choice helps you control page latency, background work and the visibility of new content.20 min
  7. Hashtags: extracting and indexing tagsHashtags turn user-written text into database keys. Small differences in parsing, normalization or edit handling can split results or leave removed content discoverable.19 min
  8. Reactions and likes: data modelingLikes combine personal state with a shared total. You need both to behave correctly when requests repeat, users change their minds, or one item becomes unusually popular.19 min
  9. Design: live reactions on a video streamLive interfaces often need a fresh impression of activity, not a permanent record of every action. That difference changes the data model, retry policy and amount of work each phone must do.29 min
  10. Design: unread message indicatorsUnread indicators combine user intent, ordered messages and delayed network requests. The same design problems appear in inboxes, support tools and notification centres.29 min
  11. Design: live sports commentaryLive commentary combines a small write stream with a large broadcast audience. The same design problems appear in incident updates, election coverage and live announcements.30 min
  12. Design: tagging people in photosA photo tag connects somebody’s identity to another person’s content. Building it safely requires more than storing a name: consent, access checks, retries and delayed notifications must agree.30 min
  13. Design: a chat app like WhatsAppChat exposes failures that ordinary request-response APIs can hide. A connection can disappear after a message commits, and several devices must still agree about what happened.30 min
  14. Design: a social media news feedFeeds combine cheap reads with expensive distribution. You need to control that distribution without making a cache responsible for permissions, deletion or durable storage.30 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 21

Open glossary

Canonical key

The representation an application stores and compares after applying its agreed normalization rules.