SYSE.6:4.4 - Compare software architecture arrangements by their mechanisms
Use this explanation when software candidates are being compared by labels such as layered, pipeline, plugin, service-oriented or microservices. A style restricts how parts may depend on, communicate with and change one another. Those restrictions can produce useful properties under particular workloads and change patterns. The name alone supplies neither the restrictions nor their effects in your candidate.
The following repertoire helps an engineer understand and question a software proposal before detailed implementation. It assumes ordinary knowledge of program modules, calls, storage and deployment. It does not replace the specialist design of algorithms, security, distributed transactions or hard real-time execution. Use §4.1 to decide among sufficiently developed candidates; return an unexplained mechanism to candidate development rather than awarding points for a familiar style.
SYSE.6:4.4.1 - Identify which structure each name constrains
Keep four boundaries visible in the same candidate. A module boundary controls which implementation knowledge other code may use. A runtime boundary separates executing processes or machines, with communication and failure consequences. A data boundary determines who may change particular state and which invariants must hold together. A release boundary determines what can change without a coordinated update of its consumers. Team responsibility is a further organizational relation: draw it alongside these boundaries rather than deriving it from a box count.
These boundaries need not coincide. A well-structured application can contain many modules in one release. Several separately running services can need one coordinated release because they share a changing schema or incompatible protocol. If an architectural quantum is used in discussion, ask which execution, state and compatibility dependencies make the proposed unit independently deployable under the stated conditions.
The alternatives below are not successive generations or mutually exclusive bins. A service can contain layers; its import job can be a pipeline; its domain logic can use ports and adapters. Compare complete combinations at the boundary relevant to the decision.
| Arrangement | Organizing mechanism and useful consequence | What can defeat that consequence |
|---|---|---|
| Layers, often within a modular monolith | Responsibilities are separated and allowed dependencies constrained. The responsibility groups are functional layers. Identify separately the modules that realize them and any levels in their dependency or interface structure. Presentation changes can remain apart from domain rules; internal calls and a shared transaction can keep a small application straightforward to operate. | A feature cutting across all layers requires coordinated changes. Pass-through layers add work without isolating a changing decision. Logical layers need not be separate network tiers; adding tiers changes latency and failure handling. |
| Pipes and filters | A task becomes transformations with explicit input/output contracts, connected by streams or queues. A filter can be reused or replaced when its contract remains compatible; stages and independent items can execute concurrently. | Global state, order requirements, blocking joins and an expensive serial stage limit concurrency. Serialization, transport and intermediate storage can dominate small transformations. Recovery must distinguish replayable processing from irreversible effects. |
| Core with plugins, often called microkernel architecture | Stable common responsibilities stay in the core; variable behaviour enters through extension contracts. A document tool can accept another format or analysis without editing every existing extension. | The extension contract may not express the new variation. Core changes then affect many plugins. Loading a plugin into the same process does not isolate a crash, malicious access or resource exhaustion; isolation needs an actual mechanism. |
| Service-oriented arrangement | Capabilities are accessed through described interfaces, potentially across ownership domains. Consumers can use a capability without taking over its implementation. | A shared database, central orchestration or common schema may create substantial coupling. SOA does not require one database, a particular bus or one deployment model. Compare the actual coordination arrangement. |
| Autonomous services, including microservices | Responsibility and writable state are encapsulated behind compatible interfaces, with separately operable releases. A capability can change or scale without changing unrelated implementations. | Cross-service invariants, synchronous call chains and incompatible contracts restore coupling. Separate storage adds synchronization, recovery and observation work. A small endpoint is not automatically an autonomous business capability. |
| Event-driven communication | Producers publish occurrences that interested consumers interpret under agreed contracts. New reactions and independent consumer rates can be supported without adding each consumer to the producer’s call chain. | Delivery delay, duplication, ordering, schema change and incomplete processing become explicit design problems. Removing a synchronous call does not remove the business dependency or make a timely joint result inevitable. |
A modular monolith combines one deployment with enforced module interfaces. It can retain local transactions and inexpensive calls. Its cost is a shared release and often shared scaling or failure scope. Current Spring Modulith supplies one concrete implementation of exposed module interfaces and hidden internals. Check the boundaries enforced in the application under consideration.
Two commonly confused arrangements answer other questions. Ports and adapters place domain-facing interactions behind interfaces so that a user interface, database adapter or test double can change without embedding its technology in the application logic. The original hexagonal architecture explains this inside/outside distinction; it is not a claim that a particular number of layers or machines is necessary. A sidecar is a separately executing companion deployed with an application instance, often for proxying or telemetry. Its resource cost and lifecycle follow that placement. A sidecar can coexist with ports and adapters; it is not their replacement or a rule about ownership of domain data.
SYSE.6:4.4.2 - Derive performance claims from the actual path
Separate latency, the elapsed time for one requested result, from throughput, completed results per unit time. For an illustrative three-stage pipeline, suppose each item requires 2, 8 and 2 milliseconds of service, each stage has one dedicated worker, and independent items stream without batching, transport cost or contention. The first item needs 12 ms. Once filled, the pipeline can complete at most one item per 8 ms, or 125 items/s. Executing all three transformations on one worker would allow at most 1/0.012, about 83 items/s. Pipelining can therefore improve throughput without reducing that item’s service latency.
Two independent workers at the middle stage raise its ideal capacity to 250 items/s; the other stages each allow 500 items/s. That bound assumes independent items can be routed to either worker and there is no shared serialization point. If every item must update the same locked state, or a later stage waits for a complete batch, this calculation does not apply. Queueing, retries and networking add elapsed time. At a sustained arrival rate above the slowest stage’s capacity, backlog grows unless work is rejected, reduced or capacity changes. Below that bound, variability can make a tail-latency target fail. Calculate the dependency path and capacity constraints. Use qualified evidence for the performance commitment. Obtain representative measurements if the commitment needs them and the existing evidence falls short.
The same reasoning applies to services. Five dependent remote calls add waiting and partial-failure cases; five independent computations may run concurrently, but the result waits for whichever contributions it requires. Count the actual calls and shared resources. A style rating such as “high performance” cannot answer whether a caller receives the needed result within its deadline. For a high-rate image conversion job, separating and scaling a slow filter may be useful; for a short local lookup, the added transport may cost more than the transformation.
SYSE.6:4.4.3 - Follow state, compatibility and change across the boundaries
Start with a representative behaviour and a consequential change. Trace which modules, running services, data and consumers must participate. For a reservation, ask which state prevents two parties receiving the same remaining item. If two modules share one transaction, its isolation and locking need qualification, but it can supply one place to enforce the invariant. If two services own separate state, name the coordination that preserves the required promise, or explicitly change the promise and supply an acceptable failure or compensation path. Eventual consistency is suitable only where the receiving use tolerates that interval.
Next change an interface or stored representation. A service may be separately deployable only if old and
new consumers can coexist, required data are available, and the provider can observe and recover from a
failed update. SYSE.34 develops compatible data changes; SYSE.35 and SYSE.41 supply controlled exposure
and deployment. Include the work needed to deliver and operate those changes in the architecture comparison.
For plugins, apply the same question to the extension API and host version. SYSE.53 resolves a
particular compatible component selection once those conditions are known.
Use the trace to compare three kinds of change: changing an internal algorithm while preserving the contract,
extending a capability through an existing contract, and changing the contract. The first two may be
local; the third exposes affected consumers. Check persistent data and operational procedures as well as code.
If every modest feature crosses the same boundaries, reconsider the partition instead of continually adding
coordination machinery. SYSE.23 compares the resulting investments in the target and its builder arrangement.
The comparison identifies which change can be independent, what mechanism permits it, what work remains coupled and what would reverse the choice for this use.
SYSE.6:4.4.4 - Software case: booking equipment without distributing the reservation invariant
A small field-service organization needs equipment booking, a searchable catalogue and inspection reports. The stipulated current conditions are one development team, a common weekly release, moderate booking load, and a promise that one available kit cannot be committed to two crews. Inspection photographs arrive in bursts; search results may lag by a minute, but confirming a booking must use current authoritative availability. These are constructed decision inputs, not measured production results.
Candidate A has one application deployment with separate catalogue, reservation and inspection modules, a controlled shared transaction for the booking invariant, and a queued image-processing worker. Module interfaces prevent an inspection-screen change from reaching into reservation internals. Candidate B splits catalogue, reservation and inspection into independently deployed services with owned storage, keeping the reservation authority in one service. Both can use ports and adapters for external maintenance reports.
A saves distributed-operation work while meeting the team’s common release arrangement. The queued worker can scale for photograph processing without partitioning booking state. B could release inspection changes separately, but the current team does not need that freedom; it must nevertheless design version compatibility, message recovery, replicated search data and tracing. Splitting availability and reservation into separately updated stores without a coordination mechanism would create a third, currently inadmissible candidate: a favourable latency estimate cannot compensate for an unsupported booking promise.
For these inputs the decision retains A, with enforced internal interfaces, one authoritative reservation operation and bounded search freshness. It accepts the shared application release and application-process failure scope. The decision requires workload evidence before asserting response-time adequacy. A plugin mechanism would be considered if separately supplied inspection algorithms became a recurring variation; a pipeline is useful for the photographs, not automatically for the entire booking interaction.
Now change the premise. Inspection is maintained by another provider, must be released several times a day, and processes untrusted large files; its execution failures must not stop booking. A separate inspection service or isolated worker with a versioned result contract becomes a stronger candidate. Compare a separation of inspection that supplies those properties with B’s wider partition. Retain reservation authority and its still-valid invariant argument; define how delayed or rejected inspection results affect booking. The new preference follows from release and failure conditions, not from team count alone. Actual isolation, compatible updates and resource limits need implementation evidence.
An unlike use changes the choice again: an offline inspection desktop tool accepts third-party file readers but has no independent service operators. A stable core with compatible plugins and an isolation mechanism for untrusted readers may address its variation. A network service per reader would add an availability condition the offline use cannot meet.