AIOpenLibraryAIOpenLibrary
Back to Software Architecture

Event-Driven Architecture Planner

Design event-driven systems with event sourcing, CQRS, message brokers, and eventual consistency patterns.

Updated Mar 11, 2026

ShareLinkedIn

Customize Your Prompt

0/6 filled

Prompt

You are a distributed systems architect specializing in event-driven architecture. Help me design an event-driven system.

System description: [SYSTEM_DESCRIPTION]
Current architecture: [CURRENT_ARCHITECTURE]
Why event-driven: [MOTIVATION]
Scale requirements: [SCALE]
Consistency requirements: [CONSISTENCY_NEEDS]
Team experience with EDA: [TEAM_EXPERIENCE]

Design the event-driven architecture:

**1. Event Identification & Modeling**
- Domain events (what happened — past tense, business language)
- Event schema design (envelope + payload)
- Event versioning strategy
- Event catalog / registry

**2. Architecture Pattern Selection**
- Event Notification vs. Event-Carried State Transfer vs. Event Sourcing
- Recommendation for YOUR use case with rationale
- CQRS: Should read and write models be separated? Why/why not?

**3. Messaging Infrastructure**
- Broker selection (Kafka vs. RabbitMQ vs. SQS/SNS vs. Pulsar vs. NATS)
- Trade-off analysis for your requirements:
  | Criteria | Kafka | RabbitMQ | SQS/SNS |
  | Ordering | ... | ... | ... |
  | Throughput | ... | ... | ... |
  | Delivery | ... | ... | ... |
- Topic/queue design and partitioning strategy
- Consumer group design

**4. Data Consistency**
- Eventual consistency patterns
- Saga pattern for distributed transactions:
  - Choreography vs. orchestration recommendation
  - Compensation/rollback design
- Outbox pattern for reliable event publishing
- Idempotency strategy (deduplication keys)

**5. Error Handling & Resilience**
- Dead letter queues
- Retry policies (exponential backoff with jitter)
- Poison message handling
- Circuit breakers between services

**6. Observability for EDA**
- Distributed tracing across events (correlation IDs)
- Event flow visualization
- Consumer lag monitoring
- Alerting on processing failures

**7. Testing Strategy**
- How to test event-driven flows (contract testing, consumer-driven contracts)
- Local development setup
- Integration testing approach

**8. Migration Plan** (if moving from synchronous):
- Strangler fig approach for gradual migration
- Dual-write period handling
- Rollback strategy

**9. Anti-patterns to Avoid**:
- Event soup, chatty events, event-driven spaghetti, missing schemas

Powered by Hugging Face Inference API

Pro Tips

  • EDA is powerful but complex. Systematic design covering events, consistency, error handling, and anti-patterns prevents the common 'event-driven spaghetti' failure mode.

References

Comments

Log in to leave a comment

More Software Architecture Prompts

🏗️Software ArchitectureNEW

Architecture Decision Record Writer

Write well-structured Architecture Decision Records (ADRs) that document the context, options considered, and rationale behind key technical decisions.

You are a principal software architect who believes that documented decisions ar...

Claude
IntermediateView prompt
🏗️Software ArchitectureNEW

System Design Document Generator

Generate comprehensive system design documents (RFCs/design docs) with component architecture, data flow, API contracts, and operational considerations.

You are a staff engineer writing a design document for a new system. Create a co...

Claude
AdvancedView prompt
🏗️Software ArchitectureNEW

Database Scaling Strategy Advisor

Design database scaling strategies with read replicas, sharding, caching layers, and polyglot persistence based on access patterns.

You are a database architect who has scaled systems from thousands to billions o...

Claude
AdvancedView prompt

You Might Also Like

✍️Writing & Content✦ Premium

Blog Post Architect

Create SEO-optimized, engaging blog posts with structured outlines, compelling hooks, and strategic keyword placement.

You are an expert content strategist and SEO specialist. Create a comprehensive ...

Claude Opus 4
IntermediateView prompt
📚Education✦ Premium

Socratic Method Tutor

Learn any concept through guided questioning that builds deep understanding instead of memorization.

You are a Socratic tutor. Your role is to help me deeply understand a concept th...

Claude Opus 4
BeginnerView prompt
📦Product Management✦ Premium

Product Requirements Document (PRD)

Generate comprehensive PRDs with user stories, acceptance criteria, technical requirements, and success metrics.

You are a senior product manager at a top tech company. Write a comprehensive PR...

Claude Opus 4
IntermediateView prompt