0
0
Microservicessystem_design~5 mins

Message brokers (Kafka, RabbitMQ) in Microservices - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a message broker in microservices?
A message broker is a software that helps different microservices talk to each other by sending and receiving messages in a safe and organized way.
Click to reveal answer
intermediate
How does Kafka ensure message durability?
Kafka stores messages on disk and replicates them across multiple servers, so messages are safe even if one server fails.
Click to reveal answer
intermediate
What is the main difference between Kafka and RabbitMQ?
Kafka is designed for high-throughput and streaming data with a log-based storage, while RabbitMQ focuses on flexible routing and supports many messaging patterns.
Click to reveal answer
beginner
What is a queue in RabbitMQ?
A queue is a place where messages wait until a microservice is ready to process them, ensuring messages are handled one by one or in order.
Click to reveal answer
beginner
Why use message brokers in microservices architecture?
They help microservices communicate asynchronously, improve system reliability, and allow scaling by decoupling services.
Click to reveal answer
Which feature is Kafka best known for?
AHigh-throughput and log-based message storage
BFlexible message routing with exchanges
CBuilt-in message transformation
DAutomatic message prioritization
In RabbitMQ, what is an exchange used for?
AStoring messages permanently
BCompressing messages
CRouting messages to queues based on rules
DEncrypting messages
What does asynchronous communication mean in microservices?
AServices use the same database
BServices wait for each other to respond immediately
CServices communicate only once a day
DServices send messages and continue without waiting
Which of these is NOT a benefit of using message brokers?
ADecoupling microservices
BForcing synchronous calls
CImproving system reliability
DEnabling scaling
How does RabbitMQ handle message delivery?
AMessages are routed to queues and delivered to consumers
BMessages are stored in topics only
CMessages are deleted immediately after sending
DMessages are broadcast to all services
Explain how Kafka and RabbitMQ differ in their approach to message handling and use cases.
Think about storage style and routing flexibility.
You got /4 concepts.
    Describe why message brokers are important in a microservices architecture and how they improve system design.
    Consider communication style and system robustness.
    You got /4 concepts.