The debate about monoliths and microservices often starts with the number of components, the size of the company, or examples from large technology platforms. For a financial system, these are secondary considerations. First you need to establish which changes must happen together, which outcomes may arrive with a delay, and who is responsible for operating each boundary.
This approach does not promise a universal winner. The same set of business capabilities can be implemented as modules within one application or as independently deployable services. The difference lies not in architectural fashion but in the cost of consistency, failures, and change.
Start with invariants, not with a service diagram
An invariant is a condition that the system must preserve while operations are performed. Not every condition requires a single distributed transaction: some checks can be performed in advance, some can be controlled through reconciliation, and some processes deliberately allow intermediate states. For this reason it helps to separate three questions:
- What must be recorded atomically?
- What may become consistent over time?
- How is an uncertain result detected and resolved?
As an illustrative example, consider double-entry bookkeeping. Modern Treasury, a provider of a ledger product, describes checking that debit and credit entries exist and that their amounts are equal for each currency. This is not a universal legal or regulatory requirement but a domain example of a design invariant.
Assume additionally that the business requirements of a specific system call for all entries of one financial operation to be recorded atomically. Then placing these entries in one module and one transactional boundary simplifies enforcing the invariant. This is an architectural conclusion drawn from an accepted assumption, not a claim that every ledger must have exactly this physical structure. The data model, the set of operations, and the requirements of the specific system may change the decision.
The DDD idea of the aggregate is useful here: Microsoft Learn defines it as a consistency boundary within which invariants are maintained. But an aggregate is a modeling tool, not an automatic instruction that "one aggregate equals one microservice."
Three boundaries that do not have to coincide
When designing, it is worth distinguishing:
- the domain boundary: the area of responsibility and the shared language;
- the module boundary: the restriction of dependencies in code and data;
- the deployment boundary: the unit that can be released, scaled, and operated separately.
Fowler links microservices to components organized around business capabilities and discusses the use of bounded contexts in decomposition in the microservices architecture description. It does not follow that each bounded context must correspond to a separate process. A bounded context can remain a module as long as independent deployment provides no measurable benefit.
This distinction removes a false dilemma: choosing a monolith does not mean giving up boundaries, and choosing microservices does not automatically give you the right boundaries.
One process, two implementations
It is more useful to compare the execution of a concrete business process than abstract labels. Suppose a hypothetical operation includes validating a command, changing monetary records, and publishing a fact for later processing. The requirements for each part must be established separately; the table below shows design consequences, not a ready-made scheme for all financial systems.
| Aspect | Modular monolith | Distributed implementation |
|---|---|---|
| Calls between components | Mostly within one process | Network calls and messages |
| Related changes | May sit in one local transaction if the data model allows it | Usually split into local transactions and require coordination |
| Storage | A shared database is possible, but table ownership and access must be explicitly restricted | Separate stores strengthen autonomy but complicate cross-component consistency |
| Deployment | Modules are not deployed independently | Services can be released separately given contract discipline and compatibility |
| Failures | Errors and process crashes remain important risks | Network delays, partial unavailability, redelivery, and uncertain results are added |
| Operations | Less distributed infrastructure, but modularity requires constant discipline | Observability, tracing, release management, on-call duty, and dependency failure drills are needed |
A modular monolith is especially reasonable as a starting point if key operations require a shared transaction, domain boundaries are still being refined, and independent release is not yet needed. In the Monolith First strategy, Fowler emphasizes the cost of distribution and the difficulty of finding stable boundaries in advance. But the recommendation is conditional: a monolith without modularity merely hides coupling, while a system with stable boundaries, a mature platform, and a real need for independent releases may reasonably start with services.
The cost of distribution shows up in failures
In the normal scenario, a network arrangement may look no more complicated than a sequence of calls. The differences become visible when a dependency responds slowly, a response is lost, or an event is delivered again. In the microservices guide, Fowler lists distribution, eventual consistency, and operational complexity among the costs of the approach.
This does not mean that every remote call will inevitably fail, or that strong consistency is impossible inside a single service. What changes is the set of possible states: after a timeout, the calling side may not know whether the command was executed.
Retries can amplify a failure
Automatic retry seems a natural reaction to a timeout, but under overload it adds work to an already degraded dependency. Google SRE describes the risk of cascading failures and recommends exponential backoff with randomized jitter for RPC retries.
For a financial team this is not enough. Retrying a non-idempotent operation may duplicate its effect, so the retry policy must be adapted to the protocol, the limits, and the semantics of the operation, combined with idempotency, and must explicitly handle uncertain results. Specific keys, retention periods for results, and reconciliation rules depend on the system; a universal number of attempts is not a safe recommendation here.
Dual write: two actions without shared atomicity
If a service first changes a database and then publishes an event, a failure between the two actions can leave the database and consumers in an inconsistent state. The reverse order creates its own risk: the event is already visible while the local change was never committed.
AWS describes the transactional outbox as a way to store a change and an event atomically in a local transaction, given the prerequisites of this pattern. The outbox removes the specified risk of inconsistent dual writes between the local database and the intent to publish an event, but it does not make a business operation spanning several services atomic. Delivery, retries, and processing by consumers remain separate tasks.
Compensation is not rollback
When a process truly crosses services and stores, a saga coordinates a sequence of local transactions: after success the next step runs, and after failure compensations may be triggered. AWS reviews such coordination options in its saga overview and separately points out eventual consistency, idempotency, isolation complexity, and latency for saga orchestration.
Compensation is a new business action, not a cancellation of an already committed transaction. Therefore a saga is not an equivalent of atomic rollback. If the requirement calls for strict atomicity of related changes, such a scheme should be evaluated with particular care rather than declared an automatic replacement for a shared transaction.
Selection criteria
1. Atomicity and acceptable consistency
List the operations and, for each, record the invariants, the acceptable intermediate states, and the method of correction. The more related changes must be committed together, the stronger the argument against placing a network and transactional boundary between them without a compelling need. For processes where eventual consistency is genuinely acceptable, asynchronous coordination may be more appropriate.
2. Independence of changes and releases
A separate service is justified when a component has a stable business responsibility, changes independently, and the team needs its own release. If every change requires a synchronous release of several services, the deployment boundary has already added costs without delivering the expected autonomy.
3. Separate scaling and availability
Significantly different load profiles or availability requirements may justify a separate operational boundary. A mere assumption about future growth is weaker than measured demand: you need to understand which specific resource is scaling and why it is disadvantageous to scale it within the current deployment unit.
4. The team's ability to own a service
Independence includes more than a repository and a release pipeline. The team must maintain observability, on-call duty, recovery, contract compatibility, and failure handling. If these capabilities are missing, increasing the number of services may redistribute work among teams without delivering reliability.
How to revisit the decision without premature splitting
Start with strict module boundaries: explicit interfaces, clear data ownership, a ban on bypass dependencies, and tests of invariants. Then observe not the number of classes but the actual cost of coupling:
- which modules always change together;
- which releases actually block one another;
- where different scaling or availability needs have been measured;
- which failures and delays already create distributed dependencies;
- whether the team can operate the new component on its own.
Extract a component when independence delivers measurable benefit and its domain responsibility is sufficiently stable. After extraction, the earlier risks do not disappear: coupling through memory and a shared transaction decreases, but network failures, redelivery, consistency questions, and new operational obligations appear.
Before approving a design, the practical questions remain: which operations must be atomic; which component is the source of truth for monetary records; how corrections, retries, and uncertain results are recorded; which latency, recovery, and availability targets are set; which audit requirements apply. Architectural sources explain technical trade-offs but do not determine the legal, audit, or regulatory requirements of a specific organization.
The right starting question, therefore, is not "how many services do we need" but "where should the boundaries of consistency, change, and responsibility run, and what price are we prepared to pay for distributing them". The answer depends on the operations and the capabilities of the team, not on the size of the company or the popularity of an architectural style.