Design: chat and messaging

The core idea

A chat service keeps a conversation available when its participants come and go.

It accepts messages, establishes their order, and lets devices catch up after losing a connection.

In this lesson

  • What does “sent” promise?
  • Conversation history and live delivery
  • Accepting one message
  • The data and API behind the example
  • Catching up without losing a message between requests
  • One account, several devices
  • Groups change the delivery work
  • Membership, retention and failure
  • Run the offline-recipient example

Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.