Bird
0
0

Which approach best fits this requirement?

hard📝 Application Q8 of 15
Kafka - Event-Driven Architecture
You want to design a Kafka system where multiple services react to events independently, but you also need to ensure a strict order of operations for some workflows. Which approach best fits this requirement?
ACombine event choreography for independent reactions and orchestration for ordered workflows.
BUse only event choreography for all workflows.
CUse only orchestration for all services without events.
DReplace Kafka with direct API calls for strict ordering.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze requirement for independence and order

    Choreography allows independent reactions; orchestration ensures strict order.
  2. Step 2: Choose combined approach

    Combining both approaches fits mixed needs better than using only one or direct calls.
  3. Final Answer:

    Combine event choreography for independent reactions and orchestration for ordered workflows. -> Option A
  4. Quick Check:

    Mix choreography and orchestration for flexibility and order [OK]
Quick Trick: Mix choreography and orchestration for best of both worlds [OK]
Common Mistakes:
MISTAKES
  • Using only choreography when order is needed
  • Using only orchestration losing independence
  • Replacing Kafka with direct calls unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes