CS FundamentalsHardProduct-company placement
A service calls three downstream APIs using one shared pool of 200 threads. When one API becomes very slow, all 200 threads end up waiting on it and requests that need only the healthy APIs fail too. Which pattern most directly prevents this?
- A. Retry with exponential backoff
- B. Bulkhead: a separate, bounded pool (or concurrency limit) for each dependency
- C. Cache-aside for all responses
- D. Increasing the shared pool to 1000 threads
Correct answer: B. Bulkhead: a separate, bounded pool (or concurrency limit) for each dependency
Bulkheads isolate resources per dependency, so a slow one can exhaust only its own compartment. Retries make the overload worse, and a bigger shared pool only delays the same exhaustion; a circuit breaker would complement the bulkhead.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- In STRIDE threat modelling, a user denies having approved a large transfer, and the system cannot prove otherwise. Which threat is this…
- A forum shows user comments, and an attacker posts a comment containing a script tag that runs in other users' browsers. Which is the…
- A popular product page is cached with a fixed 60-second TTL. Every minute, as the entry expires, thousands of requests miss at once and…
- According to the cone of uncertainty (Boehm, McConnell), at the initial-concept stage a project's eventual effort can differ from a…
- A team uses feature toggles. Which kind should normally be deleted soon after the feature is fully launched?
- A flight-control system uses N-version programming: three teams independently write the same module from one specification, and a voter…