ArticleslgStudy

computer science

Service-oriented architecture

Service-oriented architecture is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Service-oriented architecture rather than just read about it. In short: In software engineering, service-oriented architecture (SOA) is an architectural style that focuses on discrete services instead of a monolithic design. SOA is a good choice for system integration.

Service-oriented architecture — main illustration
Service-oriented architecture — illustration

Key takeaways

  • Service-oriented architecture belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Service-oriented architecture to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Service-oriented architecture from memory before moving on to harder problems.

Reference excerpt

In software engineering, service-oriented architecture (SOA) is an architectural style that focuses on discrete services instead of a monolithic design. SOA is a good choice for system integration. By consequence, it is also applied in the field of software design where services are provided to the other components by application components, through a communication protocol over a network. A service is a discrete unit of functionality that can be accessed remotely and acted upon and updated independently, such as retrieving a credit card statement online. SOA is also intended to be independent of vendors, products and technologies. Service orientation is a way of thinking in terms of services and service-based development and the outcomes of services. A service has four properties according to one of many definitions of SOA:

It logically represents a repeatable business activity with a specified outcome. It is self-contained. It is a black box for its consumers, meaning the consumer does not have to be aware of the service's inner workings. It may be composed of other services. Different services can be used in conjunction as a service mesh to provide the functionality of a large software application, a principle SOA shares with modular programming. Service-oriented architecture integrates distributed, separately maintained and deployed software components. It is enabled by technologies and standards that facilitate components' communication and cooperation over a network, especially over an IP network. SOA is related to the idea of an API (application programming interface), an interface or communication protocol between different parts of a computer program intended to simplify the implementation and maintenance of software. An API can be thought of as the service, and the SOA the architecture that allows the service to operate. Note that Service-Oriented Architecture must not be confused with Service Based Architecture as those are two different architectural styles.

Overview In SOA, services use protocols that describe how they pass and parse messages using description metadata. This metadata describes both the functional characteristics of the service and quality-of-service characteristics. Service-oriented architecture aims to allow users to combine large chunks of functionality to form applications which are built purely from existing services and combining them in an ad hoc manner. A service presents a simple interface to the requester that abstracts away the underlying complexity acting as a black box. Further users can also access these independent services without any knowledge of their internal implementation.

Defining concepts The related buzzword service-orientation promotes loose coupling between services. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services and their corresponding consumers communicate with each other by passing data in a well-defined, shared format, or by coordinating an activity between two or more services. SOA can be seen as part of the continuum which ranges from the older concept of distributed computing and modular programming, through SOA, and on to practices of mashups, SaaS, and cloud computing (which some see as the offspring of SOA).

Principles

There are no industry standards relating to the exact composition of a service-oriented architecture, although many industry sources have published their own principles. Some of these include the following:

Standardized service contract Services adhere to a standard communications agreement, as defined collectively by one or more service description documents within a given set of services. Service reference autonomy (an aspect of loose coupling) The relationship between services is minimized to the level that they are only aware of their existence. Service location transparency (an aspect of loose coupling) Services can be called from anywhere within the network that it is located no matter where it is present. Service longevity Services should be designed to be long lived. Where possible, services should avoid forcing consumers to change if they do not require new features; if you call a service today, you should be able to call the same service tomorrow. Service abstraction The services act as black boxes, that is their inner logic is hidden from the consumers. Service autonomy Services are independent and control the functionality they encapsulate, from a Design-time and a run-time perspective. Service statelessness Services are stateless, that is either return the requested value or give an exception hence minimizing resource use. Service granularity A principle to ensure services have an adequate size and scope. The functionality provided by the service to the user must be relevant. Service normalization Services are decomposed or consolidated (normalized) to minimize redundancy. In some, this may not be done. These are the cases where performance optimization, access, and aggregation are required. Service composability Services can be used to compose other services. Service discovery Services are supplemented with communicative meta data by which they can be effectively discovered and interpreted. Service reusability Logic is divided into various services, to promote reuse of code. Service encapsulation Many services which were not initially planned under SOA, may get encapsulated or become a part of SOA.

Patterns Each SOA building block can play any of the three roles:

… excerpt ends here. Continue reading the full article.

Illustrations

Service-oriented architecture: SOA meta-model, The Linthicum Group, 2007
SOA meta-model, The Linthicum Group, 2007

Worked examples

Example 1 — a first encounter with Service-oriented architecture

Start with the simplest possible case. Write down what Service-oriented architecture claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Service-oriented architecture before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Service-oriented architecture ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Service-oriented architecture

In research
Service-oriented architecture appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Service-oriented architecture in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Service-oriented architecture is common in secondary-school and first-year university syllabi. It links to neighbouring topics Architectural pattern (computer science), Enterprise application integration, Service-oriented (business computing), so understanding it makes those chapters shorter.
In everyday life
Look for Service-oriented architecture outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Service-oriented architecture” →

How to study Service-oriented architecture in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Service-oriented architecture means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Service-oriented architecture out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Service-oriented architecture in simple terms?

In software engineering, service-oriented architecture (SOA) is an architectural style that focuses on discrete services instead of a monolithic design. SOA is a good choice for system integration.

Why does Service-oriented architecture matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Service-oriented architecture?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Service-oriented architecture.

Tags

  • Architectural pattern (computer science)
  • Enterprise application integration
  • Service-oriented (business computing)
  • Software design patterns
  • Web services

Keep exploring