Distributed messaging queue
hard 32 minA distributed messaging queue spreads messages over many machines.
Where it shows up
The same pattern appears across everyday software.
Apache Kafka
Partitioned, replicated logs with leaders, in-sync replicas and consumer groups. Clients fetch metadata and talk to the leaders directly.
Apache Pulsar
Brokers serve the traffic and store messages in a separate BookKeeper cluster, so serving and storing can grow separately.
Amazon SQS
One web address in front of many servers. Standard queues store copies on several of them and deliver at least once. FIFO queues use message groups as the key.
RabbitMQ quorum queues
A queue with a leader and followers that agree by the Raft protocol: a majority must have a message before it is confirmed.
Amazon Kinesis Data Streams
A stream is a set of shards. The partition key of a record is hashed to choose the shard, and order holds inside it.
Order processing
All events of an order use its id as the key. Created, paid and shipped stay in order, while a million orders run in parallel.