Event-driven design — event notification vs event-carried state transfer, event schemas and registries, choreography vs orchestration, ordering and partition keys, versioning, consumers' idempotency, observability of async flows. Use to design integrations through events (event-driven, pub/sub, choreography, event schema, async integration).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Event Driven Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-event-driven-architecture)
---
name: event-driven-architecture
description: Event-driven design — event notification vs event-carried state transfer, event schemas and registries, choreography vs orchestration, ordering and partition keys, versioning, consumers' idempotency, observability of async flows. Use to design integrations through events (event-driven, pub/sub, choreography, event schema, async integration).
metadata:
category: architecture
---
# Event-driven architecture
## Purpose
Decouple producers and consumers with well-governed events.
**Use when:** domains must react to each other without tight coupling.
**Not for:** request/response needs with immediate answers.
## Inputs
- Domain events, consumers, ordering needs.
## Outputs
- Event catalog with schemas, topology, versioning rules.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "event-driven architecture"` for prior decisions, patterns and anti-patterns.
## Steps
1. **Events.** Define events as facts with owners and schemas in a registry.
Done when each event has an owner and schema.
2. **Topology.** Choose choreography or orchestration per flow.
Done when long flows have an explicit owner.
3. **Ordering.** Pick partition keys preserving needed order.
Done when ordering needs are met.
4. **Evolution.** Backward-compatible changes only; new versions for breaking.
Done when compatibility rules are enforced.
## Best practices
- Producers own schemas.
- Trace context in headers.
- Use the outbox for publishing.
## Common mistakes
- Events as remote procedure calls.
- No schema governance.
## Example
`OrderPlaced` v1 with Avro schema, keyed by orderId; consumers: billing, analytics, email; trace propagated.
## Reusable prompt
```text
Apply the Event-driven architecture skill (.agents/skills/event-driven-architecture/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Design the event catalog, topology, partitioning and versioning rules for the integration.
Return: Event catalog with schemas, topology, versioning rules..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```