Lecture - 2 Architectural Style SDA
Lecture - 2 Architectural Style SDA
23.03.2024
3 23.03.2024
4 23.03.2024
Difference between Architectural Pattern and Style
5
23.03.2024
Basic Concepts---- must have a grasp
6
23.03.2024
Basic Concepts---- must have a grasp
7
23.03.2024
General ingredient of Architectural Patterns?
8
starts, we must choose a suitable architecture that will provide us with the desired
functionality and quality attributes. Hence, we should understand different architectures,
before applying them to our design.
23.03.2024
software architecture
9
23.03.2024
Layered pattern
10
This pattern can be used to structure programs that can be decomposed into groups of
subtasks, each of which is at a particular level of abstraction. Each layer provides
services to the next higher layer.
The most found 4 layers of a general information system are as follows.
• Presentation layer (also known as UI layer)
• Application layer (also known as service layer)
• Business logic layer (also known as domain layer)
• Data access layer (also known as persistence layer)
Usage
• General desktop applications.
• E commerce web applications.
23.03.2024
Client-server pattern
11
Clients request services from the server and the server provides relevant
23.03.2024
Master-slave pattern
12
23.03.2024
Pipe-Filter pattern
13
This pattern can be used to structure systems which produce and process a
stream of data.
Each processing step is enclosed within a filter component. Data to be
processed is passed through pipes. These pipes can be used for buffering
or for synchronization purposes.
Usage
Compilers. The consecutive filters perform lexical analysis, parsing,
semantic analysis, and code generation.
Workflows in bioinformatics.
23.03.2024
Broker pattern
14
(services and characteristics) to a broker. Clients request a service from the broker,
and the broker then redirects the client to a suitable service from its registry.
Usage
Message broker software such as
Apache ActiveMQ, Apache Kafka, RabbitMQ and JBoss Messaging.
23.03.2024
15 23.03.2024
Peer-to-peer pattern
16
23.03.2024
Event-bus pattern
17
This pattern primarily deals with events and has 4 major components;
event source, event listener, channel and event bus. Sources publish
messages to channels on an event bus. Listeners subscribe to channels.
Listeners are notified of messages that are published to a channel to which
they have subscribed before.
Usage
Android development
Notification services
23.03.2024
Model-view-controller pattern
18
23.03.2024
19 23.03.2024
Blackboard pattern
20
noThis pattern is useful
deterministic for strategies
solution problems are for known.
which
The blackboard pattern consists of 3 main
components.
blackboard
containing — a structured
objects from the global memory
solution space
knowledge
with their source
own — specialized modules
representation
1. control component
configures and — selects,
executes
modules.
have All the
access tomay components
the produce
blackboard.
Components
data objects that are added new
to the
blackboard.
particular Components
kinds of data on look
the for
blackboard
by pattern and may find
matching source. these
with the
Usage existing knowledge
Speech
and recognition,
tracking, Protein Vehicle
structure identification
identification, Sonar signals interpretation.
23.03.2024
21 23.03.2024
Interpreter pattern
22
This pattern is used for designing a component that interprets programs written in a
dedicated language. It mainly specifies how to evaluate lines of programs, known as
sentences or expressions written in a particular language. The basic idea is to have a
class for each symbol of the language.
Usage
Database query languages such as SQL.
23.03.2024
23 23.03.2024
24 23.03.2024
25 23.03.2024
26 23.03.2024
27
THANK YOU
23.03.2024