Bird
0
0

How should you redesign service boundaries?

hard📝 Conceptual Q8 of 15
Microservices - Migration from Monolith
You have a microservice handling customer orders and inventory updates. Inventory updates require high throughput and low latency, but order processing is complex and slow. How should you redesign service boundaries?
AKeep both functions in one service for easier coordination
BUse a shared database to synchronize both functions
CMerge inventory updates into a third service
DSeparate inventory updates and order processing into different services
Step-by-Step Solution
Solution:
  1. Step 1: Analyze differing requirements

    Inventory updates need speed; order processing is complex and slower.
  2. Step 2: Apply separation for scalability

    Separating services allows independent scaling and optimization for each function.
  3. Final Answer:

    Separate inventory updates and order processing into different services -> Option D
  4. Quick Check:

    Separate by performance needs = B [OK]
Quick Trick: Split services by differing performance needs [OK]
Common Mistakes:
  • Keeping slow and fast functions together
  • Using shared database for sync
  • Adding unnecessary third service

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes