← Quiz: Kafka: all 10 questions
Quiz: Kafka · Question 5 of 10
When is a direct REST call better than publishing an event?
When is a direct REST call better than publishing an event?
- A.When the caller needs an immediate answer to continue (e.g. the course's fee)
- B.When ten services must react
- C.When the receiver is often down
- D.When events should be replayed later
Answer & explanation
Correct answer: When the caller needs an immediate answer to continue (e.g. the course's fee)
order-service calls course-api for the fee, but announces "order placed" as an event.
Can you get the rest right without peeking?
Take the timed Quiz: Kafka quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →