How to choose between monolithic and microservices architecture
How to choose between monolithic and microservices architecture is not a contest between old and new. Both approaches can power a dependable site. The decision turns on whether traffic, business capabilities and release work genuinely require independent scaling and ownership, rather than on the appeal of distributed technology itself.
A monolithic application runs as one deployable unit, with internal modules handling features such as catalogue, accounts and checkout. A microservices architecture separates those capabilities into independently deployable services that communicate through APIs or messages. Microservices can improve team autonomy and fault isolation, while a monolith usually offers simpler transactions, debugging and local development.
Start with evidence rather than a fashionable default: expected peak concurrency, release frequency, domain complexity, regulatory exposure, operational maturity and the number of teams likely to change the code. Australian conditions add practical constraints. A busy Melbourne retailer needs different peak assumptions from a regional content publisher, and engineers in Perth often join release coordination after teams in Sydney and Melbourne have started.
Neither label guarantees a sound design. A poorly bounded monolith becomes difficult to change, while microservices with shared databases and long chains of synchronous calls can become a distributed monolith. The right outcome is an architecture your organisation can operate, observe and afford at its actual size, not the one with the most service diagrams.
Understand what each architecture changes
A conventional monolith concentrates routes, business logic and often data access in one codebase and deployment. A modular monolith keeps clear internal boundaries while still shipping as one artefact. That middle path lets content and payments teams own separate modules without adding network calls, distributed tracing or service discovery from day one.
Microservices make business capabilities independently deployable. Each service should own its behaviour and, where practical, its data. APIs, queues and events connect the parts. The benefits are selective scaling, smaller releases and clearer ownership; the costs are partial failure, network latency, eventual consistency, contract testing and more demanding observability. Splitting code into network-addressed chunks does not create sound boundaries.
Match the architecture to customer journeys
A content-led site with a small publishing team often gains little from microservices. Articles, landing pages and support material change together and scale through caching. Keeping them in one application makes editorial previews, search indexing and rollbacks straightforward. If the primary risk is publishing throughput, a modular monolith usually offers the better return on effort.
Transactions introduce different pressures. A ticketing platform can face a concentrated rush around Melbourne Cup day, while an online shop must protect checkout reliability during a retail campaign. Payment authorisation, inventory reservation, fulfilment and notifications may need different scaling or release patterns. A service split is justified when these capabilities vary independently, not simply because checkout contains more business logic than the CMS.
Australian shoppers also expect options such as click-and-collect, linking the storefront to stock and fulfilment systems. Those integrations may justify a boundary even before the site becomes large. A supporting property such as bioreactive specialist content illustrates another narrow responsibility: editorial information can remain independently manageable while transaction-heavy functions keep their own reliability requirements.
Test performance beyond the application layer
Frontend rendering is a separate decision from server-side decomposition. A single-page application comparison helps teams assess navigation, perceived speed and browser state, but it does not determine service boundaries. A multi-page site can use microservices, while a single-page application can call a modular monolith.
Place the user journey across geography. Australian customers may connect through the NBN, fixed-line services in regional areas or mobile networks, so backend latency becomes more visible outside metropolitan centres. A CDN can cache pages and assets closer to users, but personalised checkout responses still cross the network. For a Perth request to an origin in Sydney, every unnecessary service hop adds delay and reduces the benefit of fast static delivery.
Resilience also changes with the architecture. In a monolith, a memory leak or slow query can affect the whole application. In microservices, that fault can be contained, provided dependencies have timeouts, sensible retries and circuit breakers. A chain of catalogue, pricing, recommendation and checkout calls can still fail together. Model dependency failures and degraded modes before claiming that independent deployment automatically creates fault isolation. An Australian operations lead might say the shop is “falling over”, but that shorthand must become request rates, queue depth, error rate and checkout latency before a redesign debate.
Price up delivery and operational ownership
Architecture follows the organisation that must change it. One monolith offers a simple deployment story, but a large feature can still create a release queue and trigger broad regression testing. Independent services let account, catalogue and fulfilment teams release when ready, provided automated pipelines that build container images, backward-compatible contracts and dependable rollback procedures already exist. Otherwise, many small deployments merely replace one coordination bottleneck with several.
Price the platform, not just the code. Microservices commonly require centralised logs, metrics, traces, secrets management, API gateways, service templates and on-call rotation. A small Australian team may struggle to support all of that, especially when specialist salaries and cloud commitments differ across Sydney, Melbourne and regional labour markets. Managed services can reduce the burden, but contracts, data-export options and exit costs need scrutiny.
Distributed teams need written ownership, runbooks and escalation paths that work beyond office hours. Engineers in Perth may be joining incident calls while Sydney colleagues are nearing the end of the day. Set expectations for handoffs and make dashboards useful without requiring every developer to carry every service in their head.
Keep data boundaries explicit
Data placement and transaction boundaries can dictate the architecture. A booking flow may need one consistent database operation across seat selection and payment reservation, making a single transactional boundary sensible. Services that synchronously update shared tables add coordination work and failure paths. Give each service clear data ownership and define how state changes propagate.
If you handle personal information covered by the Privacy Act 1988, the Australian Privacy Principles influence security, notice and access practices, but they do not create a blanket requirement to keep every record in Australia. Government buyers may expect alignment with the Australian Cyber Security Centre's Essential Eight. Data residency, retention and cross-border support should therefore be documented as explicit risk decisions.
Compliance scope does not shrink simply because a function sits behind an API gateway. Each service still needs access controls, auditability, patching and incident procedures. This is where a microservices estate can become expensive: duplicated controls and fragmented evidence increase audit preparation. A well-governed modular monolith can offer a smaller compliance surface without freezing the system into one permanent deployment.
Turn requirements into a weighted decision
Turn the debate into a weighted decision rather than a popularity contest. Give greater weight to factors that create business harm when wrong: checkout availability, release lead time, regulatory exposure and the cost of on-call support. Give less weight to theoretical scalability that no realistic traffic profile will reach. A small team may value one production deployment and straightforward database backups more than independent scaling for services that remain quiet.
Test the shortlisted design against several concrete scenarios: a campaign surge, a failed payment provider, a schema change, a rollback and the departure of a key engineer. Measure API response times, resource use and recovery effort. A short proof of concept can expose operational assumptions faster than a long design debate. Validate the plan with finance and operations, since an architecture requiring unfunded overnight coverage is not ready for production.
Record what would trigger a later change. Sustained load on one capability, separate release ownership or a need for stronger data isolation can justify extracting a service. Without those triggers, teams often pay distributed-system costs too early and find themselves maintaining complexity with no matching customer or operational benefit.
Build an architecture that can evolve
Choose the simplest design that satisfies today's critical requirements while preserving credible paths to change. A modular monolith often suits content, commerce and internal tools owned by one product team. Microservices become easier to justify when independent scaling, specialist ownership and separate release cycles are present, rather than when a service diagram is expected to impress a board.
A staged approach can combine both. Keep tightly coupled transactions together, separate genuinely independent workloads, and place static content behind a CDN. This might mean a monolith for catalogue and checkout, a small service for notifications, and an edge layer for public pages. Confirm that each boundary buys measurable resilience, delivery speed or operating value.
Architecture choices worth validating
- Favour a modular monolith when one main team owns the site, traffic is modest and business rules are tightly related; define module boundaries early.
- Adopt microservices around capabilities with distinct scaling, release or ownership needs, giving each service explicit data responsibility and failure behaviour.
- Keep shared logging, tracing, secrets and deployment templates small enough to support teams without forcing every service into the same shape.
- Reserve distributed infrastructure for demonstrated demand, including multi-region failover, and reassess when traffic, staffing or boundaries materially change.
A sound architecture makes trade-offs visible. It lets an Australian team ship reliably, understand cost and change the design when evidence says it should, rather than treating the initial diagram as permanent truth.