Chat Application System Design

Diagram13 nodesEngineering · Chat ArchitectureMade from one prompt
Read-only preview

The prompt

Create a system design diagram for a chat application

Make your own version

About the framework

Trace the components of a chat service

This architecture example contains eleven components and twelve connections. A mobile or web client reaches a load balancer, which connects to two WebSocket servers and a REST API server. Both WebSocket servers connect to Redis Pub/Sub, while the REST server connects to Kafka.

The remaining arrows connect Redis to PostgreSQL and Kafka to PostgreSQL, S3, Elasticsearch, and push notifications. These are schematic links: the example does not draw the application workers responsible for persistence, indexing, media handling, or notification delivery. It also leaves presence, message ordering, and reconnection behavior unspecified.

Use the diagram to structure a design discussion around one message's journey. Add the services and acknowledgments needed to explain what happens before a sender sees success, what an offline recipient receives, and how a retried message is handled. Supply scale and delivery requirements before choosing those details.

What's included

What you get

  • Eleven labeled architecture components with twelve connections
  • Two WebSocket servers and one REST API server behind a load balancer
  • Redis Pub/Sub and Kafka shown as separate messaging components
  • PostgreSQL, S3, Elasticsearch, and a push-notification component
Diagram

Chat Application System Design

system-designchatwebsocketarchitecturetech

✦ Free preview · Sign in to use

Frequently asked questions

Common questions

Does this show the complete message-delivery sequence?

No. It shows component connections without ordered sends, acknowledgments, or retry steps. Ask for a sequence view of a specific scenario, such as sending to an offline user.

Are database writes handled directly by Redis in this design?

The example draws an arrow from Redis Pub/Sub to PostgreSQL but does not specify the application logic behind it. Add a persistence service and define its responsibilities before implementation.

Where are attachments and notifications represented?

S3 Media Store and Push Notification both connect from Kafka in the sample. Upload initiation, media access, notification providers, and delivery failures are not drawn.

Chat Application System Design

Free to start. No credit card required.

Free preview · Sign in to use