Pick the fix
OrderPlaced must reach billing, shipping and analytics, each processing every order once. Design?
Hint 1 of 1
Should each service see every order?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Publish to one topic; each service uses its own consumer group
Correct. Every group gets every event; within a group, instances share the work.
A topic keeps one log that every consumer group reads in full. Each service gets its own group, so all three see every order, and instances within a group share the partitions.
Why not the others?
- B One queue that all three services read from. Each message would reach only one of the three.
- C The order service calls all three over HTTP. Couples the order service to every consumer's availability.
- D Redis pub/sub. Disconnected subscribers lose events.