8.1 · The integration spectrum
Every integration architecture sits somewhere on a continuum from "everyone calls everyone directly" to "everything flows through shared infrastructure." Each step trades autonomy for governance and vice-versa.
Few enterprises are at one point on this line — most are at several at once, deliberately. The architect's job is to know which substrate is right for which integration: gateways at the north–south edge, mesh for east–west, event bus for asynchronous fan-out, data mesh for analytical sharing.
8.2 · Enterprise Integration Patterns (Hohpe & Woolf, 2003)
The canonical reference. 65 patterns, divided into Channels, Endpoints, Messages, Routing, Transformation, Management. Twenty-plus years later the icons are the lingua franca of integration; modern tools (Apache Camel, Mule, Spring Integration, NServiceBus) implement them by name.
| Pattern | Job |
|---|---|
| Message Channel | The pipe between sender and receiver |
| Message | The atomic unit on the channel (header + payload) |
| Pipes & Filters | Chain stateless processors on a channel |
| Message Router | Direct a message to one of several outputs based on rules |
| Content-Based Router | Route by inspecting the payload |
| Message Translator | Reshape between schemas |
| Splitter | Break a composite message into smaller ones |
| Aggregator | Combine related messages into one |
| Recipient List | Send the same message to a dynamic list of recipients |
| Process Manager | Stateful orchestrator across multiple messages |
| Message Endpoint | Application-side adapter to the channel |
| Dead Letter Channel | Where un-deliverable messages go for inspection |
8.3 · The ESB era — and why it died
The Enterprise Service Bus dominated 2005–2015: TIBCO BusinessWorks, IBM Integration Bus (formerly WebSphere Message Broker), Oracle Service Bus, MuleSoft (original), Software AG webMethods. The promise: one central platform doing routing, transformation, orchestration, and protocol mediation between every application. The reality: the bus became the place where every team's business logic was buried, releases serialised through a single integration team, vendor lock-in deepened, and the bus itself became the largest single point of failure in the enterprise. The microservices movement (≈2014) and the API-gateway pattern displaced the ESB by pushing logic back into services and reserving the middle for stateless concerns.
8.4 · The API gateway era
An API gateway is a stateless reverse proxy in front of backend services. It owns concerns that don't belong in the service: authentication and token exchange, rate limiting and quotas, routing and versioning, request/response transformation, caching, observability, monetisation. Examples: Kong, Apigee (Google), AWS API Gateway, Azure API Management, Tyk, Gravitee, Solo Gloo, WSO2.
| Responsibility | Belongs at gateway? |
|---|---|
| OAuth / OIDC token validation | Yes — uniform, audited |
| Rate limit per consumer | Yes — fairness, abuse prevention |
| Schema transformation between major versions | Yes — short term, plan to retire |
| Business rule "if customer is gold, route to premium queue" | No — that's domain logic, belongs in the service |
| Service-to-service mTLS & retry | No — that's east–west, belongs in mesh |
8.5 · API-led connectivity (MuleSoft)
MuleSoft popularised a three-layer API taxonomy that has become widely cited regardless of vendor:
- System APIs — wrap each system of record (SAP, Salesforce, mainframe) with a stable, canonical interface. Built once.
- Process APIs — combine and orchestrate system APIs to implement business processes (e.g. OrderToCash). Reusable across channels.
- Experience APIs — channel-specific shaping (mobile, web, partner portal). Cheap to spin up and retire.
The discipline pushes domain logic toward the centre and lets the experience layer stay disposable. It complements DDD (Ch 07) and is well-served by GraphQL or BFF (Backend-for-Frontend) at the experience layer.
8.6 · Service mesh — east–west infrastructure
A service mesh handles service-to-service traffic inside a cluster: mTLS, mutual identity (SPIFFE/SPIRE), retries with budgets, circuit breaking, traffic shifting (canary, blue-green, weighted), telemetry. Implementations: Istio (Envoy data plane, control plane in Go), Linkerd (Rust-based, lightweight), Consul Connect (HashiCorp), Cilium (eBPF-based, no sidecar required). Service-mesh-vs-API-gateway is not either/or — most production architectures use both: gateway at the edge for north–south, mesh inside for east–west.
8.7 · Orchestration vs Choreography
| Aspect | Orchestration | Choreography |
|---|---|---|
| Control flow | Central conductor (Temporal, Camunda 8, Step Functions, Conductor) | Each service reacts to events |
| Visibility | Easy — the orchestrator is the trace | Hard — needs distributed tracing |
| Coupling | Services coupled to orchestrator | Services coupled to event schemas |
| Best for | Long-running, transactional, compensating workflows | Fan-out, decoupled domain reactions |
8.8 · B2B integration
The world outside the cloud-native bubble still runs on standards that predate the web. Solution architects in retail, logistics, healthcare, automotive, and government must speak this language fluently.
| Standard | What it is |
|---|---|
| EDI X12 (ANSI) | North-American electronic document standard — 850 PO, 810 Invoice, 856 ASN, etc. |
| EDIFACT (UN/CEFACT) | International equivalent — ORDERS, INVOIC, DESADV |
| AS2 (RFC 4130) | Secure HTTP-based transport for EDI; signed, encrypted, MDN-acknowledged |
| AS4 | SOAP/ebMS-based successor; mandated by PEPPOL, European e-Invoicing |
| SFTP | Still the most-used transport for partner file drops |
| PEPPOL | EU public-procurement document exchange network; access points + SMP/SML |
| HL7 v2 / FHIR | Healthcare data exchange (v2 = pipe-delimited legacy; FHIR = REST + JSON modern) |
| SWIFT MT / ISO 20022 | Inter-bank financial messaging; ISO 20022 is the modern XML/JSON standard |
8.9 · iPaaS — Integration Platform as a Service
Cloud-hosted integration platforms abstract connectors, triggers, and transformations into a low-code surface. They live on a spectrum from enterprise-grade to citizen-developer.
| Tier | Examples | Strengths |
|---|---|---|
| Enterprise iPaaS | MuleSoft Anypoint, Dell Boomi, SAP Integration Suite, Informatica IICS | Governance, scale, hundreds of connectors, on-prem agents |
| Mid-market / workflow | Workato, Tray.io, Celigo | Faster delivery, decent governance |
| Citizen / no-code | Zapier, Make (Integromat), n8n (open source), Pipedream | Speed, breadth, low barrier; weaker governance |
8.10 · Event-driven backbones
| Tool | Model | Sweet spot |
|---|---|---|
| Apache Kafka | Distributed log; consumers track offsets | High throughput, replay, event sourcing, streaming |
| NATS (JetStream) | Lightweight pub-sub + log; small footprint | Edge / IoT / microservice glue |
| RabbitMQ | AMQP broker, queue-centric | Classic work queues, RPC over messaging |
| AWS EventBridge | Serverless event bus + rule routing | SaaS-event ingestion, AWS-native fan-out |
| GCP Pub/Sub | At-least-once global pub-sub | GCP-native streaming, analytics ingestion |
| Azure Event Grid / Hubs / Service Bus | Three products: reactive events / streaming / enterprise messaging | Azure-native, choose by workload |
| Apache Pulsar | Multi-tenant log + queue hybrid, segmented storage | Geo-replication, multi-tenant SaaS |
| Redpanda | Kafka-compatible, C++, no ZooKeeper | Low-latency Kafka workloads |
Gateway + mesh + event bus working together
8.11 · API styles & their fit
| Style | Transport / spec | Use when |
|---|---|---|
| REST (Fielding 2000) | HTTP + JSON, OpenAPI 3.x | Resource-centric, public APIs, broad tooling |
| GraphQL (Facebook 2015) | HTTP + schema, single endpoint | Multiple clients with different field needs; BFF |
| gRPC (Google 2016) | HTTP/2 + Protobuf | Low-latency east–west, polyglot internal services |
| AsyncAPI | Spec for event-driven APIs (Kafka, AMQP, MQTT) | Documenting topics, channels, schemas for async |
| WebHooks | HTTP callback from producer to subscriber | SaaS-to-customer eventing without a broker |
| MCP (Model Context Protocol, 2024) | JSON-RPC over stdio / SSE / HTTP | Tool / context exposure to LLM agents — see AI Codex |