Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Mô hình kiến trúc

Các kiến trúc hệ thống phổ biến và đặc điểm của chúng.


1. Monolithic Architecture

Toàn bộ ứng dụng được đóng gói thành một unit duy nhất.

  • Ưu điểm: Đơn giản phát triển, testing, deployment.
  • Nhược điểm: Khó scale, công nghệ lock‑in, deployment risk cao.

2. Microservices Architecture

Ứng dụng được chia thành nhiều services độc lập, mỗi service chịu trách nhiệm một business capability.

  • Ưu điểm: Scale độc lập, công nghệ đa dạng, deployment linh hoạt.
  • Nhược điểm: Phức tạp vận hành, network latency, data consistency.

3. Event‑Driven Architecture

Components giao tiếp thông qua events, được publish/subscribe bởi message broker.

  • Ưu điểm: Loose coupling, scalability, real‑time processing.
  • Nhược điểm: Debug khó, eventual consistency.

4. Serverless Architecture

Chạy code mà không cần quản lý server, trả tiền theo thời gian thực thi.

  • Ưu điểm: No server management, auto‑scaling, cost‑effective cho sporadic workload.
  • Nhược điểm: Cold start latency, vendor lock‑in, limited execution time.

5. Layered (N‑Tier) Architecture

Chia ứng dụng thành các layer (presentation, business, data).

  • Ưu điểm: Separation of concerns, dễ bảo trì.
  • Nhược điểm: Performance overhead, khó scale từng layer riêng.

← Các thành phần hệ thống | Xem tiếp: Phương pháp tiếp cận thiết kế →