event-driven-architecture
Design systems that communicate through events instead of direct service calls. Use when building loosely-coupled, scalable, and resilient architectures.
от sethdford★ 51 звезда на GitHub
Установить event-driven-architecture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Event-Driven Architecture
Build systems where services communicate through immutable events, enabling loose coupling and independent scaling.
Context
You are designing an event-driven system. The user is building integrations across services or needs to decouple components. Read their current architecture and integration patterns.
Domain Context
Based on Gregor Hohpe's Enterprise Integration Patterns and modern event-driven research:
- Event Sourcing: Store state as append-only event log; reconstruct state by replaying events
- Event Bus: Central publish-subscribe; services emit domain events, others react independently
- Choreography vs Orchestration: Choreography = services react to events independently; orchestration = central coordinator directs flow
- Exactly-Once Semantics: Guarantee each event is processed once; requires deduplication at consumer
- Event Versioning: Events evolve over time; old and new consumers must coexist
Instructions
Define Events: For each business process, identify events (UserCreated, OrderPlaced, PaymentProcessed). Include: timestamp, aggregate ID, payload, version.
Design Producer & Consumer: For each service that publishes events, specify topic/channel. For consumers, specify subscription and reaction. Include idempotency key for deduplication.
Choose Messaging Infrastructure: Event bus (RabbitMQ, Kafka, SNS) vs database change data capture (CDC). Bus is simpler, CDC couples to database.
Handle Event Versioning: Publish event version. Consumers validate schema; ignore unknown fields. Plan rollout: old consumers coexist with new producers for transition period.
Establish Observability: Track event publication latency, consumer lag, dead letter queues (failed events). Alert on lag > threshold.
Anti-Patterns
- Synchronous RPC Over Event Bus: Treats event bus like RPC (request-reply). Result: waiting for responses, tight coupling. Guard: Events are fire-and-forget; never wait for a response.
- Event As Database Query: Sends events like "GetUser" and waits. Guard: Events record facts ("UserCreated"), never request actions ("FetchUser").
- No Event Schema: Events evolve chaotically without versioning. Result: incompatible producers and consumers. Guard: Require schema registry; validate all events.
- Lost Events on Consumer Failure: Consumer crashes, event is lost. Guard: Require acknowledgment-based delivery (Kafka); never auto-ack.
Further Reading
- Enterprise Integration Patterns by Gregor Hohpe and Bobby Woolf — comprehensive pattern catalog
- Building Event-Driven Microservices by Adam Bellemare — practical event design and architecture
- Designing Data-Intensive Applications by Martin Kleppmann — event sourcing and streaming foundations
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл event-driven-architecture?
Design systems that communicate through events instead of direct service calls. Use when building loosely-coupled, scalable, and resilient architectures.
Как установить скилл event-driven-architecture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл event-driven-architecture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…