APIs and events
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
compare request-response APIs with event-driven integration.
Planned topics
- Synchronous API: caller waits for an answer; simple, immediate, but couples availability.
- Events: a system publishes a fact (order placed); consumers react later; looser coupling and replay.
- Use APIs for queries and commands needing an immediate answer; events for notifications and propagation of facts.
- Events bring ordering, duplicates, and eventual consistency to handle.
Draft outline details
Demonstration
two flows for stock updates: store scan calls an API versus store scan emits "stock-adjusted" event consumed by inventory and reporting.
Check your understanding
What do events cost in return for looser coupling?
Show answer
Eventual consistency, duplicates, and ordering concerns.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.