Skip to main content

Service Decomposition and DDD

1. Executive Summary​

Service decomposition is the act of partitioning a system into independently deployable services aligned with business capability boundaries. Domain-Driven Design (DDD) provides the strategic vocabulary—bounded contexts, ubiquitous language, aggregates, and domain events—to make those boundaries durable rather than arbitrary.

Poor decomposition creates distributed monoliths: services that must deploy together, share databases, and fail in correlated ways. Strong decomposition maps organizational ownership, data autonomy, and evolution velocity to context boundaries. The goal is not "more services" but independent lifecycles with explicit integration contracts.

This chapter covers decomposition heuristics, DDD tactical patterns in microservice form, context mapping, data ownership, team topology (Conway's Law), migration from monoliths, and principal-level tradeoffs between granularity, consistency, and operational cost.

2. Why This Topic Matters​

Microservice interviews at principal level rarely ask "what is a microservice." They ask:

  • How would you decompose this monolith without creating a distributed ball of mud?
  • Where do you draw transaction boundaries when data spans services?
  • How do bounded contexts differ from REST resource groupings?
  • What is the cost of the wrong cut—latency, consistency, team friction?
  • How do you evolve boundaries as the business changes?

Candidates who answer with technology ("use Kubernetes") miss the organizational and domain reasoning that distinguishes staff/principal architects from senior engineers.

3. Problems Being Solved​

ProblemDecomposition + DDD response
Monolith scaling bottlenecksIsolate hot subdomains for independent scale
Coupled release trainsServices with separate CI/CD per bounded context
Unclear ownershipContext maps assign team accountability
Semantic drift ("Customer" means different things)Ubiquitous language per context
Big-bang rewritesStrangler fig migration along seams
Shared mutable databasesDatabase-per-service with explicit integration

Decomposition does not solve: inherent distributed-systems complexity, cross-context reporting without eventual consistency, or automatic team autonomy without governance.

4. Assumptions and System Model​

AssumptionImplication
Business domain has natural seamsNot all domains decompose cleanly—some remain modular monoliths
Teams own services long-termConway's Law: architecture mirrors communication structure
Network is unreliableCross-service calls are partial failure paths
Consistency is expensive across boundariesSagas, outbox, eventual consistency by default
Not ByzantineTrust internal services with mTLS and policy; zero-trust at edge

System model: Each service is a deployable unit with its own persistence, exposing APIs or publishing events at context boundaries. Integration is synchronous (query/command) or asynchronous (domain events)—never shared tables.

5. Essential Terminology​

TermDefinition
Bounded contextExplicit boundary where a domain model is consistent and terms have one meaning
Ubiquitous languageShared vocabulary between developers and domain experts within a context
AggregateCluster of entities treated as a consistency unit; one root entity
Domain eventRecord of something meaningful that happened in the domain
Context mapDiagram of relationships between bounded contexts (upstream/downstream)
Anti-corruption layer (ACL)Translation layer protecting a context from foreign models
Shared kernelSmall shared model between two contexts—use sparingly
Conway's LawSystem design reflects organizational communication structure
Database per serviceEach service owns its schema; no cross-service SQL joins in production
Strangler figIncrementally replace monolith by routing traffic to new services

6. Core Mechanism​

Bounded context to service mapping​

Figure 1: Teams align to bounded contexts; services encapsulate context models; integration crosses explicit boundaries.

Decomposition decision flow​

Figure 2: Decomposition heuristics—language, velocity, and scale drive cuts; consistency constraints validate them.

Context relationship patterns​

Figure 3: Downstream contexts translate upstream models through ACLs rather than leaking foreign concepts.

Aggregate boundaries and consistency​

Within a bounded context, aggregates define transaction boundaries:

  • Order aggregate (root: Order): includes LineItems; invariants like "total matches sum of lines" enforced inside aggregate.
  • Inventory aggregate (root: StockItem): reservation logic stays local; cross-aggregate rules use domain events or sagas.

Rule: One transaction modifies one aggregate instance. Cross-service invariants require sagas or eventual consistency with compensating actions.

7. Step-by-Step Walkthrough​

Scenario: E-commerce monolith decomposed into Order, Inventory, and Payment contexts.

StepActionMechanism
1Domain workshopIdentify bounded contexts with domain experts
2Context mapMark Order as upstream to Fulfillment; Payment as separate
3Extract Inventory firstHigh change velocity; clear data boundary
4Database per serviceInventory gets inventory_db; no shared tables
5Publish StockReserved eventsOrder service subscribes via message broker
6Strangler routingAPI gateway routes /inventory/* to new service
7Extract PaymentPCI scope isolation drives boundary
8Saga for checkoutOrder → reserve stock → charge payment → confirm

Checkout saga (choreography):

StepServiceEvent / action
1OrderOrderCreated
2InventoryReserve stock → StockReserved or StockRejected
3PaymentCharge → PaymentCaptured or PaymentFailed
4OrderConfirm or compensate (release stock, cancel order)

Event storming facilitation (principal-level practice):

Principal architects often lead 4-hour domain workshops with sticky notes on a wall:

HourActivityOutput
1Domain events (orange)Timeline of business occurrences
2Commands and actors (blue)Who triggers what
3Aggregates and policies (yellow)Consistency boundaries emerge
4Draw context linesCandidate bounded contexts

Extraction decision checklist—extract a service only when three or more apply:

  1. Distinct ubiquitous language from neighbors
  2. Eventual consistency tolerable with dependencies
  3. Team ready for on-call ownership
  4. Different scale or release cadence
  5. Regulatory scope benefit (PCI, HIPAA isolation)

Cross-context data patterns:

PatternConsistencyUse when
Synchronous APIStrong read of remoteSimple query; few hops
Domain eventsEventualDecoupled workflows
CDC (Debezium)EventualLegacy DB during strangler
CQRS read modelEventualCross-context reporting

Avoid 2PC across contexts—use sagas and Transactional Outbox instead.

Monolith extraction order heuristic:

PriorityCandidateRationale
1High-change, clear boundaryInventory, notifications
2Regulatory isolationPayment, PII profile
3Scale hotspotSearch indexing, media processing
4Stable coreKeep order management longer if boundary unclear

8. Invariants and Guarantees​

PropertyTypeStatement
Context model consistencySafetyTerms have single meaning within bounded context
Aggregate invariantSafetyInvariants hold within one aggregate per transaction
Cross-context consistencyEventualNot atomic without distributed transaction (avoid 2PC)
Service autonomyLivenessService deploys without coordinating peer schema migrations
Idempotent consumersSafetyEvent handlers tolerate duplicate delivery

9. Failure Scenarios​

Scenario 1: Shared database anti-pattern​

Setup: Three services read/write orders table directly.

Effect: Schema changes require coordinated deploys; cascading failures; unclear ownership.

Mitigation: Database per service; APIs/events only; read models via CDC if needed.

Scenario 2: Chatty synchronous mesh​

Setup: Checkout calls 12 services synchronously per request.

Effect: Latency multiplies; partial failure probability compounds; brittle deploys.

Mitigation: Orchestrated saga or choreography with async events; aggregate read models.

Scenario 3: Wrong bounded context cut​

Setup: "Customer" split across Profile and Billing with different definitions.

Effect: Integration bugs; duplicate customer IDs; support confusion.

Mitigation: Context map workshop; ACL; canonical identity service as upstream.

Scenario 4: Distributed monolith​

Setup: Services share library, database, and release train.

Effect: Microservice operational cost without autonomy benefits.

Mitigation: Enforce independent deploy tests; separate repos or strict module boundaries.

Scenario 5: Event schema breaking change​

Setup: OrderPlaced v2 removes field consumers require.

Effect: Downstream processing stalls; silent data corruption.

Mitigation: Schema registry; backward-compatible evolution; consumer-driven contracts.

Scenario 6: Premature extraction during peak season​

Setup: Team extracts Payment service two weeks before Black Friday without load testing cross-service checkout.

Effect: Latency regression; saga timeouts; revenue impact during highest-traffic period.

Mitigation: Freeze structural changes before peak; load test extracted path at 2× expected traffic; feature flag rollback to monolith path.

10. Performance Characteristics​

FactorImpact
Cross-service sync callsAdd network RTT per hop; prefer batch or async
Event-driven integrationHigher latency to consistency; better peak throughput
Database per serviceNo cross-join; CQRS read models for queries
Service countOperational overhead grows superlinearly without platform team
Caching at boundariesReduce fan-out; watch invalidation complexity

Rule of thumb: Each synchronous hop adds ~1–10ms LAN / 50–200ms cross-region—verify with your topology. Design for one sync hop on critical paths where possible.

11. Scalability Limits​

  • Team cognitive load: Amazon "two-pizza team" heuristic—roughly 6–10 engineers per service cluster.
  • Service count: Hundreds of services require strong platform engineering (discovery, observability, deployment).
  • Event throughput: Bounded by broker partition design and consumer parallelism.
  • Context granularity: Too fine → integration explosion; too coarse → monolith reborn.

12. Operational Considerations​

  • Service catalog with ownership, SLOs, and on-call rotation per context.
  • Contract testing (Pact, consumer-driven) at context boundaries.
  • Deprecation policy for APIs and events with sunset timelines.
  • Runbooks per service including upstream/downstream dependencies.
  • Feature flags for strangler migrations and dark launches.
  • Architecture decision records (ADRs) documenting boundary choices.

Ongoing boundary governance:

After initial decomposition, teams must prevent boundary erosion:

Review cadenceActivityOwner
WeeklyNew cross-service dependency PR reviewTech lead
MonthlyContext map update in architecture wikiPrincipal architect
QuarterlyCoupling metrics review (deploy correlation)Platform + product
Per major featureEvent storming for new subdomainDomain + engineering

Service catalog minimum fields: service name, bounded context, owning team, tier (1–3), on-call rotation, SLO link, upstream/downstream dependencies, data stores owned, API/event contracts (links to OpenAPI/proto), last game day date.

13. Security Considerations​

  • Least privilege per service identity (IAM, SPIFFE).
  • PCI/HIPAA scope reduction by isolating regulated data in dedicated contexts.
  • mTLS between services; no implicit trust by network zone alone.
  • PII minimization at integration boundaries—pass IDs not full profiles.
  • Audit trails on domain events for compliance reconstruction.

14. Cost Considerations​

  • Each service adds: CI/CD pipelines, monitoring, on-call, compute baseline.
  • Over-decomposition increases cloud spend (more pods, more cross-AZ traffic).
  • Under-decomposition increases opportunity cost (slow releases, scaling inefficiency).
  • FinOps should tag costs by bounded context / team for accountability.

15. Production Implementations​

Amazon​

Service-oriented architecture with "two-pizza teams"; strict API ownership; eventual consistency across domains—implementation choice documented in public talks.

Netflix​

Domain-aligned microservices with robust platform (Spinnaker, Eureka); chaos testing validates boundary resilience.

Uber​

Domain-oriented microservice architecture (DOMA); emphasis on layered gateways and standard tooling.

Modular monolith (Shopify-style evolution)​

Some organizations retain modular monoliths with clear module boundaries—valid when decomposition cost exceeds benefit.

16. Alternatives and Tradeoffs​

ApproachStrengthWeakness
Modular monolithSimple ops, ACID transactionsScaling and team autonomy limits
Microservices + DDDAutonomy, independent scaleDistributed complexity
Cell-based architectureBlast radius isolationHigher baseline infrastructure
Monorepo + many servicesShared toolingRequires discipline to avoid coupling

Choose microservices when organizational scale and independent deployment justify distributed-systems tax.

17. Common Misconceptions​

MisconceptionReality
"One entity = one service"Aggregates and contexts drive cuts, not ER diagrams
"DDD is only for big companies"Strategic DDD pays off at any scale with complex domains
"Events eliminate consistency problems"They shift to eventual consistency and ordering challenges
"Microservices are always more scalable"Network chatter can underperform well-designed monolith
"Decompose first, fix later"Wrong boundaries are expensive to move

18. Principal Architect Perspective​

  1. Start with context map, not technology—Conway's Law will enforce your org chart anyway.
  2. Optimize for change frequency—stable subdomains can share infrastructure longer.
  3. Data ownership is non-negotiable—shared databases are the leading cause of distributed monoliths.
  4. Plan migration as strangler, not big-bang—business continuity dominates.
  5. Measure coupling—deploy frequency correlation between services signals bad cuts.

Organizational implication: Platform teams provide golden paths; product teams own bounded contexts. Architects facilitate context mapping workshops, not just draw boxes.

Measuring decomposition health (ongoing):

MetricHealthy signalUnhealthy signal
Deploy frequency per serviceIndependent, frequentCorrelated multi-service deploys
Cross-service sync call depth≤2 on critical pathDeep synchronous chains
Incident blast radiusSingle contextCascading multi-service outages
Schema migration couplingIndependent per DBCoordinated cross-schema changes
Team ownership clarityOne team per contextShared "everyone owns" services

Review these quarterly after decomposition milestones—not only at initial design time.

Principal architects should treat service boundaries as living artifacts that evolve with the business—not one-time workshop outputs frozen in an initial microservices migration plan.

19. Architecture Review Exercise​

Scenario: 200-engineer org splits monolith into 40 services in six months. Shared PostgreSQL with schema per "service." Synchronous REST mesh for all reads. No event bus.

Review prompts:

  1. Are services independently deployable?
  2. Where are transaction boundaries?
  3. What happens when Inventory schema migrates?
  4. Latency budget for product page (calls 8 services)?

Expected findings: Shared DB prevents autonomy; sync mesh needs caching/BFF; missing events for cross-context workflows; recommend pause and context map reset.

20. Whiteboard Explanation​

90-second version:

"I decompose by bounded context—where business language and rules are consistent—not by technical layers. Each context becomes a service with its own database. Aggregates define local transactions; cross-context workflows use sagas or events. I map upstream/downstream relationships and use anti-corruption layers when models differ. Conway's Law means team boundaries matter as much as API boundaries. I'd strangler-migrate high-value seams first—usually inventory or payments for PCI—not random package splits. Wrong cuts cost more than staying monolithic longer, so I validate with change-velocity data and coupling metrics before extracting."

21. Interview Questions​

  1. What is a bounded context?

    • Signals: Consistent model boundary; ubiquitous language; not just a microservice.
  2. How do aggregates relate to microservices?

    • Signals: Aggregate = transaction boundary inside context; service may host multiple aggregates.
  3. When would you NOT split a service?

    • Signals: No language split, need strong consistency, team too small, premature optimization.
  4. Explain anti-corruption layer.

    • Signals: Translation at downstream boundary; protects internal model.
  5. Database per service—how do you query across domains?

    • Signals: API composition, CQRS read models, CDC, not cross-DB joins.
  6. Conway's Law implications?

    • Signals: Align teams to contexts; reorg may require rearchitecture.
  7. Strangler fig pattern?

    • Signals: Incremental routing; coexist monolith and services.
  8. Saga vs 2PC for checkout?

    • Signals: Saga with compensation; 2PC fragile at scale.
  9. Signs of distributed monolith?

    • Signals: Coordinated deploys, shared DB, cyclic sync dependencies.
  10. How to decompose a monolith—first steps?

    • Signals: Event storming, context map, identify seams by change frequency.
  11. Ubiquitous language example?

    • Signals: Same term different meaning across contexts (e.g., "Product").
  12. Context mapping relationship types?

    • Signals: Partnership, customer-supplier, conformist, ACL, shared kernel.

Scoring rubric:

DimensionStrongWeak
Domain reasoningContexts, aggregates, events"Split by REST resources"
Data ownershipDB per service, sagas"Shared DB with views"
MigrationStrangler, risk ordering"Rewrite everything"
Org awarenessConway, team topologyTechnology-only answer

22. Interview Follow-Ups​

  1. How do you handle reporting across contexts?

    • Signals: Data warehouse, event sourcing, CDC, not synchronous fan-out.
  2. Shared kernel when acceptable?

    • Signals: Small, stable, two contexts only; versioning discipline.
  3. Monolith vs microservices for 10-person startup?

    • Signals: Modular monolith; defer until team/org pain justifies cost.

22A. Production Low-Level Design (Interview + Game Day)​

Strangler-fig migration LLD for billing monolith → bounded-context services. Production LLD and Game Day Standard.

Control plane vs data plane​

PlaneComponentsRole
ControlAPI gateway routing rules, feature flags, schema registryStrangler traffic shift; contract governance
DataPer-context databases, outbox, event busAutonomous persistence; async integration

Bounded context service table​

ContextServiceOwnsIntegration
Subscriptionsubscription-servicePlans, renewalsPublishes SubscriptionRenewed
Invoicinginvoicing-serviceInvoices, line itemsSubscribes to subscription events
Paymentpayment-serviceCharges, PCI scopeACL to PSP; idempotent capture
Taxtax-serviceJurisdiction rulesHigh change velocity; isolated deploy

Strangler routing LLD​

Step-by-step flow:

StepActionFailure / idempotency
1Client calls /v1/subscriptionsGateway attaches trace + idempotency key
2Gateway evaluates strangler rule (tenant % or SKU)Misroute → rollback flag; no dual-write
3aLegacy monolith path unchangedMonolith DB still source for unmigrated tenants
3bNew service owns writeSingle aggregate transaction per request
4Outbox publishes domain eventConsumer idempotent on event_id
5CDC feeds reportingEventual; not on checkout critical path

Checkout saga sequence (numbered)​

Step-by-step flow:

StepInvariant
1–2One aggregate per service call; no cross-DB transaction
3Same idempotency key on retry after timeout
5Compensating events are idempotent; saga state in order DB

One multi-region / DR sentence​

Tier-1 payment context uses warm standby in a second region (RTO 15 min, RPO 1 min async replication); other contexts stay single-region until BIA demands more—see Disaster Recovery and Multi-Region.

One SLO​

Subscription API availability 99.9% / 30d measured at gateway for strangler-routed traffic; alert on cross-context saga compensation rate > baseline.


22B. Game Day Playbooks​

#DrillInjectDetectMitigateVerify
GD-1Strangler misrouteWrong gateway weight4xx spike on new pathRoll flag to 0%Monolith path healthy
GD-2Event schema breakDeploy incompatible SubscriptionRenewedConsumer lag / DLQRoll producer; replayInvoicing catches up
GD-3Saga step-3 failurePayment 503 during checkoutSaga stuck / compensationsRun compensation runbookNo orphaned reservations
GD-4Shared DB regressionSimulated cross-schema join attemptCI contract test failBlock deployDB-per-service enforced

GD-3 — Saga compensation under payment failure​

23. Strong Answer Example​

Question: "How would you decompose our billing monolith?"

Answer this as a 45-minute greenfield design using the PRACTICE framework. Below is how a strong student sounds aloud—start with bounded contexts, not Kubernetes.


Student interview script (PRACTICE)​

P — Problem framing​

"We're decomposing a billing monolith without creating a distributed monolith. The goal is independent deploy velocity per business capability—especially tax and subscription rules—not 'more microservices.'

Non-goals for v1: rewriting every module, active-active multi-region billing, or eliminating the data warehouse. I'll use strangler fig so revenue keeps flowing during migration."

R — Requirements​

TypeRequirement
FRSubscriptions, invoicing, payment capture, tax calculation, merchant webhooks
NFRIndependent deploy per context; PCI isolation for payment; audit trail
ConsistencyStrong inside aggregate; eventual across contexts via events/sagas
OpsService catalog with ownership; contract tests at boundaries

"I'll ask: which modules change most often? Is payment in-scope for PCI today? Are renewals batch or real-time? I'll assume Subscription + Invoicing + Payment + Tax contexts and event-driven renewal with sync capture at checkout."

A — Assumptions (state aloud)​

AssumptionWhy it matters
Domain experts available for event stormingBoundaries follow language, not packages
Event bus + schema registry exists (or will)Safe cross-context evolution
Monolith stays authoritative for unmigrated pathsStrangler, not big-bang
Teams can own on-call per contextConway's Law—boundary without team fails
Reporting tolerates eventual consistencyWarehouse/CDC, not sync fan-out

C — Capacity (back-of-envelope)​

Renewal events peak → 500/sec (say)
Invoice generation → async, 2× peak with buffer
Payment capture sync → p99 < 800ms budget; 1 sync hop max on hot path
Services extracted v1 → 3 (Tax, Subscription, Payment)—not 12
Gateway routing rules → tenant % rollout; instant rollback via flag

"Each extra synchronous hop on renewal adds tail latency and partial-failure probability—I keep checkout to one sync call per context where possible, events elsewhere."

T — Topology (draw this)​

Pattern choice: Strangler fig along bounded contexts; database per service; choreography saga for renewal.

ContextWhy extract order
TaxRegulatory change velocity; clear language boundary
PaymentPCI scope reduction
SubscriptionProduct iteration; upstream to invoicing

I — Invariants (safety)​

"Non-negotiable:

  1. No shared mutable tables across services after cutover.
  2. One transaction = one aggregate inside a context.
  3. Idempotent event consumers—at-least-once delivery assumed.
  4. Anti-corruption layer at payment PSP boundary—don't leak PSP model inward.
  5. Strangler flag can route 100% back to monolith without data fork."

C — Constraints (second C)​

ConstraintDesign response
Team sizeExtract 3 contexts first—not 40 services in six months
ReportingCDC → warehouse; no synchronous 8-service product page
Peak seasonFreeze structural extraction 4 weeks before peak
Schema driftConsumer-driven contracts + registry
Wrong cut costEvent storming + extraction checklist (≥3 signals) before extract

E — Evolution (phased strangler)​

PhaseDeliverable
M1Context map + service catalog fields
M2Extract Tax; strangler route /tax/*
M3Payment service + PCI boundary; sync capture API
M4Subscription + SubscriptionRenewed events
M5Decommission monolith modules; game day saga failure drill

Observability: deploy correlation metric (do services still deploy together?), saga compensation rate, event consumer lag per context.


Closing line (interview)​

"So: event storming → context map → strangler routes → database per service → events/sagas across boundaries, extracting tax and payment first for velocity and PCI, measuring success by independent deploy frequency—not service count. Wrong boundaries cost more than staying monolithic longer, so I validate with coupling metrics before each extract."

Scoring signals​

StrongWeak / red flag
Bounded contexts + ubiquitous language"Split by REST resources"
Strangler + DB ownershipBig-bang rewrite
Saga/compensation for cross-context2PC across services
Conway + team ownership"Use Kubernetes" as the answer
Game day for saga failureNo migration rollback plan

Compact outline (if time-boxed to 2 minutes)​

"Event storming finds Subscription, Invoicing, Payment, Tax contexts. Strangler gateway routes new subscription types first. DB per service; SubscriptionRenewed drives invoicing async. Payment isolated for PCI. Tax extracted early for regulatory velocity. CDC to warehouse for reporting. Measure independent deploys—not microservice count."

24. Weak Answer Example​

Question: "How would you decompose our billing monolith?"

"Split it into microservices, use Kubernetes, and add an API gateway."

Why weak: No domain analysis, data boundaries, migration plan, or consistency model.

25. Hands-On Exercise​

  1. Run a mini event-storming session on a fictional order domain (sticky notes: commands, events, aggregates).
  2. Draw a context map with 3–4 contexts and relationship types.
  3. Identify one aggregate per context with invariants listed.
  4. Design checkout as choreography saga with compensating events.
  5. List what stays in monolith vs extracts first with justification.
  6. Write an ADR for one boundary decision including rejected alternatives.
  7. Map existing monolith modules to candidate contexts; score each on extraction readiness (1–5).
  8. Simulate saga failure at step 3; document compensating events and idempotency requirements for each handler.
  9. Present context map to mock principal panel; defend one controversial boundary choice with tradeoff analysis.

26. Knowledge Check​

  1. What defines a bounded context? (Consistent domain model and language.)
  2. One transaction modifies how many aggregates? (One aggregate instance.)
  3. ACL purpose? (Protect downstream model from upstream concepts.)
  4. Shared database symptom? (Coordinated deploys, coupling.)
  5. Strangler fig goal? (Incremental replacement without big-bang.)

27. Flashcards​

#FrontBack
1Bounded contextDomain boundary with consistent model and language.
2AggregateConsistency cluster with single root entity.
3Domain eventRecord of meaningful business occurrence.
4Ubiquitous languageShared domain vocabulary in a context.
5Context mapDiagram of inter-context relationships.
6Anti-corruption layerTranslation shield at context boundary.
7Database per serviceEach service owns its persistence exclusively.
8Strangler figIncremental monolith replacement pattern.
9Conway's LawArchitecture mirrors org communication.
10SagaMulti-step cross-service workflow with compensation.

28. Cheat Sheet​

DECOMPOSE WHEN
Different ubiquitous language
Different change velocity / scale
Regulatory or scope isolation (PCI)
Team ownership ready

KEEP TOGETHER WHEN
Strong cross-aggregate ACID needed
No organizational split
Integration cost > monolith pain

BOUNDARIES
Context → Service (often 1:1)
Aggregate → Transaction unit
Integration → API + events (not shared DB)

MIGRATION
Context map → strangler → DB split → event contracts

RED FLAGS
Shared database
Cyclic sync calls
Coordinated multi-service deploys

30. References​

Primary sources​

  • Evans, E. (2003). Domain-Driven Design: Tackling Complexity in the Heart of Software. Addison-Wesley.
  • Newman, S. (2021). Building Microservices, 2nd ed. O'Reilly — decomposition patterns and migration.
  • Vernon, V. (2016). Domain-Driven Design Distilled. Addison-Wesley — strategic DDD summary.

Engineering blogs​

  • Martin Fowler, "BoundedContext" and "StranglerFigApplication" — martinfowler.com.
  • Thoughtworks Technology Radar — microservice and monolith guidance (verify current edition).

Distinction​

Claim typeSource
Bounded context, aggregate definitionsEvans, Vernon
Strangler fig, database per serviceNewman; Fowler
Conway's LawMelvin Conway (1968); Brooks, Mythical Man-Month
Company implementationsPublic engineering talks—implementation choices