Bird
0
0

In a case study, a microservice experiences slowdowns due to a single database becoming a bottleneck. What practical solution is most likely recommended?

medium📝 Analysis Q6 of 15
Microservices - Real-World Architecture Case Studies
In a case study, a microservice experiences slowdowns due to a single database becoming a bottleneck. What practical solution is most likely recommended?
AImplement database sharding or separate databases per service
BIncrease synchronous calls between services
CMerge all microservices into a monolith
DUse a single shared cache for all services
Step-by-Step Solution
Solution:
  1. Step 1: Identify bottleneck cause

    A single database can limit throughput and scalability.
  2. Step 2: Apply practical fix

    Sharding or separate databases reduce contention and improve performance.
  3. Final Answer:

    Implement database sharding or separate databases per service -> Option A
  4. Quick Check:

    Database partitioning alleviates bottlenecks [OK]
Quick Trick: Partition databases to remove bottlenecks [OK]
Common Mistakes:
  • Increasing synchronous calls worsens bottlenecks
  • Merging services reduces modularity and scalability
  • Using shared cache doesn't solve DB contention

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes