Architectural patterns part 1

43 %
57 %
Information about Architectural patterns part 1

Published on January 9, 2014

Author: assinha



This presentation describes about various Architectural Patterns and styles that can be considered as a solution for different kind of problems.

Architectural Patterns [PART 1]

Introduction Architecture is the system design at the highest level. All Architectural decisions are made at this level. For Example decisions about technology to use, product(s) to use, interfaces, number of modules, behavior, relationships and interactions of the modules, scalability and performance. Changing the architectural decisions will have significant ripple effects. Architectural patterns can be an useful aid to find most suitable architecture for the system.

Architectural Patterns Architectural Patterns • Patterns provide a set of predefined subsystems, specify their responsibilities and relationships between them. • Patterns are reusable and bring well defined constraints • Pattern alone or combined can provide solution for creating architecture for a system

Architectural Patterns Following common patterns will be described in the subsequent slides. • Pipe and Filter • Layers • Shared-data • Client-Server • Publish-subscribe • Peer-to-peer • Call and return • Black Board

Pipe and Filter This pattern can be used to divide system’s task to different steps. These steps are connected by dataflow within the system. Output data of one step can be input data of another step. Each processing step is implemented by a filter component. Each pipe implements the data flow between adjacent processing steps. Filters can be Asynchronous. Example – Input Noise Detection (Filter) Pipe Noise Verification (Filter) Pipe Noise Rectification (Filter) output

Layers This pattern can be used for a system that requires decomposition. System can be decomposed to various hierarchical level of abstraction. Several operations are on the same level of abstraction but are largely independent of each other. Layers communicate between each other using APIs. Each layer acts as a service provider to above layer. Example – OSI 7-Layer Model Each layer is independent of other. Each lower layer acts as a service provider to above layer. Application Presentation Session Transport Network Datalink Physical

Shared Data This pattern can be used for sharing data between components of a system. Components are define by two types – Data repositories and Data accessors. • Data repositories are permanent storage devices e.g. databases, files where system stores data. They also take care of synchronization issues due to concurrent access and provide access support to data. • Data accessor components can read and write modified data to it. Shared data resource can be active agent or passive agent. Active Agent – any modification to data is informed to all components Passive Agent – components need to read the data (modified) whenever they require. Example – Database oriented systems

Client Server This pattern can be used for communication between two components Client and Server. Client - It can only communicate with server and not with other clients. it can only request to Server and receives reply. Communication is initiated by a client which sends request and server responds Server – It receives the service request from client at a define port, performs computation and returns the result back to Client who requested for the service Connector type is – request/reply, which is asymmetric Often the client and the server reside on different machines Example – Distributed systems

Peer to Peer • Peers acts as either clients or servers. • State and behavior are distributed among peers. • Peers are independent components, having their own state and control thread. • They communicate among themselves using Network protocols (protocol messages) • Supports decentralized computing with flow of control and resources distributed among peers. • Components use services from each other through methods • Highly robust in the face of failure of any given node. • Scalable in terms of access to resources and computing power.

Publish-Subscribe This pattern can be used in systems where an only send messages to the applications that are interested in receiving the messages without knowing the identities of the receivers. The are three variation of the Publish-Subscribe pattern • List-Based Publish/Subscribe Publish component will maintain a list of subscribers for a subject. When events occur for that subject, each subscriber on the subscription list is notified. All interested Subscribe components will register with Publish component for the subject • Broadcast-Based Publish/Subscribe When an event occurs, Publisher creates a message and broadcasts it to the local area network (LAN). All Subscriber matches the subject line to a subject that it subscribes to. If the subject does not match, it ignores the message. To identify subscribers topic, Publisher sends a broadcast message that asks Subscribers to reply if they subscribe to a particular topic. Responses are then returned by Subscribers to the Publisher to identify the Subscribers. It is an effective method for decoupling producers from consumers. • Content-Based Publish/Subscribe – In this case subscriptions are related to specific information content. Messages are intelligently routed to their final destination based on the content of the message. This approach overcomes the limitation of a broadcast-based system, where distribution is coupled to a multicast tree that is based on Transmission Control Protocol (TCP).

Call and Return • Consumer components invoke functionality in Provider components. • Consumer components waits until an invoked service completes and returns results before continuing • components depend on invoked functionality to get their own work done • The correctness of each component may depend on the correctness of the functionality it invokes • Inter-process calls or Remote procedure calls in a distributed set of processes or a network of computers .

Blackboard This pattern is useful for problems for which no deterministic solution strategies are known. Several specialized subsystems assemble their knowledge to build a possibly partial or approximate solution. System is divided into 1. Blackboard, 2. A collection of knowledge sources, 3. Control Component Blackboard - It is the central data store for solution space and control data. It provides interface that enables all knowledge sources to read from and write to it Knowledge Sources - They are separate, independent subsystems that solve specific aspects of the overall problem. A solution can only be built by integrating the results of several knowledge sources Control Components : It runs a loop to monitor the changes on the blackboard. It will pick a knowledge source and decide what action to take next according to a knowledge application strategy Example - HEARSAY-I1 speech recognition system

Thank You Your suggestions and comments are always welcome. Please send me your feedback at

Add a comment

Related presentations

Related pages

Architecture Patterns Part 1 - Learning Path: Software ...

Architecture Patterns Part 1 by Rachel Roumeliotis – Curator In this session we will look at the details behind 4 major architecture patterns - Layered ...
Read more

Architecture Patterns Part 1 - Software Architecture ...

Architecture Patterns Part 1 by Mark Richards, Neal Ford In this session we will look at the details behind 4 major architecture patterns - Layered ...
Read more

Architecture Patterns in iOS: Part 1 — The Traveled iOS ...

Architecture Patterns in iOS: Part 1. Target-Action. ... I didn’t give much thought to programming patterns or architecture in general.
Read more

MVC and MVP architectural patterns in Android – part 1 ...

What is this post about: This post is the first one in series of three posts that discuss Model View Controller (MVC) and Model View Presenter (MVP ...
Read more

Big data architecture and patterns, Part 1: Introduction ...

Introduction to big data classification and architecture. ... Big data architecture and patterns, Part 1. Stay tuned for additional content in this series.
Read more

Messaging Patterns in Service-Oriented Architecture, Part 1

This first of a two-part series discusses how messaging patterns exist at different levels of abstraction in SOA.
Read more

Architecture Patterns - The Open Group

... TOGAF 8.1.1 Online > Part IV: ... and to which parts of the TOGAF Architecture Development Method ... Although architecture patterns have not ...
Read more

Java Design Patterns and Architecture Part 1 - YouTube

Introduction Java Design Patterns and Architecture If you are a beginner when it comes to the Java programming language or even if you are an ...
Read more

A Theory of Architecture Part 1: Pattern Language vs. Form ...

Galleria di Diana in Venaria Royal Palace, an example of Classical architecture. The Classical Language is an example of an "extremely successful form ...
Read more