event-driven-architect

Design event-driven microservices architectures with event sourcing, CQRS, and sagas.

7|2|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/Prompt-or-Die-Labs/hyper-forge --skill event-driven-architect-prompt-or-die-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: event-driven-architect
Source: https://github.com/Prompt-or-Die-Labs/hyper-forge/tree/main/.claude/skills/event-driven-architect
Command: npx skills add https://github.com/Prompt-or-Die-Labs/hyper-forge --skill event-driven-architect-prompt-or-die-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you avoid tightly-coupled microservices by turning system interactions into reliable, asynchronous event flows that stay maintainable as your platform grows.

Core Features & Use Cases

  • Event Sourcing: Persist domain changes as events and rebuild state by replaying them.
  • CQRS: Separate command/write paths from query/read models to improve scalability and performance.
  • Saga Orchestration: Coordinate distributed transactions with step tracking and compensating actions when failures occur.
  • Event Streaming Design: Structure publish/subscribe pipelines (including Kafka/RabbitMQ style configurations) for real-time processing and eventual consistency.
  • Best Practices: Apply versioning, idempotent handlers, correlation IDs, dead-letter queues, and monitoring of event lag/throughput.

Quick Start

Ask the AI to design an event-driven architecture for your microservices using Kafka topics, an event-sourced aggregate, CQRS projections, and a saga workflow for a multi-step order lifecycle.

Frequently Asked Questions about event-driven-architect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design event-driven microservices with Kafka for asynchronous communication?

You can design event-driven microservices using Kafka topics for asynchronous communication, structuring publish/subscribe pipelines for real-time processing and eventual consistency. The architecture separates command and query paths while coordinating distributed transactions through saga workflows.

What is the saga pattern and when do I need it for distributed transactions?

The saga pattern coordinates distributed transactions by tracking multi-step workflows and executing compensating actions upon failure. You need it when a business process spans multiple microservices and requires eventual consistency without distributed locks.

How does CQRS with event sourcing rebuild system state?

CQRS with event sourcing rebuilds system state by persisting domain changes as an immutable event log and replaying them. It separates command paths that issue events from query models that project read states, improving scalability and performance.

Why do my asynchronous messaging handlers process duplicate events?

Asynchronous messaging handlers process duplicate events because message brokers guarantee at-least-once delivery. You must implement idempotent handlers using correlation IDs to deduplicate messages and ensure the same event does not mutate state twice.

How do I handle event schema versioning and dead-letter queues in production?

Handle event schema versioning by applying backward-compatible evolution rules, and route unprocessable messages to dead-letter queues. This isolates failures in asynchronous pipelines while you monitor event lag and throughput to maintain production system stability.