Bird
0
0

Consider this scenario: Service A sends an event to a message broker, and Service B listens and processes it asynchronously. What is the main advantage of this design?

medium📝 Analysis Q13 of 15
Microservices - Event-Driven Architecture
Consider this scenario: Service A sends an event to a message broker, and Service B listens and processes it asynchronously. What is the main advantage of this design?
AService B can process events at its own pace without blocking Service A.
BService B must respond immediately to Service A's request.
CService A and B share the same database for faster communication.
DService A waits for Service B to finish processing before continuing.
Step-by-Step Solution
Solution:
  1. Step 1: Analyze asynchronous event processing

    Service A sends an event and does not wait; Service B processes independently.
  2. Step 2: Identify the advantage

    This allows Service B to handle events at its own speed without blocking Service A, improving scalability and decoupling.
  3. Final Answer:

    Service B can process events at its own pace without blocking Service A. -> Option A
  4. Quick Check:

    Asynchronous event-driven = decoupled processing [OK]
Quick Trick: Async events let receivers work independently [OK]
Common Mistakes:
MISTAKES
  • Assuming sender waits for receiver
  • Confusing shared database with event broker
  • Expecting immediate response in event-driven

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes