Architecture Patterns

General material on architectural patterns and their trade-offs.

4Questions
16Flashcards
12Terms
Terminology

12 terms in this topic

pattern

Backend for Frontend

A separate, narrow backend per client experience, which aggregates and reshapes downstream services for exactly that client's needs.

pattern

Event-Driven Architecture

A style in which components communicate by emitting and reacting to facts about what happened, rather than by calling each other.

pattern

Hexagonal Architecture

Putting the domain at the centre and letting everything external — UI, database, queues — attach through ports implemented by replaceable adapters.

pattern

Layered Architecture

Organising code into horizontal layers — presentation, application, domain, data — where each layer may only call the one beneath it.

pattern

Modular Monolith

A single deployable unit internally partitioned into modules with enforced boundaries, explicit interfaces and no shared internal state.

pattern

Pipes and Filters

Decomposing processing into independent steps connected by channels, each transforming its input and passing it on.

case-study

Prime Video's Move Back to a Monolith

Amazon Prime Video consolidated a serverless, distributed audio/video monitoring service into a single process and reported a 90% cost reduction — th…

pattern

Publish/Subscribe

A messaging pattern where each published message is delivered to every interested subscriber, rather than to one competing worker.

tool

Service Mesh

An infrastructure layer of sidecar proxies that handles service-to-service networking — mTLS, retries, timeouts, routing, telemetry — outside the app…

case-study

Shopify's Pods and Modular Monolith

Shopify handles Black Friday scale with isolated pods — complete stacks each serving a subset of merchants — while keeping the application itself a d…

pattern

Sidecar

Deploying a helper process alongside the main application in the same unit, to supply cross-cutting behaviour without changing the application.

pattern

Strangler Fig

Replacing a legacy system incrementally by routing individual capabilities to new implementations behind a facade, until nothing routes to the old system.

Architecture Patterns

Neighbouring topics

Layered Architecture

The default shape, its clarity, and where a technical partition fails.

4 quiz 11 cards 3 terms

Event-Driven Architecture

Publishing facts, and trading comprehensibility for decoupling.

4 quiz 12 cards 2 terms

Pipes and Filters

Independent transformation steps composed into a pipeline.

4 quiz 11 cards 3 terms

Publish/Subscribe

Broadcast to every subscriber, as distinct from work distribution.

6 quiz 13 cards 4 terms

Competing Consumers

Scaling throughput with instances, at the cost of ordering.

4 quiz 9 cards 4 terms

Saga

Local transactions with compensating actions across services.

5 quiz 7 cards 3 terms

CQRS

Separate models for writing and reading, each optimised for its job.

4 quiz 9 cards 3 terms

Event Sourcing

The event log as the system of record, with state as a projection.

4 quiz 5 cards 3 terms

Outbox

Making the event atomic with the business write it describes.

4 quiz 11 cards 4 terms

Strangler Fig

Incremental replacement behind a routing facade.

4 quiz 8 cards 3 terms

Anti-Corruption Layer

Translating a foreign model at the boundary so it does not leak in.

4 quiz 12 cards 2 terms

Sidecar & Ambassador

Cross-cutting behaviour in a co-deployed process.

3 quiz 8 cards 3 terms

Service Mesh

Sidecars applied estate-wide, and the scale at which that pays.

4 quiz 9 cards 3 terms

API Gateway

A single entry point for policy, routing and protocol translation.

4 quiz 13 cards 3 terms

Backend for Frontend

A narrow backend per client experience, owned by that client's team.

5 quiz 12 cards 2 terms

Cell-Based Architecture

Complete isolated copies each serving a subset of customers.

5 quiz 10 cards 4 terms

Sharding Patterns

Directory versus embedded keys, logical shards and rebalancing.

3 quiz 12 cards 3 terms

Materialized Views

Precomputed query results, refreshed incrementally or in full.

4 quiz 10 cards 4 terms

Orchestration vs Choreography

A coordinator that knows the flow, or services that react to events.

5 quiz 11 cards 3 terms