ddd-patterns
Domain-Driven Design (DDD): Advanced Patterns
Advanced integration patterns for handling complex distributed system interactions and transactional consistency.
🚀 Advanced Patterns
- CQRS (Command Query Responsibility Segregation): Separation of write (Command) and read (Query) models to optimize performance and scalability.
- Event Sourcing: Capturing all changes to the state of an application as a sequence of events (The current state is reconstructed from the log).
- Outbox Pattern: Ensuring transactional consistency between a database and a message broker. (Save to DB and a 'Message Outbox' in the same transaction).
- ACL (Anti-Corruption Layer): Translating and isolating external systems' models to maintain the integrity of your core domain model.
⚡ CQRS + Event Sourcing Workflow
- Command Side: Receives request -> Aggregate Root (AR) validates -> AR emits Event -> Event saved to Event Store.
- Projection Side: Projector listens to Events -> Updates Read Model (Optimized for queries: e.g., Elasticsearch, Read DB).
- Query Side: Reads from Read Model only.
🚫 Advanced Anti-Patterns
More from kinhluan/skills
ddd-tactical
Tactical Domain-Driven Design (DDD) with Scoring Rubric. Use this skill when designing internal domain models or performing architectural reviews to ensure domain logic is isolated and rich.
7scheduling-algorithms
Job scheduling algorithms for parallel and distributed systems
7ddd-core
Professional Strategic Domain-Driven Design (DDD) Hub. Use this skill for Event Storming, identifying Subdomains, defining Bounded Contexts, and mapping Domain Models to the heart of your architecture.
6c4-level3-component
Specialized in Component diagrams (Level 3) with folder structure mapping. Use this skill when the user needs to zoom into a single container to identify internal components, their responsibilities, and how they map to actual code folders (src/services, internal/).
6security-analysis
Security vulnerability analysis and auditing procedures
6docker-containerization
Docker containerization best practices and patterns
6