Modern Architectural Styles Overview
Software architecture has changed substantially in two decades. Cloud computing, distributed systems, and the demand for highly scalable applications pushed architectural styles past the classic monolith — but didn’t replace traditional patterns. Modern systems mix and match.
This lesson is a tour of the styles you’ll encounter, what each is good for, and the technologies typically used to build them.
Traditional Styles (Still Useful)
These long-established styles remain the foundation of most software, often serving as the building blocks of modern distributed systems.
Adjacent layers versus transformation steps
Layered architecture lets a layer call only its neighbor. Presentation calls business logic. Business logic calls the data layer. Presentation does not open a database connection. The axis is concern: presentation, business, data.
Pipes and filters use a different axis. Each filter is one transformation. A record enters, leaves with a new shape, and the next filter does not know the previous filter’s internals. Unix pipelines, Kafka Streams, Camel, and RxJS are this shape. A layered service can still contain a pipe for a single workflow. The styles answer different questions, which is why one system uses both.
Modern Styles
These approaches emerged to handle cloud-scale distributed systems.
Microservices
Break the application into small independent services that communicate over the network. Each service owns its data, can be deployed independently, and is typically organized around a business capability.
Technologies. Docker, Kubernetes, service meshes (Istio, Linkerd), API gateways (Kong, Ambassador), gRPC, REST.
Event-Driven Architecture
Components communicate asynchronously through events. The publisher doesn’t know who’s listening; subscribers process events independently. Naturally supports reactive and real-time processing.
Technologies. Apache Kafka, AWS EventBridge, Azure Event Grid, RabbitMQ, Apache Pulsar.
Space-Based Architecture
Eliminates the central database as a bottleneck by using replicated in-memory data grids. Processing units contain both application logic and data. New units can be added or removed dynamically as load changes. Ideal for traffic patterns with extreme spikes.
Technologies. Apache Ignite, Hazelcast, Oracle Coherence, GridGain, Redis Cluster.
How a processing unit stays in sync
Each processing unit holds the code that serves a request and a replica of the data that request needs. The request path has no central database. Units stay aligned by two mechanisms used together: messaging, and replication inside the in-memory grid.
add a unit -> capacity grows
remove a unit -> capacity shrinks
request path does not read a shared database
sync = messaging + in-memory grid replication
The trade-off is replication lag. A read on one unit can miss a write another unit has already accepted. The style fits extreme, spiky traffic, where removing the shared database as a bottleneck is worth that weaker consistency.
Serverless
Delegates infrastructure management entirely to the cloud provider. Applications are stateless, event-driven functions with automatic scaling and pay-per-execution billing.
Technologies. AWS Lambda, Azure Functions, Google Cloud Functions, Vercel, Cloudflare Workers.
Reactive Architecture
Builds systems that are responsive, resilient, elastic, and message-driven (the four properties from the Reactive Manifesto). Emphasizes asynchronous, non-blocking communication and graceful failure handling. Strong fit for high-throughput, low-latency applications.
Technologies. Akka, Vert.x, Spring WebFlux, RxJava, Reactive Streams, Node.js, Erlang/Elixir.
Peer-to-Peer
Distributes functionality among nodes that act as both clients and servers. Decentralized, no central coordination. Excellent fault tolerance and scalability.
Technologies. Blockchain platforms, BitTorrent, DHTs, IPFS, libp2p, WebRTC.
How They Combine in Practice
A modern multi-tenant SaaS rarely picks a single style. A common composition:
Choosing a Style
The choice depends on system requirements, team structure, operational constraints, and business goals. A few rules of thumb:
- Default to a modular monolith for most early-stage products. Extract services as boundaries firm up.
- Microservices make sense once team size, deployment cadence, and scaling requirements justify the operational tax.
- Event-driven is the right pattern when you have multiple consumers of the same state changes — including the consumers you don’t have yet.
- Serverless is ideal for spiky, stateless workloads where the operational simplicity outweighs the cold-start trade-off.
- Reactive matters when sustained high throughput on low-latency endpoints is the requirement.
The lessons that follow go deep on the styles most relevant to multi-tenant SaaS: modular monoliths, microservices, event-driven, reactive, serverless, and multi-tenancy patterns specifically.
Recap
- Architectural styles aren’t mutually exclusive; production systems combine them.
- Traditional styles (layered, MVC, pipes & filters, microkernel, SOA) remain the foundation.
- Modern styles (microservices, event-driven, space-based, serverless, reactive, P2P) address cloud-scale distribution.
- Default to simpler styles; reach for more complex ones only when their costs are justified by the requirements.