Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-23 00:01:58 UTC · snapshot created 2026-11-23 00:02:28 UTC · last check 2026-11-23 09:25:10 UTC

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.

ArrangementOrganizing mechanism and useful consequenceWhat can defeat that consequence
Layers, often within a modular monolithResponsibilities 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 filtersA 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 architectureStable 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 arrangementCapabilities 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 microservicesResponsibility 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 communicationProducers 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.