Bird
0
0

If Service A receives 10 requests simultaneously and Service B receives 3 requests simultaneously, what happens?

medium📝 Analysis Q13 of 15
Microservices - Resilience Patterns
Consider a microservice system using Bulkhead pattern with two services: Service A and Service B. Each has its own thread pool of size 5. If Service A receives 10 requests simultaneously and Service B receives 3 requests simultaneously, what happens?
AService A processes 5 requests, queues 5; Service B processes all 3 immediately
BService A and B share thread pools, so all 13 requests are processed together
CService A rejects 5 requests; Service B queues all 3
DService A processes all 10 requests immediately; Service B waits
Step-by-Step Solution
Solution:
  1. Step 1: Understand thread pool limits per service

    Each service has a separate thread pool of size 5, so max 5 concurrent requests per service.
  2. Step 2: Analyze request handling per service

    Service A can process 5 requests concurrently and queue the remaining 5. Service B has only 3 requests, all processed immediately.
  3. Final Answer:

    Service A processes 5 requests, queues 5; Service B processes all 3 immediately -> Option A
  4. Quick Check:

    Separate pools limit concurrency per service [OK]
Quick Trick: Each service handles requests up to its thread pool size separately [OK]
Common Mistakes:
MISTAKES
  • Assuming thread pools are shared
  • Thinking all requests are processed immediately
  • Confusing queuing with rejection

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes