Competing Consumers vs Fan-Out Performance

Competing Consumers vs Fan-Out Performance

animation
amqp
protocols
messaging
Try Set number of consumers to 10 and change processing time per message.
Observe Compare Messages per consumer and Broker memory (messages) with 10 consumers.
Explain Explain why 10 competing consumers scale throughput linearly.

Technical boundaries. Competing consumers divide the message rate evenly. Fan-out gives every consumer the full message rate, and throughput uses the same processing time for every consumer.

Note

Adjust message rate, consumer count, and processing time to see how the two patterns perform differently. Competing consumers excel at distributing load, while fan-out ensures every consumer sees every message.

Back to the chapter