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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3. <strong>Architectural</strong> <strong>Pattern</strong>s 55Peer 4Peer 1Peer 3Peer 2Figure 3.20: Example usage <strong>of</strong> Peer–<strong>to</strong>–Peer pattern<strong>to</strong> lower components are forwarded by connecting layers and componentsdo not care which exactly sub–agent will execute it. Connec<strong>to</strong>rs must knowcomponents in order <strong>to</strong> return result <strong>of</strong> asynchronous operations.17. Active Reposi<strong>to</strong>ryOverview– this pattern is a variation <strong>of</strong> Shared Reposi<strong>to</strong>ry that providesa notification mechanism <strong>to</strong> Reposi<strong>to</strong>ry. Client elements do not have <strong>to</strong>invoke Reposi<strong>to</strong>ry <strong>to</strong> check if there is something meant for them. Instead,Reposi<strong>to</strong>ry can notify all registered ClientsElementsReposi<strong>to</strong>ry – is a core element <strong>of</strong> the pattern. It is meant <strong>to</strong> s<strong>to</strong>re, maintaindata and provide it <strong>to</strong> clients.Client – uses reposi<strong>to</strong>ry <strong>to</strong> s<strong>to</strong>re data in it and <strong>to</strong> obtain data from it.Relationships – all the client elements are aware <strong>of</strong> the reposi<strong>to</strong>ry andcan perform operations on it. Since Reposi<strong>to</strong>ry can notify Clients, all theconnections between Clients and Reposi<strong>to</strong>ry are bidirectional18. Remote Procedure CallOverview – The pattern assumes that all the remote procedures shouldbe treated, as they were local. User should not know that a procedure is executedsomewhere in the network. The procedures are mainly provider–dependentand can change over the years, therefore the description <strong>of</strong> the elements andrelationships bellow refer <strong>to</strong> just an example implementation <strong>of</strong> the patternElementsClient– is a frontend <strong>of</strong> the application. This element allows user <strong>to</strong> perform

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

Saved successfully!

Ooh no, something went wrong!