Recall & Review
beginner
What is synchronous communication in microservices?
Synchronous communication means one service sends a request and waits for the response before continuing. It's like making a phone call and waiting for the other person to answer before talking.
Click to reveal answer
beginner
What is asynchronous communication in microservices?
Asynchronous communication means one service sends a request and continues working without waiting for a response. It's like sending a letter or email and doing other things while waiting for a reply.
Click to reveal answer
intermediate
Name one advantage of synchronous communication.
An advantage is simplicity: the caller knows immediately if the request succeeded or failed, making error handling straightforward.
Click to reveal answer
intermediate
Name one advantage of asynchronous communication.
It improves system scalability and responsiveness because services don't wait and can handle many requests in parallel.
Click to reveal answer
beginner
Give a real-life example of synchronous and asynchronous communication.
Synchronous: Talking on the phone where you wait for a reply. Asynchronous: Sending a text message or email where you don't wait for an immediate response.
Click to reveal answer
In synchronous communication, what does the caller do after sending a request?
✗ Incorrect
In synchronous communication, the caller waits for the response before moving on.
Which communication style is better for handling many requests at the same time?
✗ Incorrect
Asynchronous communication allows handling many requests without waiting, improving scalability.
Which of these is a downside of synchronous communication?
✗ Incorrect
Synchronous calls block the caller until a response arrives, which can slow down the system.
What is a common tool used for asynchronous communication in microservices?
✗ Incorrect
Message queues enable asynchronous communication by decoupling sender and receiver.
If a service needs an immediate answer to proceed, which communication style is preferred?
✗ Incorrect
Synchronous communication is preferred when the caller needs an immediate response.
Explain the difference between synchronous and asynchronous communication in microservices with simple examples.
Think about how you communicate with friends: sometimes you wait for an answer, sometimes you don't.
You got /4 concepts.
Describe one advantage and one disadvantage of synchronous communication in microservices.
Consider how waiting for a reply can help or slow you down.
You got /2 concepts.