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 3. <strong>Architectural</strong> <strong>Pattern</strong>s 51chronous logic <strong>of</strong> the systemSynchronous <strong>Service</strong>– represents logic <strong>of</strong> the system executed in a synchronousmannerAsynchronous <strong>Service</strong> Layer– contain low–level elements executing asynchronouslogic <strong>of</strong> the systemAsynchronous <strong>Service</strong>– represents logic <strong>of</strong> the system executed in an asynchronousmannerQueueing Layer– contains element mediating between Synchronous andAsynchronous layersQueue– a mediating element from Queueing LayerExternal Event Source– generates event processed by services from AsynchronousLayerRelationships– - <strong>Service</strong>s from each layer can cooperate with other servicesfrom the same layer. They can also invoke Queue that serves as a messages<strong>to</strong>re. External Data Source can invoke only services from AsynchronousLayer (see figure 3.15 ).Sync <strong>Service</strong> 1 Sync <strong>Service</strong> 2 Sync <strong>Service</strong> 3 Synchronous <strong>Service</strong> LayerQueueQueueing LayerAsync <strong>Service</strong> 1Asynchronous <strong>Service</strong> LayerExternal Event SourceFigure 3.15: Example usage <strong>of</strong> Half–Sync Half–Async pattern11. Shared Reposi<strong>to</strong>ryOverview– provides solution for problem <strong>of</strong> passing large amount <strong>of</strong> databetween elements <strong>of</strong> a system. The pattern reduces additional overhead andperformance drop.ElementsReposi<strong>to</strong>ry – is a core element <strong>of</strong> the pattern. It is meant <strong>to</strong> s<strong>to</strong>re, maintain

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

Saved successfully!

Ooh no, something went wrong!