Tổng quan về architecture patterns
Architecture patterns là phương tiện để biểu diễn, chia sẻ và tái sử dụng lại các kiến thức về hệ thống phần mềm.
Các kiến trúc là dạng mô tả trừu tượng, thường chứa thông tin :
Mô tả
Sử dụng khi nào
Ưu nhược điểm

Các loại thường gặp gồm:
1. Layered Architecture
Kiến trúc phân tầng : là kiến trúc được tổ chức thành các tầng, tầng N + 1 sẽ giao tiếp với tầng N

Trong trường hợp này chúng ta có 4 tầng:
Tâng Database Layer : tầng dữ liệu
Tầng persistence Layer : chịu trách nhiệm giao tiếp với database ở mức độ thấp
Tầng business Layer : xử lý các nghiệp vụ, constraint của dữ liệu
Tầng Presentation Layer : chịu trách nhiệm hiển thị thông tin lên màn hình.
2. Client - Server
Client - Server: là kiến trúc gồm 2 thành phần client và server giao tiếp với nhau qua hệ thống Internet.

Client làm nhiệm vụ gửi request đến Server.
Server sẽ xử lý request và gửi response cho Client.
3. Master-Slave
Master/slave is a model of asymmetric communication or control where one device or process (the "master") controls one or more other devices or processes (the "slaves") and serves as their communication hub

Master : điều khiển, ra lệnh cho nô lệ
Slave: thực hiện lệnh từ Master
4. Pipe-filter
Pipe-filter: mô hình uống nước và lọc nước rồi đổ vào bể.

5. Broker (Người mua giới)
The broker pattern is an architectural pattern that can be used to structure distributed software systems with decoupled components that interact by remote procedure calls. A broker component is responsible for coordinating communication, such as forwarding requests, as well as for transmitting results and exceptions.

6. Peer-to-Peer (P2P)
Peer-to-Peer : mô hình ngang hàng.

7. Event-bus pattern
Event-driven architecture pattern is a distributed asynchronous architecture pattern to create highly scalable reactive applications.

8. MVC

9. BlackBoard

10. Interpreter

Tham khảo:
Last updated
Was this helpful?