Category: Methodology
Orchestration or Choreography?
For collaboration of microservices, there are two basic styles: orchestration and choreography. In his well-known book “Building Microservices”, Sam Newman wrote: “As we start to model more and more complex logic, we have to deal with the problem of managing business processes that stretch across the boundary of individual services. […] When it comes to actually implementing this flow, … Continue reading Orchestration or Choreography?
Event driven microservices architecture using Spring Cloud
Source: https://www.linkedin.com/pulse/event-driven-microservices-architecture-using-spring-cloud-bruksha/ Microservices have been around for some time, microservices architecture decouples large, complex systems into simple, independent services. Our subject today is one of the most awesome - Event driven microservices architecture. Event-driven architecture is a methodology used to produce, handle events and implement applications where events transmit among decoupled software components and services. Here’s our architecture visualization. Let’s imagine that we … Continue reading Event driven microservices architecture using Spring Cloud
Thực hành implement Clean Architecture
Trong bài trước chúng ta đã tìm hiểu lý thuyết về Clean Architecture của Uncle Bob. Như đã đề cập, các mục tiêu cốt lõi của Clean Architecture cũng giống với đối với Ports & Adapters (Hexagonal) và Onion Architectures, hướng đến: Độc lập các công cụ; Sự độc lập của các cơ chế phân … Continue reading Thực hành implement Clean Architecture
Thực hành đo lường các chỉ số (metric) của software với NDepend
Ngày nay, có rất nhiều vấn đề chúng ta cần suy nghĩ đến khi xây dựng ứng dụng thực tế. MAINTAINABILITY (tính dễ bảo trì), UNDERSTANDABILITY (tính dễ hiểu), DEPENDENCY (tính phụ thuộc giữa các module), COHESION (tính gắn kết) chỉ là 1 vài trong số chúng. Chúng ta phải làm việc cật lực để … Continue reading Thực hành đo lường các chỉ số (metric) của software với NDepend
Command Query Responsibility Segregation (CQRS)
Với một ứng dụng kiểu data-centric application (ứng dụng tập trung vào dữ liệu) chỉ implement các thao tác CRUD căn bản xuống DB và để business process cho user xử lý (ví dụ như cần change data nào và khi nào change), nó có lợi điểm là user có thể thay đổi business process … Continue reading Command Query Responsibility Segregation (CQRS)
Xây dựng hệ thống Ecommerce với DDD và CQRS
Trong quá trình viết về Domain Driven Design và Command Query Responsibility Segregation, mình đã bắt gặp bài viết dưới đây trên engineering blog của tiki, mình xin mạn phép chia sẻ đến các bạn để thực hành phần lý thuyết đã mô tả ở những phần trước. Quản lý danh mục sản phẩm là một trong … Continue reading Xây dựng hệ thống Ecommerce với DDD và CQRS
Clean Architecture: Đứng trên vai những gã khổng lồ
Robert C. Martin (hay còn gọi là Uncle Bob) cho ra đời ý tưởng của mình về Clean Architecture vào năm 2012, trong một bài viết trên blog của mình, và giảng dạy về nó tại một vài hội nghị, và gần đây nhất là cuốn sách Clean Architecture: A Craftsman's Guide to Software Structure … Continue reading Clean Architecture: Đứng trên vai những gã khổng lồ
Kiến trúc củ hành (Onion Architecture)
Onion Architecture được đặt ra bởi Jeffrey Palermo vào năm 2008. Như tôi thấy, nó được xây dựng dựa trên Kiến trúc Ports & Adapters với ý đồ đặt domain vào trung tâm ứng dụng, mở rộng cơ chế phân phối (UI) và cơ sở hạ tầng được sử dụng bởi hệ thống (ORM, công … Continue reading Kiến trúc củ hành (Onion Architecture)
Ports & Adapters Architecture
Trong bài viết trước chúng ta đã nói về Domain Driven Design - cái đặt nền móng cho các triết lý thiết kế trong kiến trúc hiện đại ngày nay, lấy domain làm trung tâm của ứng dụng. Tuy nhiên, Domain Driven Design vẫn còn đi theo lối mòn theo kiểu kiến trúc phân lớp … Continue reading Ports & Adapters Architecture