0
0
Microservicessystem_design~5 mins

Request-response vs event-driven in Microservices - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is the main characteristic of the request-response communication pattern?
In request-response, a service sends a request and waits for a direct reply from another service before continuing.
Click to reveal answer
beginner
How does event-driven communication differ from request-response?
Event-driven communication uses events to notify other services asynchronously, without waiting for an immediate reply.
Click to reveal answer
beginner
Give a real-life example of request-response communication.
Ordering food at a restaurant: you place an order (request) and wait for the waiter to bring your food (response).
Click to reveal answer
beginner
Give a real-life example of event-driven communication.
Fire alarm system: when smoke is detected, the alarm (event) sounds and multiple systems respond independently without waiting.
Click to reveal answer
intermediate
What is a key advantage of event-driven systems over request-response in microservices?
Event-driven systems improve scalability and decoupling because services do not wait for replies and can process events independently.
Click to reveal answer
Which communication pattern involves waiting for a direct reply before proceeding?
AEvent-driven
BMulticast
CBroadcast
DRequest-response
In event-driven architecture, how do services communicate?
AAsynchronously through events
BSynchronously with immediate replies
COnly through direct API calls
DUsing shared databases
Which pattern is better for decoupling services in microservices?
AEvent-driven
BMonolithic
CRequest-response
DSynchronous polling
What is a downside of request-response communication?
AServices do not get immediate feedback
BIt can cause tight coupling and waiting delays
CIt is always asynchronous
DIt requires event brokers
Which scenario fits event-driven communication best?
AClient requests data and waits for response
BUser logs in and waits for confirmation
CSensor sends data to multiple systems when triggered
DSynchronous database query
Explain the differences between request-response and event-driven communication in microservices.
Think about how services wait or don't wait for answers.
You got /5 concepts.
    Describe a real-life example for each communication pattern and how it relates to microservices.
    Use everyday situations to explain technical ideas.
    You got /4 concepts.