.NET Architecture & System Design Interview Question #120

What is an integration event?

Microservices, API Gateway, Service Communication & Event-Driven Architecture Mid-Level Intermediate

Quick Interview Answer

An integration event communicates a meaningful fact across service or bounded-context boundaries. It is part of an external contract and should be designed for consumers that do not share the producer's internal domain model.

Detailed Explanation

An integration event communicates a meaningful fact across service or bounded-context boundaries. It is part of an external contract and should be designed for consumers that do not share the producer's internal domain model.

Integration events should be stable, versionable, and contain the information consumers legitimately need. Internal domain events do not automatically need to be published externally.

Code Example

Domain event:
OrderConfirmed

Mapping boundary
      |
Integration event:
OrderConfirmedIntegrationEvent
      |
Message Broker