Glossary

Message Broker

A message broker is an intermediary that accepts messages from producers and delivers them to consumers. It decouples services: the sender does not know the receiver and does not wait for a reply. RabbitMQ, Kafka, and Amazon SQS are popular brokers.

Exchange and Queue (RabbitMQ)

A producer sends a message to an exchange. The exchange routes it by rules into one or more queues. A consumer reads from the queue. If the consumer is unavailable, the message waits in the queue.

Topic and Partition (Kafka)

Kafka stores messages in topics split into partitions. Messages are not deleted after reading — they can be replayed. Ideal for event streaming and audit logs.

When broker, when HTTP

HTTP is a synchronous request-response. A broker is async delivery with guarantees. Use a broker when: the sender must not wait, the consumer can be temporarily unavailable, or a single message must reach multiple consumers.