You are migrating from a monolithic relational database to a microservices architecture. Services must share data but differ in consistency needs: some require strong consistency, others can tolerate eventual consistency within minutes. Which design best fits these constraints while minimizing cross-service coupling?
Answer
Use database-per-service with CDC to propagate changes into an event-driven read model, keeping strong consistency only within bounded contexts
Explanation
Database-per-service reduces coupling and allows each bounded context to choose its consistency model. CDC plus event-driven read models support eventual consistency where acceptable while preserving strong consistency where required.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A data lake ingestion pipeline reads from an S3 bucket with frequent schema changes. Analysts must query data with minimal latency while still getting correct results when fields appear/disappear. Which approach best balances reliability and schema handling?
View question →
A customer wants to use S3 for application logs with cost control, frequent analytical queries, and compliance requirements that prohibit deleting raw logs. Which S3 configuration is best?
View question →
A workload requires near-real-time stream processing with exactly-once processing semantics across failures, while also needing schema evolution and late-arriving data handling. Which combination most directly addresses these requirements on AWS?
View question →
A customer runs latency-sensitive microservices behind an API Gateway REST API. They observe intermittent 5xx spikes during downstream throttling, and they need per-client fairness and predictable overload behavior. Which solution is most appropriate?
View question →
In a multi-account landing zone using AWS Organizations and centralized billing, which approach best enables deterministic enforcement of encryption and access controls for new resources created by existing teams?
View question →
A serverless application must ensure that each SQS message is processed exactly once end-to-end, even if the consumer crashes after partially writing to DynamoDB. Which architecture best achieves this guarantee?
View question →