7. A new analytics service must process the last 7 days of order events. Which broker style makes that straightforward?
- A log-based broker with retention, read from an earlier offset
- A classic queue that deletes acknowledged messages
- A synchronous REST call
- An in-memory event bus
जवाब देखें
जवाब: A log-based broker with retention, read from an earlier offset
Logs retain events, so a new consumer group can start from an earlier position and replay.
पाठ: Queues, Topics and Logs
9. How do log-based brokers usually guarantee that events for one order are processed in sequence?
- They order every event globally
- They retry until order is correct
- Events with the same key go to the same partition, which is ordered
- Consumers sort events by timestamp
जवाब देखें
जवाब: Events with the same key go to the same partition, which is ordered
Partitioning by entity key keeps that entity's events in one ordered partition.
पाठ: Ordering, Retries and Dead Letters