#building-microservices
17 bài viết về chủ đề này
Microservices không phải lựa chọn mặc định (Building Microservices)
Afterword Building Microservices: khi nào nên và không nên dùng microservices, cạm bẫy tách nhỏ quá sớm và khởi đầu an toàn với monolith.
Evolutionary Architect — Vai trò kiến trúc sư thời microservices
Vai trò kiến trúc sư trong kỷ nguyên microservices: governance bằng principles, fitness functions, paved road và quản lý tech debt.
Conway's Law & Team Topologies — Tổ chức team theo dòng chảy (BMS)
Conway's Law: cấu trúc team quyết định kiến trúc hệ thống. Stream-aligned teams, platform teams, cognitive load và cách tổ chức team cho microservices.
User Interfaces & Micro Frontends — Chia UI theo team (BMS)
UI composition cho microservices: page-level, server-side (SSI/ESI), client-side — micro frontends và cách tránh UI monolith.
Scaling Microservices — 4 trục scale: vertical & horizontal (BMS)
Scaling microservices qua 4 trục: vertical, horizontal duplication, data partitioning và functional decomposition — khi nào dùng trục nào, kèm caching và CQRS.
Resiliency — CAP, Circuit Breaker & Chaos Engineering (BMS)
CAP theorem, circuit breaker, bulkhead và chaos engineering — cách xây dựng microservices phục hồi được khi sự cố xảy ra.
Zero Trust, mTLS & OAuth — Bảo mật microservices hiện đại (BMS)
Zero Trust, mTLS, OAuth 2.0 và mã hoá dữ liệu — các lớp bảo mật thiết yếu cho hệ thống microservices.
Testing Microservices — Test Pyramid & E2E (Building Microservices)
Test pyramid, consumer-driven contract test và E2E — cách giữ cho microservices deploy độc lập mà vẫn an toàn.
Container & Deployment Microservices — K8s & Progressive Delivery
Tổng quan deployment microservices: container Docker, Kubernetes orchestration, progressive delivery (canary, blue-green, feature flags).
Build & CI/CD Pipeline cho Microservices — Từ code đến deploy (BMS)
CI/CD, monorepo vs multirepo, build artifact — cách quản lý build pipeline cho hệ thống microservices hiệu quả.
Thiết kế Workflow cho Microservices — Orchestration vs Choreography
Phân biệt orchestration vs choreography trong microservices workflow, cách implement Saga pattern với compensating transactions.
Communication Styles — Giao tiếp Microservices(Building Microservices)
Khám phá 3 kiểu giao tiếp microservices: Request/Response (REST, gRPC), Event-Driven (message broker), và Service Discovery. Hiểu ưu nhược điểm từng pattern.
Branch by Abstraction & Saga — Split Monolith (Building Microservices)
Branch by Abstraction, Saga, UI Composition — ba pattern thực tế để chia nhỏ monolith an toàn, từng bước, không đau đớn.
DDD & Bounded Context — Tách Microservices (Building Microservices)
Tìm hiểu cách ứng dụng Domain-Driven Design và Bounded Context để phân định ranh giới microservices — từ lý thuyết đến thực hành.
Splitting the Monolith — Chiến lược & pattern (Building Microservices)
Chiến lược chia nhỏ monolith: Strangler Fig, bounded context, tách database, xử lý transaction trong hệ phân tán.
Model Microservices — DDD & Bounded Context (Building Microservices)
Domain-Driven Design là chìa khóa để xác định ranh giới microservices. Chapter 2 nói về bounded context, ubiquitous language và cách áp dụng DDD vào thực tế.
Microservices — Khái niệm, lợi ích & cạm bẫy (Building Microservices)
Giới thiệu microservices: định nghĩa, key concepts, so sánh với monolith, pain points và khi nào nên dùng từ cuốn Building Microservices.