Bird
0
0

When designing a payment processing system with microservices for validation, fraud detection, and notification, which architectural approach is preferable and why?

hard📝 Trade-off Q8 of 15
Microservices - Advanced Patterns
When designing a payment processing system with microservices for validation, fraud detection, and notification, which architectural approach is preferable and why?
AUse orchestration to centrally manage the workflow ensuring strict control and error handling.
BUse choreography so each service independently reacts to events for maximum decoupling.
CImplement a monolithic service to avoid complexity in coordination.
DCombine both by orchestrating critical steps and using events for asynchronous notifications.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze system requirements

    Payment processing requires strict control and error handling but benefits from decoupled notifications.
  2. Step 2: Evaluate options

    Use orchestration to centrally manage the workflow ensuring strict control and error handling. offers control but may reduce flexibility. Use choreography so each service independently reacts to events for maximum decoupling. maximizes decoupling but risks lack of control. Combine both by orchestrating critical steps and using events for asynchronous notifications. combines orchestration for critical steps and choreography for notifications, balancing control and flexibility. Implement a monolithic service to avoid complexity in coordination. ignores microservices benefits.
  3. Final Answer:

    C -> Option D
  4. Quick Check:

    Hybrid approach balances control and decoupling [OK]
Quick Trick: Hybrid orchestration and choreography balances control and flexibility [OK]
Common Mistakes:
  • Choosing only choreography for critical workflows
  • Relying solely on orchestration causing tight coupling
  • Ignoring microservices benefits by using monolith

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes