Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Architecture  ›  Lesson

Service-Oriented Architecture

Service Oriented 14 minService-oriented architecture builds an organisation's systems from reusable business services with formal contracts, often connected through shared integration middleware.

Service-Oriented Architecture

DabbaGo's tiffin, grocery and catering businesses all need to check a customer's address, send an invoice, and look up a kitchen. Each team has written its own version of all three. When the tax rules on invoices change, three teams make three different fixes. Leadership asks the obvious question: why not build each of these once and let every business use it?

The rule

Build shared business capabilities once, behind contracts everyone can call.

Service-oriented architecture (SOA) is a style that became popular in large organisations in the 2000s. Its main ideas:

  • Services are business capabilities, often fairly large: an Invoicing service, a Customer service, an Address service.
  • Contracts come first. Each service publishes a formal description of its operations and data, and consumers depend on that contract, not on how the service works inside.
  • Reuse across the enterprise. Many applications call the same service instead of building their own.
  • Shared integration layer. Services are often connected through central middleware, commonly called an enterprise service bus (ESB), which routes messages, transforms data formats and connects old systems to new ones.

For DabbaGo, one Invoicing service would produce every GST invoice for all three businesses. A tax change is fixed once, in one place, and every business gets it.

The costs are real:

  • Central coupling. If the bus or a popular shared service slows down, every business slows down with it.
  • Slow change. Changing a contract needs every consumer to agree and adapt, so shared services tend to change slowly.
  • Smart middle. When the bus holds routing and transformation logic, important behaviour ends up in a central place that only a specialist team understands.

These costs are part of why a newer style, microservices, later pushed the opposite way: smaller services owned by single teams, and simple pipes between them. That is the next lesson.

The shortcut

Ask "Is this capability the same everywhere, and does it change rarely?" If both answers are yes, a shared service pays off. If each business needs its own variation, or it changes weekly, sharing mostly adds meetings.

Which DabbaGo capabilities to share?Step 1 of 4
  1. Invoicing

    The same tax rules apply to all three businesses, and they change a few times a year. Same everywhere, rarely changes: share it.

The trap is sharing everything "for reuse". A capability that each business needs slightly differently becomes a shared service with endless options that nobody can change safely.

Drills

Answer fast — trust the rule.

quick drill

What does a consumer of an SOA service depend on?

quick drill

Which DabbaGo capability is the best candidate for a shared service?

quick drill

The central integration bus slows down at noon. What happens in a typical SOA setup?

quick drill

Why do shared SOA services often change slowly?

Remember

  • SOA builds shared business capabilities once, behind contracts everyone can call.
  • Shortcut: share what is the same everywhere and changes rarely.
  • Trap: sharing everything, and putting business logic into the central bus.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainThe shared service

DabbaGo's three business lines each want customer addresses. An architect proposes one shared Address service with a formal contract, reached through a central integration bus. Explain the benefit of this SOA approach and one risk it brings.