# Event-Driven Architecture

Record: `arch:event-driven-architecture`
Kind: style
Layer: [Execution Core](https://banes-lab.com/records/layer/execution-core.md)
Severity: contextual
Scope: service, integration, system
Canonical: https://banes-lab.com/ontology#arch-event-driven-architecture

## Repair

- Refactored by: Publish Event, Add Outbox, Add Consumer Contract
- Detected by: missing correlation IDs, direct synchronous chains
- Violated by: non-idempotent consumers, undocumented event schemas
- Measured by: event contract coverage, [retry safety](https://banes-lab.com/records/lex/retry-safety.md)
- Enforced by: schema registry, idempotency tests

## requires

- [Events](https://banes-lab.com/records/lex/events.md)
- [Message Contract](https://banes-lab.com/records/lex/message-contract.md)
- [Idempotency](https://banes-lab.com/records/arch/idempotency.md)

## reinforces

- [Low Coupling](https://banes-lab.com/records/arch/low-coupling.md)
- [Asynchronous Communication](https://banes-lab.com/records/arch/asynchronous-communication.md)

## enables

- [Event Sourcing](https://banes-lab.com/records/arch/event-sourcing.md)
- [CQRS](https://banes-lab.com/records/arch/command-query-responsibility-segregation.md)
- [Saga](https://banes-lab.com/records/lex/saga.md)

## conflicts-with

- [Hidden Temporal Coupling](https://banes-lab.com/records/lex/hidden-temporal-coupling.md)

## tensions-with

- [Debuggability](https://banes-lab.com/records/lex/debuggability.md)
- [Strong Consistency](https://banes-lab.com/records/lex/strong-consistency.md)

## tensions

- [Event-Driven Architecture Debuggability](https://banes-lab.com/records/tension/debuggability-event-driven-architecture.md)
- [Event-Driven Architecture Strong Consistency](https://banes-lab.com/records/tension/event-driven-architecture-strong-consistency.md)

## referenced-by

- [Observer Pattern](https://banes-lab.com/records/arch/observer-pattern.md)
- [Choreography](https://banes-lab.com/records/arch/choreography.md)
- [Event Bus](https://banes-lab.com/records/arch/event-bus.md)
- [Domain Events](https://banes-lab.com/records/arch/domain-events.md)
- [Asynchronous Communication](https://banes-lab.com/records/arch/asynchronous-communication.md)
- [Idempotency](https://banes-lab.com/records/arch/idempotency.md)
