Create a system design diagram for a chat application
About the framework
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
Chat Application System Design
✦ Free preview · Sign in to use
Frequently asked questions
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.
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.
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.
Free to start. No credit card required.