Service-oriented architecture (SOA)
Service-oriented architecture (SOA) organizes an enterprise’s capabilities as reusable services with formal contracts, such as “customer lookup”, “account balance” or “credit check”, that many applications share. Services are usually connected through shared integration infrastructure, typically an enterprise service bus (ESB) that routes, transforms and mediates messages between them.
SOA was the dominant enterprise integration approach of the 2000s, and a great deal of it still runs banks, insurers, governments and healthcare systems today. Microservices grew out of it, keeping the idea of services while rejecting much of the shared, centralized machinery. Understanding SOA matters both for working with the systems it built and for knowing which of its ideas still hold up.
Diagram
Section titled “Diagram”- Every channel calls services through the bus, using a common message format and contract.
- Multi-step business processes are orchestrated centrally, calling several services in sequence.
- Shared services, including wrapped legacy systems, are reused by every channel and process.
How it works
Section titled “How it works”- Services as enterprise assets. Each service represents a business capability, is designed for reuse across the organization, and has a formal contract (traditionally WSDL and XML Schema, today often OpenAPI).
- An enterprise service bus handles routing, protocol bridging (SOAP, JMS, files, MQ), message transformation, security and monitoring, so services and consumers don’t need to know about each other directly.
- A canonical data model. A shared, enterprise-wide definition of key entities such as Customer or Account, which the bus maps to and from each system’s own format.
- Central orchestration. Business process engines (BPEL, BPMN) coordinate long-running processes across services.
- Governance. A service registry, versioning rules, reuse reviews and policies (security, reliability) that apply to every service.
- Legacy wrapping. Mainframes and packaged applications are exposed as services through adapters, which is one of SOA’s lasting strengths.
SOA and microservices compared
Section titled “SOA and microservices compared”| Aspect | SOA | Microservices |
|---|---|---|
| Main goal | Reuse and integration across the enterprise | Independent change and deployment by teams |
| Service size | Often large, enterprise-wide | Small, one bounded context |
| Integration | Smart central bus (“smart pipes”) | Simple transport, logic in the services (“dumb pipes, smart endpoints”) |
| Data | Often shared databases, canonical model | Each service owns its data |
| Governance | Centralized standards and reviews | Decentralized, with platform guardrails |
| Typical protocols | SOAP, WS-*, JMS, MQ | REST, gRPC, event streams |
| Ownership | Services often owned by a central integration team | Each service owned by a product team |
The two aren’t strictly opposites: many organizations run both, and modern API-led connectivity is a direct descendant of SOA’s layered service ideas.
- Reuse: one customer or account service serves every channel.
- Integration of heterogeneous systems, including mainframes and packaged apps, without changing them.
- Consistent security, monitoring and policy applied centrally.
- Mature tooling and skills, especially in regulated industries.
- The bus becomes a bottleneck, technically and organizationally: every change waits for the integration team.
- Logic leaks into the middleware, creating a hard-to-test, hard-to-change “distributed monolith in the middle”.
- Canonical models grow huge and slow to change, because every consumer depends on them.
- Heavy governance can make delivering a simple change take weeks.
When to use it
Section titled “When to use it”- Integrating many existing systems, especially legacy and packaged applications, across a large enterprise.
- When genuine, stable reuse exists, such as core customer, product or account services used by many channels.
- Regulated environments that need central policy enforcement and auditing of integrations.
When to avoid it
Section titled “When to avoid it”- Building a new product where speed of change by independent teams matters most; see microservices or a modular monolith.
- Don’t push business rules into the bus. Keep it for routing, transformation and mediation.
Common pitfalls
Section titled “Common pitfalls”- Business logic in the ESB, turning integration flows into the system nobody can change.
- Reuse as the goal rather than an outcome: designing every service for imagined future consumers.
- One canonical model for everything, instead of shared models only for genuinely shared entities.
- Integration team as gatekeeper, with a queue that slows every project.
- Big-bang ESB replacement: modernize SOA landscapes gradually, flow by flow, using the strangler fig pattern.
In practice
Section titled “In practice”- Airbnb: moving off the Monorail, a move to a service-oriented architecture
- Scenario: integration spaghetti, where SOA-era landscapes often end up
- Scenario: the core system nobody dares to change
- Case study: HealthCare.gov, integration across many government systems
Related patterns
Section titled “Related patterns”Glossary: API gateway, strangler fig
Further reading
Section titled “Further reading”- OASIS, Reference Model for Service Oriented Architecture 1.0 (opens in a new tab)
- Gregor Hohpe and Bobby Woolf, Enterprise Integration Patterns (opens in a new tab)
- Martin Fowler and James Lewis, Microservices (opens in a new tab), including how microservices differ from SOA
Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.