Bird
0
0

In a choreography system, a developer notices that some events are processed multiple times causing duplicate actions. What is the likely cause?

medium📝 Debug Q7 of 15
Kafka - Event-Driven Architecture
In a choreography system, a developer notices that some events are processed multiple times causing duplicate actions. What is the likely cause?
AOrchestrator triggering events twice.
BLack of idempotency in event handlers.
CKafka topics are deleted accidentally.
DServices are communicating via direct API calls.
Step-by-Step Solution
Solution:
  1. Step 1: Identify cause of duplicate processing

    In choreography, duplicate events can cause repeated actions if handlers are not idempotent.
  2. Step 2: Eliminate other options

    Orchestrator is not used in choreography, topic deletion causes loss not duplicates, direct API calls unrelated.
  3. Final Answer:

    Lack of idempotency in event handlers. -> Option B
  4. Quick Check:

    Idempotency prevents duplicate event effects [OK]
Quick Trick: Make event handlers idempotent to avoid duplicates [OK]
Common Mistakes:
MISTAKES
  • Blaming orchestrator in choreography
  • Confusing topic deletion with duplicates
  • Ignoring event handler design

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes