Problem Statement
Which statement best distinguishes a message queue from a log/stream platform?
Explanation
Queues are good for task distribution: a message is consumed once by any consumer in the group. Streams (like Kafka) persist an append-only log; many consumer groups can read the same data independently.
Pick queues for fan-out of work, and streams for analytics, multiple downstreams, or replay.
Code Solution
SolutionRead Only
Queue: workers pull → ack Stream: topic partitions → consumer groups with offsets
Practice Sets
This question appears in the following practice sets:
