Skip to content
Ameen Abozaid
Planned lessonARC-009-L02

APIs and events

  • Lesson 2 of 8
  • Architect
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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.