Bird
0
0

In an event choreography setup, if Service A emits 'OrderCreated' and Service B listens and emits 'PaymentProcessed', what happens if Service B crashes?

medium📝 Predict Output Q5 of 15
Kafka - Event-Driven Architecture
In an event choreography setup, if Service A emits 'OrderCreated' and Service B listens and emits 'PaymentProcessed', what happens if Service B crashes?
AService A retries sending 'OrderCreated' automatically.
BNo 'PaymentProcessed' event is emitted, but Service A continues normally.
CThe orchestrator triggers Service B again immediately.
DAll services stop until Service B recovers.
Step-by-Step Solution
Solution:
  1. Step 1: Understand choreography independence

    Services act independently; if Service B crashes, it won't emit events but others keep running.
  2. Step 2: Check other options

    There is no orchestrator to retry or stop all services in choreography.
  3. Final Answer:

    No 'PaymentProcessed' event is emitted, but Service A continues normally. -> Option B
  4. Quick Check:

    Choreography services run independently [OK]
Quick Trick: In choreography, one service failure doesn't stop others [OK]
Common Mistakes:
  • Assuming automatic retries without orchestration
  • Thinking all services stop on one failure
  • Confusing choreography with orchestration

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes