DISTRIBUTED SYSTEMS
CHAPTER 2 ARCHITECTURES
1
- DR. TRẦN HẢI ANH
Tham khảo bài giảng của PGS. TS. Hà Quốc Trung
ARCHITECTURES DR. TRN HI ANH Tham kho bi ging ca PGS. TS. H Quc - - PowerPoint PPT Presentation
1 DISTRIBUTED SYSTEMS CHAPTER 2 ARCHITECTURES DR. TRN HI ANH Tham kho bi ging ca PGS. TS. H Quc Trung 2 Organization of a distributed system: distinction between the logical organization and the physical
1
Tham khảo bài giảng của PGS. TS. Hà Quốc Trung
2
Organization of a distributed system: distinction
The logical organization: the collection of software
The physical realization: instantiate and place
3
1.
2.
3.
5
Layered architectures Object-based architectures Data-centered architectures Event-based architectures
Each layer has its own
Transparency
6
Layered fashion
7
Application Presentation Session Transport Network Data link Physical
OSI model General DS architecture with Middleware
8
9
14
through a common repository
15
Monolithic microservices build an application as a suite of small
Benefits:
Simpler To Deploy Simpler To Understand Reusability Across Business Faster Defect Isolation Minimized Risk Of Change
17
18
19
20
Amazon ECS (EC2 Container Service) Azure Container Service (ACS) Cloud Foundry’s Diego CoreOS Fleet Docker Swarm Kubernetes
21
API K K K
KBs Cluster Services
Master node Worker Worker Worker App1 config Pod1: + Cont1 + Cont2 Rep=3 Pod2: +Cont3 Rep=2 P1- R1 P1- R2 P1- R3 P2- R1 P2- R2
I.
II.
III.
23
24
show to the users
processing, reply
25
The user-interface level The processing level The data level
26
27
28
29
31
No role of client and server Use Overlay network Structured/Unstructured P2P architectures
32
33
Overlay network is constructed using a
DHT (Distributed Hash Table)
34
35
36
Randomized algorithms for constructing an overlay
Each node maintains a list of neighbors Data items are assumed to be randomly placed on
=>superpeers
37
Edge-Server Systems Collaborative Distributed Systems
38
39
40
BitTorrent system
42
Position of middleware E.g. CORBA (object-based architecture),
Benefit: designing applications may become simpler Drawback: no longer be optimal for application
Solutions:
make several versions of a middleware system separate between policies and mechanisms easy to
software
43