Domain-Driven Design (DDD) & Database-per-Service
Decomposing monoliths into autonomous Bounded Contexts with isolated private datastores to prevent distributed monolith anti-patterns.
- FM1Allowing multiple microservices to read/write to a shared SQL database (creates a Distributed Monolith with tight schema coupling and single point of failure)
- FM2Creating microservices that are too granular (e.g. a separate service for every database table)
Change Data Capture (CDC via Debezium) streams internal database mutations directly into Kafka topics without dual-write race conditions.