0
0
Microservicessystem_design~5 mins

Event-driven vs request-driven in Microservices - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is a request-driven architecture in microservices?
Request-driven architecture means services communicate by sending direct requests and waiting for responses, like making a phone call to ask for information.
Click to reveal answer
beginner
Define event-driven architecture in simple terms.
Event-driven architecture means services react to events or messages sent by others without waiting, like receiving a notification and acting on it when it arrives.
Click to reveal answer
intermediate
What is a key benefit of event-driven architecture over request-driven?
Event-driven architecture allows services to work independently and handle tasks asynchronously, improving scalability and fault tolerance.
Click to reveal answer
intermediate
What is a common challenge when using request-driven communication?
Request-driven communication can cause tight coupling and delays because services wait for responses, which may slow down the system if one service is slow or down.
Click to reveal answer
beginner
Give an example scenario where event-driven architecture is preferred.
When many services need to react to changes independently, like updating inventory, sending notifications, and logging after a purchase, event-driven is preferred.
Click to reveal answer
Which architecture involves services sending direct requests and waiting for responses?
AEvent-driven
BRequest-driven
CBatch processing
DPeer-to-peer
In event-driven architecture, how do services communicate?
ABy reacting to events asynchronously
BBy polling each other continuously
CBy sharing a common database
DBy sending synchronous requests
What is a main advantage of event-driven systems?
ABetter scalability and fault tolerance
BTight coupling between services
CSynchronous communication
DSimpler debugging
Which problem is common in request-driven microservices?
AServices never communicate
BServices are loosely coupled
CServices wait and block on responses
DServices use events to communicate
When is event-driven architecture most useful?
AWhen services never communicate
BWhen immediate response is required
CWhen services share a single database
DWhen services must act independently on changes
Explain the differences between event-driven and request-driven architectures in microservices.
Think about how services talk and wait for each other.
You got /4 concepts.
    Describe a real-world example where event-driven architecture improves system design over request-driven.
    Consider systems with many independent reactions to one action.
    You got /3 concepts.