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 54Relationships – Client is a container for logic and Client Broker. Logic <strong>of</strong>the client can invoke the client broker but broker cannot invoke the logic.Supplier is a server proving requires operations. A supplier contains SupplierLogic and Supplier Broker. In opposite <strong>to</strong> Client, Broker invokes Logicand Logic cannot invoke Broker. The connection between Client and Supplieris bidirectional because an asynchronous connection is assumed. Theconnection can be also unidirectional, what removes connection from Supplier<strong>to</strong> Client (see figure 3.19).Client SupplierClient Logic Client Broker Supplier Broker Supplier LogicFigure 3.19: Example usage <strong>of</strong> Explicit Invocation pattern15. Peer —<strong>to</strong> —PeerOverview– the whole pattern consists <strong>of</strong> only one type <strong>of</strong> elements: peer.The pattern creates a network build with peers. The number <strong>of</strong> peers is notspecified because peers can join and leave the network dynamicallyElementsPeer – the whole network consists <strong>of</strong> only one type <strong>of</strong> element–Peer. Peer isa server and a client in the same time. This means that each “peer” requestsand consumes services. To start up each peer has <strong>to</strong> find at least one otherpeer <strong>to</strong> create a network. This problem can be solved by introducing fewdedicated public peers that are known <strong>to</strong> other peers.Relationships – there is no limitations in connections between peers (seefigure 3.20).16. C2Overview – this patter is another possible solution for system interactingwith users.ElementsComponent – contains logic <strong>of</strong> the systemConnec<strong>to</strong>r – forwards messages from one Component <strong>to</strong> another. Connectionsbetween Components and Connec<strong>to</strong>rs are asynchronous. Connec<strong>to</strong>rshave <strong>to</strong> be aware <strong>of</strong> all the Components “above” and “below” them.Relationships–All requests are asynchronous so the components have <strong>to</strong>know only components above in hierarchy <strong>to</strong> return the result. All requests

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

Saved successfully!

Ooh no, something went wrong!