12.07.2015 Views

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

Migration of a Chosen Architectural Pattern to Service Oriented ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5. Guidelines 113System’s services are created based on an available code. The documentation isused <strong>to</strong> consult if a question arises. The description below presents guidelines witha “How <strong>to</strong>” section. Additionally a figure presenting current step <strong>of</strong> migrationis provided. Each figure contains green elements. The element between + and= represents introduced SOA architectural pattern. The second green elementpresents change <strong>to</strong> architecture.5.2.1 Description <strong>of</strong> Guidelines1. Convert MVC in<strong>to</strong> layersApplied SOA pattern: <strong>Service</strong> LayersHow <strong>to</strong>: <strong>Service</strong> layering simplifies service maintenance. The main ideabehind the pattern is <strong>to</strong> divide services having similar characteristic in<strong>to</strong>separate layers (see figure 5.1). The characteristic <strong>of</strong> services is describedby its functionality, technical aspects, complexity or other properties thatallow grouping services. Structure <strong>of</strong> considered pattern has <strong>to</strong> be analyzedin terms <strong>of</strong> its components and connections between them. Elements <strong>of</strong>the architectural pattern are converted in<strong>to</strong> layers. Original dependenciesbetween elements <strong>of</strong> MVC should be removed. Layers allow dependenciesonly in one direction (<strong>to</strong>p–down). Introduction <strong>of</strong> this pattern simplifiesfurther migration because the pattern frames architecture.ViewViewController+ <strong>Service</strong> layers =ControllerModelModelFigure 5.1: <strong>Migration</strong> step 12. Choose main communication pro<strong>to</strong>colApplied SOA pattern: Canonical Pro<strong>to</strong>colHow <strong>to</strong>: Canonical Pro<strong>to</strong>col recommends usage <strong>of</strong> one major communicationPro<strong>to</strong>col (see figure 5.2).. In fact the choice is not limited <strong>to</strong> onlyone pro<strong>to</strong>col, because communication is transport plus message description

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!