Jump to content

Service layer pattern

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Lfstevens (talk | contribs) at 23:41, 14 September 2010 (rem tags). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Service Layers is a design pattern, applied within the service-orientation design paradigm, which aims to organize the services[1], within a service inventory[2], into a set of logical layers. Services that are categorized into a particular layer share functionality. This helps to reduce the conceptual overhead related to managing the service inventory, as the services belonging to the same layer address a smaller set of activities.

Rationale

Grouping services into functional layers reduces the impact of change. Most changes affect only the layer in which they're made, with few side-effects that impact other layers. This fundamentally simplifies service maintenance.

The Service Reusability principle dictates that services should be designed to maximize reuse. Similarly, the Service Composability principle advocates designing services so that they can be composed into various ways.[3] Both principles require that a service contain only a specific type of logic e.g., either reusable or process-specific logic.[4] Restricting each layer to a particular functionality, simplifies the design of the service.[5]

Usage

Diagram A
Diagram A
In the absence of any layers, services contain a mixture of different types of logic. This makes it difficult to manage these services.
Diagram B
Diagram B
A service inventory divided into layers where each layer contains the same type of logic.

Applying this pattern requires creating a service inventory blueprint,[6] a list of services with associated functionality. Next, group the services into layers according to function. Adopting a common layering strategy across the enterprise facilitates reuse in other applications, because developers don't have as much to learn (or invent) when they join a project.[7] One common layering uses task,[8] entity [9] and utility [10] layers.[11][5].

An alternative layering from Bieberstein et al.[12], involves five layers, namely Enterprise, Process, Service, Component and Object.

The Service Layers pattern invokes a specific service architecture.

The top-down service delivery approach[13] facilitates the use of this pattern.

References