Skip to content

6.2. Structural Patterns

Once services exist, recurring structural problems — adding cross-cutting behavior without touching application code, proxying outbound calls, shielding new services from a legacy model — have named solutions that deploy as separate processes rather than shared libraries. This chapter covers the sidecar, ambassador, and adapter patterns, the anti-corruption layer that keeps a clean domain from being polluted by a legacy one, and the shared-library-versus-sidecar trade-off that decides how cross-cutting logic is distributed.