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 46Knowledge source 1Modera<strong>to</strong>rKnowledge source 2BlackboardKnowledge source 3Figure 3.8: Example usage <strong>of</strong> Blackboard pattern4. BrokerOverview – Broker is an architectural pattern that organises communicationwithin distributed system.ElementsClient – is a user application that sends requests <strong>to</strong> the broker.Broker – has <strong>to</strong> maintain all requests, provides security and loadbalancing.Node – is a part <strong>of</strong> the system that encapsulates logic <strong>of</strong> the system.Relationships – client as a requesting element connects <strong>to</strong> a broker. Theclient does not know location <strong>of</strong> nodes. Locations <strong>of</strong> nodes are known only<strong>to</strong> the broker. The nodes do not know location <strong>of</strong> the clients, but they knowlocation <strong>of</strong> the broker. This knowledge is required because each node has<strong>to</strong> register itself in the broker. Connections between broker and nodes aredynamic, it means that any node can connect and disconnect in runtime(see figure 3.9).5. Model View Controller (MVC)Overview – the pattern is dedicated for systems that emphasise role <strong>of</strong> informationdisplayed <strong>to</strong> users. Due <strong>to</strong> clear separation <strong>of</strong> presentation part,the pattern supports development and simplifies maintenance <strong>of</strong> this sort<strong>of</strong> systems.ElementsModel – represents represents data <strong>of</strong> the system and functionalities <strong>to</strong> manipulatethemView – displays informationController – handles requests from view and translates them <strong>to</strong> request <strong>to</strong>model.Relationships – Model cooperates with Controller because it can update

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

Saved successfully!

Ooh no, something went wrong!