Resilience, Migration, and Business Continuity

A team proposes separate pricing and discount microservices, but both modify shared rules that must become effective atomically. Distributed transactions are prohibited; which initial decomposition best preserves correctness while enabling independent releases elsewhere?

Show the answer

Correct answerA. Keep pricing and discounts in one service with an owned datastore.

AWhy this is right: One service can update the coupled rules atomically while unrelated capabilities are extracted independently.

BWhy not this: Asynchronous synchronization allows pricing and discount rules to become effective at different times.

CWhy not this: Shared table writes retain coupling and prevent clear service ownership of the invariant.

DWhy not this: Table-based boundaries can split a business invariant, and events do not provide a cross-service atomic commit.

A service boundary should contain rules that require a single atomic transaction. Keeping pricing and discounts together preserves that boundary; asynchronous synchronization between separate services introduces a period of inconsistent rules.