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?
✗ Incorrect
Request-response requires the sender to wait for a reply before continuing.
In event-driven architecture, how do services communicate?
✗ Incorrect
Event-driven systems use asynchronous events to notify services without waiting.
Which pattern is better for decoupling services in microservices?
✗ Incorrect
Event-driven architecture decouples services by using asynchronous events.
What is a downside of request-response communication?
✗ Incorrect
Request-response can cause services to wait and be tightly coupled.
Which scenario fits event-driven communication best?
✗ Incorrect
Event-driven suits scenarios where multiple systems react independently to events.
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.