Tagged “Ddd”
6 articles with this tag.
- CQRS and event sourcingSeparating the write model from read models (CQRS), storing state as an append-only stream of domain events (event sourcing), how they combine, projections and rebuilding views, snapshots, optimistic concurrency on event streams, schema evolution of events, eventual consistency in the UI, and when not to use either.
- Order Management SystemA complete system design for an e-commerce order management system using the 18-step framework: requirements, labelled assumptions and capacity calculations, API, data model, architecture, saga with transactional outbox, idempotent payments, failure handling, scaling and trade-offs — including when a modular monolith is the better choice.
- DDD FundamentalsWhat Domain-Driven Design is, when it is worth its cost, and its two halves: strategic design (subdomains, ubiquitous language, bounded contexts) and tactical design (entities, value objects, aggregates, domain events) — with Java examples from one running retail domain.
- Spring Boot ImplementationA complete, tested order-management service in Spring Boot 4 and Java 21, built with ports and adapters: package structure, domain model, use cases, REST and JPA adapters, wiring, and tests that run without Spring or a database.
- Microservices vs Modular MonolithMonolith, modular monolith or microservices? What each style is, what it costs, how to decide with concrete criteria, how to keep a monolith modular, and how to extract a service when it is justified.
- Bounded ContextBounded contexts explained: why one model cannot serve a whole business, how to find context boundaries, how contexts relate on a context map (shared kernel, customer–supplier, anti-corruption layer and more), and how contexts map to modules, services and teams.