Develop a scalable and reliable messaging system that facilitates asynchronous communication between different parts of an application, even across distributed environments. The system should guarantee message delivery, support various messaging patterns (like publish/subscribe, request/reply), and handle high volumes of messages with minimal latency. It must also ensure fault tolerance and provide mechanisms for message tracking and recovery. Examples include Kafka and RabbitMQ.
Suggested time: 45 minutes
Loading the workspace...
A distributed messaging system looks like a simple publish/subscribe API, but the real challenge is durability without sacrificing throughput. How do you guarantee that no message is ever lost while processing millions per second? The answer shapes every decision in this design.
Publish messages to topics
Subscribe via consumer groups
Configurable delivery guarantees
Message persistence with configurable retention
The building blocks this design relies on, each explained in its own lesson.
Design an API Rate Limiter (medium)
Design a Code Deployment System (medium)
Company guides that list this problem among their sample questions.