Bird
0
0

An API Gateway configuration uses the Aggregator pattern but clients report slow responses. What is a likely cause?

medium📝 Debug Q6 of 15
Rest API - Advanced Patterns
An API Gateway configuration uses the Aggregator pattern but clients report slow responses. What is a likely cause?
AThe gateway waits for all backend services to respond before replying.
BThe gateway caches responses too aggressively.
CThe gateway forwards requests without aggregation.
DThe gateway uses load balancing incorrectly.
Step-by-Step Solution
Solution:
  1. Step 1: Understand Aggregator pattern behavior

    Aggregator waits for all backend services to respond to combine results.
  2. Step 2: Identify cause of slow response

    If any backend is slow, the gateway delays response until all replies arrive.
  3. Final Answer:

    The gateway waits for all backend services to respond before replying. -> Option A
  4. Quick Check:

    Aggregator slow = waiting for all services [OK]
Quick Trick: Aggregator waits for all backend replies before responding [OK]
Common Mistakes:
MISTAKES
  • Blaming caching for slowness
  • Confusing forwarding without aggregation
  • Misunderstanding load balancing role

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes