Bridging Services and Resources with Structural Services

Bridging Services and Resources with Structural Services

José C. Delgado
Copyright: © 2016 |Pages: 28
DOI: 10.4018/IJISMD.2016100105
OnDemand:
(Individual Articles)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

The most used approaches for distributed application integration are based on the Service-Oriented Architecture (SOA) and Representational State Transfer (REST) architectural styles. Each is more adequate to a different class of applications and exhibits advantages and disadvantages. This paper not only shows that they are dual architectural styles, SOA oriented towards behavior (services) and REST towards state (structured resources), but also contends that it is possible to combine them to maximize the advantages and to minimize the disadvantages. A new architectural style, Structural Services, is proposed and described. Unlike REST, resources are not constrained to offer a fixed set of operations and, unlike SOA, services are allowed to have structure. To minimize resource coupling, this style uses structural interoperability based on the concepts of structural compliance and conformance, instead of schema sharing (as in SOA) or standardized and previously agreed upon media types (as in REST).
Article Preview
Top

Introduction

Whenever two or more applications need to interact, interoperability and coupling problems arise. Historically, interoperability has been the main goal in Web-based distributed systems, whereas coupling has been one of the top concerns in software engineering, when developing an application, along with other metrics such as cohesion (Saxena & Kumar, 2012).

Software development methods emphasize decoupling, changeability and agility, which means structuring modules of an application so that a change somewhere affects as little as possible the remaining modules and can be implemented in a very short time. Interoperability between modules of an application is the easy part. Type names and inheritance are shared and there is usually a single programming language.

The interaction between distributed applications is completely different. Interoperability is hard, since these applications are independently developed, compiled, and linked. Most likely, this means different type names, inheritance hierarchies, programming languages, execution platforms, and data formats. In this context, coupling is of paramount importance, but has been treated as a side issue, a best-effort endeavor after achieving the primary objective, interoperability.

Interoperability and coupling are two facets of the same problem, application integration, and unfortunately reflect two conflicting goals:

  • Interoperability: Applications need to interact to accomplish collaboration. This necessarily entails some form of mutual knowledge and understanding, but it creates dependencies that may hamper the evolution (changes) of these applications.

  • Decoupling: Applications should not have dependencies on others, in order to be able to evolve freely and dynamically. Unfortunately, independent applications do not understand each other and are not able to interact, which means that some form of coupling is unavoidable.

Therefore, the fundamental problem of integration is to provide (at most) the minimum coupling possible while ensuring (at least) the minimum interoperability requirements. In other words, the main goal is to ensure that each interacting application knows just enough about the others to be able to interoperate with them but no more than that, to avoid unnecessary dependencies and constraints. This is an instance of the principle of least knowledge (Hendricksen, 2014).

The two most used integration approaches, Software-Oriented Architecture (SOA) (Erl, 2016) and Representational State Transfer (REST) (Pautasso, Wilde, & Alarcon, 2014) hardly comply with the principle of least knowledge. They achieve interoperability, but do not solve the coupling problem, since they require sharing of the data schemas.

In addition, they lie at the extremes of the axis of modeling principle: SOA is guided by behavior (services), whereas REST is guided by state (resources). SOA defines which application types are used and establishes the set of operations provided by each, whereas REST starts with a state diagram, without relevant concern about distinguishing which state belongs to which application.

SOA has the goal of a low semantic gap, since it models real-world entities by services that express their capabilities. This is good in modeling terms, but entails a coupling between the provider and the consumer that hampers dynamic changeability and adaptability. If the provider’s interface changes, the consumer’s interface also needs to change in accordance. There is no apparent structure, since service composition is hidden behind each service interface.

One of the main goals of REST is to reduce the coupling between provider and consumer, both to increase scalability and adaptability. Real-world entities are modeled in a data-oriented manner by resources, all with the same syntactical interface (same set of operations). Semantics are restricted to a set of data types (or schemas), either standardized or previously agreed upon between the interacting entities. The variability of the characteristics of entities is modeled by visible structure (resources composed of other resources) and the semantics of the agreed data types.

Complete Article List

Search this Journal:
Reset
Volume 15: 1 Issue (2024)
Volume 14: 1 Issue (2023)
Volume 13: 8 Issues (2022): 7 Released, 1 Forthcoming
Volume 12: 4 Issues (2021)
Volume 11: 4 Issues (2020)
Volume 10: 4 Issues (2019)
Volume 9: 4 Issues (2018)
Volume 8: 4 Issues (2017)
Volume 7: 4 Issues (2016)
Volume 6: 4 Issues (2015)
Volume 5: 4 Issues (2014)
Volume 4: 4 Issues (2013)
Volume 3: 4 Issues (2012)
Volume 2: 4 Issues (2011)
Volume 1: 4 Issues (2010)
View Complete Journal Contents Listing