Event driven architecture

From NickCrew/Claude-Cortex · View interactive version

Event driven architecture is an AI agent skill from the GitHub repository NickCrew/Claude-Cortex. Event-driven architecture patterns with event sourcing, CQRS, and message-driven communication. Use when designing distributed systems, microservices communication, or systems requiring eventual consistency and scalability.

How to use this skill

Skill file

Event-Driven Architecture Patterns

Expert guidance for designing, implementing, and operating event-driven systems with proven patterns for event sourcing, CQRS, message brokers, saga coordination, and eventual consistency management.

When to Use This Skill

Core Principles

1. Events as First-Class Citizens

Events represent immutable facts that have occurred in the system. Use past tense naming (OrderCreated, PaymentProcessed) and include all necessary context.

2. Eventual Consistency

Systems achieve consistency over time rather than immediately. Trade strong consistency for higher availability and scalability.

3. Loose Coupling

Services communicate through events without direct dependencies, enabling independent evolution and deployment.

4. Asynchronous Communication

Operations don't block waiting for responses, improving system responsiveness and resilience.

5. Event-Driven Thinking

Design around what happened (events) rather than what to do (commands).

Quick Reference

| Topic | Load reference |

| --- | --- |

| Event structure, types, and characteristics | skills/event-driven-architecture/references/event-fundamentals.md |

| Event sourcing pattern and implementation | skills/event-driven-architecture/references/event-sourcing.md |

| CQRS pattern with read/write separation | skills/event-driven-architecture/references/cqrs.md |

| Message brokers (RabbitMQ, Kafka, SQS/SNS) | skills/event-driven-architecture/references/message-brokers.md |

| Saga pattern for distributed transactions | skills/event-driven-architecture/references/saga-pattern.md |

| Choreography vs orchestration patterns | skills/event-driven-architecture/references/choreography-orchestration.md |

| Eventual consistency and conflict resolution | skills/event-driven-architecture/references/eventual-consistency.md |

| Best practices, anti-patterns, testing | skills/event-driven-architecture/references/best-practices.md |

Workflow

1. Design Phase

2. Implementation Phase

3. Operation Phase

Common Mistakes

Event Design Errors

Consistency Issues

Architecture Mistakes

Operational Gaps

Pattern Selection Guide

Use Event Sourcing When:

Use CQRS When:

Use Sagas When:

Choose Choreography When:

Choose Orchestration When:

Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.