agentleFS
rade-nugrohorade-nugroho/Agentic-Enteprises-Skill/event-driven-architecture/SKILL.md

event-driven-architecture

Skill9 starsChanged 7 months agoMITView on GitHub

Guides event-driven systems—pub/sub, point-to-point, event sourcing, CQRS, schema versioning (Avro/JSON Schema), ordering, partitioning, delivery guarantees, idempotency, exactly-once tradeoffs, transactional outbox/inbox, choreography vs orchestration, sagas, dead-letter queues, replay, stream vs discrete events, microservice boundaries. Use when the user asks for event-driven architecture, event sourcing, CQRS, pub/sub, Kafka events, outbox pattern, idempotent consumer, event choreography, saga orchestration, dead letter queue, or event schema versioning—not microservice code only (microservices-developer), enterprise API/iPaaS only (enterprise-integration-api-developer), EDI (edi-engineer), classified promotion (classified-software-devsecops-engineer), solvers (operations-research-algorithm-developer), generic CRUD (senior-software-engineer).

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use performance-profiling.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • conorluddySkill

    performance-profiling

    Instruments integration and performance analysis workflows for iOS apps. Use when profiling CPU usage, memory allocation, network activity, or energy consumption. Covers Time Profiler, Allocations, Leaks, Network instruments, and performance optimization strategies.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When to use write models, projections, snapshots, and read-model consistency.

    line 73
  2. Distinctive:

    Prefer explicit contracts (schemas, AsyncAPI/CloudEvents metadata) over implicit JSON blobs

    line 106
  3. Distinctive:

    Keep commands and events distinct—events are facts.

    line 108
  4. Distinctive:

    Avoid chatty orchestration over the bus.

    line 109

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Event-Driven Architecture

When to Use

  • Design event-driven integration between bounded contexts or microservices
  • Choose pub/sub vs point-to-point, topics vs queues, and broker capabilities
  • Model domain events, integration events, and command vs event semantics
  • Apply event sourcing or CQRS at architecture level (not framework tutorials only)
  • Define schemas, compatibility rules, and event schema versioning strategy
  • Specify ordering, partition keys, and delivery guarantees (at-least-once, etc.)
  • Design idempotent consumers, deduplication, and exactly-once tradeoffs
  • Implement transactional outbox or inbox for reliable publish/consume
  • Decide choreography vs orchestration and saga compensation at pattern level
  • Operate dead-letter queues, replay, and stream reprocessing safely
  • Distinguish stream processing (Kafka Streams, Flink) from discrete business events

When NOT to Use

  • Implement microservice code, gRPC/REST APIs, or twelve-factor deployables only → microservices-developer
  • Design enterprise iPaaS hubs, canonical models, B2B partner APIs, or API gateway programs only → enterprise-integration-api-developer
  • Map X12/EDIFACT segments, AS2/VAN, or EDI partner certification → edi-engineer
  • Build generic application features without event/messaging architecture → senior-software-engineer
  • Operate classified air-gapped pipelines, ATO evidence, cleared promotion → classified-software-devsecops-engineer
  • Formulate VRP, MIP, scheduling, or optimization solvers → operations-research-algorithm-developer
  • CI/CD YAML, GitOps, and release automation only → devops
  • Landing zone, VPC, and managed cloud provisioning → cloud-engineer

Related skills

NeedSkill
Service boundaries, gRPC/REST, circuit breakers, contract testsmicroservices-developer
Enterprise integration hub, OpenAPI/AsyncAPI, iPaaS, B2B gatewaysenterprise-integration-api-developer
EDI standards and partner file exchangeedi-engineer
Application code and refactoring without EDA focussenior-software-engineer
Classified DevSecOps and artifact promotionclassified-software-devsecops-engineer
OR models, routing, allocation solversoperations-research-algorithm-developer
Kafka/Rabbit operational platform (brokers, K8s)platform-engineer, devops
Cross-system ADRs and NFR sign-offsenior-system-architecture
Pipeline security and supply chaindevsecops

Core Workflows

1. Scope and event boundaries

Define event types, producers/consumers, sync vs async boundaries, and non-goals.

See references/event_driven_architecture_scope.md.

2. Messaging and brokers

Select patterns, topics/queues, partitioning, and broker fit (Kafka, Pulsar, SNS/SQS, etc.).

See references/messaging_patterns_and_brokers.md.

3. Event sourcing and CQRS

When to use write models, projections, snapshots, and read-model consistency.

See references/event_sourcing_and_cqrs.md.

4. Reliability, idempotency, outbox

Delivery semantics, deduplication, outbox/inbox, and failure handling.

See references/reliability_idempotency_outbox.md.

5. Orchestration, choreography, sagas

Coordinate long-running flows without turning the bus into a distributed monolith.

See references/orchestration_choreography_sagas.md.

6. Schema governance and operations

Version events, operate DLQs, replay, and observability for event pipelines.

See references/schema_governance_operations.md.

Outputs

  • Event catalog — event name, schema version, producer, consumers, SLAs, PII classification
  • Context diagram — services, topics/queues, sync fallbacks, trust zones
  • Consistency note — outbox/saga/choreography choice with compensation and idempotency keys
  • Partitioning and ordering spec — keys, guarantees, hot-partition risks
  • Schema compatibility matrix — backward/forward rules, deprecation timeline
  • Operations runbook — DLQ drain, replay procedure, lag alerts, poison-message handling

Principles

  • Prefer explicit contracts (schemas, AsyncAPI/CloudEvents metadata) over implicit JSON blobs
  • Design consumers idempotent by default; treat exactly-once as a bounded, measured goal
  • Keep commands and events distinct—events are facts; commands request work
  • Avoid chatty orchestration over the bus; sagas compensate, they do not hide missing boundaries
  • Make failure observable—correlation ID, structured errors, DLQ with actionable payloads
  • Replay is a product feature—document ordering, side effects, and deduplication before reprocessing

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.