|
|
Master SOA Design Pattern Catalog
|
|
|
|

Agnostic Sub-Controller (Erl)

|

Home > Composition Implementation Patterns > Agnostic Sub-Controller
|
How can agnostic, cross-entity composition logic be separated,
reused, and governed independently?
|
|
|
|
|

Problem

Service compositions are generally configured specific to a
parent task, inhibiting reuse potential that may exist within a
subset of the composition logic.
|
|

Solution

Reusable, cross-entity composition logic is abstracted or made
accessible via an agnostic sub-controller capability, allowing that
subset of the parent composition logic to be recomposed
independently.
|
|

Application

A new agnostic service is created or a task service is appended
with an agnostic sub-controller capability.
|
 |
 |
 |

Impacts

The addition of a cross-entity, agnostic service can increase the
size and complexity of compositions and the abstraction of
agnostic cross-entity logic can violate modeling and design
standards established by Service Layers.
|
|
|
|
|
|


|
A traditional, single-purpose composition is often configured in a two-tier hierarchy, with all of the
composition logic residing in the parent task service. Alternatively, the composition can be structured
into additional tiers so that the composition is comprised of a parent controller service and one or more
nested compositions represented by sub-controller services. These nested compositions may be necessary
to carry out the parent task, but individually they can also provide logic that can be used independently
to automate a smaller task, or they may have logic that can be used to automate other larger tasks.
Either way, they can be structured to represent and abstract agnostic logic for reuse purposes.

|
|
|
This page contains excerpts from:

SOA Design Patterns by Thomas Erl

Foreword by Grady Booch

With contributions from David Chappell, Jason Hogg, Anish Karmarkar, Mark Little, David Orchard, Satadru Roy, Thomas Rischbeck, Arnaud Simon, Clemens Utschig, Dennis Wisnosky, and others.

(ISBN: 0136135161, Hardcover, Full-Color, 400+ Illustrations, 865 pages)

For more information about this book, visit www.soabooks.com.
|
|