Trung Quốclamondlu/Library
A microservice project using .NET Core 2.0, DDD, CQRS, Event Sourcing, Redis and RabbitMQ
📚 Library - Microservice .NET Core với DDD, CQRS, Event Sourcing
Một dự án microservice đầy đủ tính năng sử dụng .NET Core 2.0, tích hợp DDD, CQRS, Event Sourcing, Redis, RabbitMQ, Consul và Nginx.
Library là một dự án microservice được xây dựng trên nền tảng .NET Core 2.0, áp dụng các mô hình kiến trúc DDD (Domain-Driven Design), CQRS (Command Query Responsibility Segregation) và Event Sourcing. Dự án sử dụng Redis làm cache, RabbitMQ làm message broker, MongoDB làm Event Store, đồng thời tích hợp Consul và Nginx để xây dựng cơ chế Service Discovery và Load Balancing.
✨ Điểm nổi bật
- DDD + CQRS + Event Sourcing: Áp dụng đầy đủ các mô hình kiến trúc phần mềm hiện đại.
- Redis Cache: Tối ưu hiệu năng bằng cách lưu trữ dữ liệu truy cập thường xuyên.
- RabbitMQ Message Broker: Xử lý tin nhắn bất đồng bộ giữa các dịch vụ.
- MongoDB Event Store: Lưu trữ sự kiện để hỗ trợ Event Sourcing.
- Consul Service Discovery: Đăng ký và khám phá dịch vụ tự động.
- Nginx Load Balancer: Cân bằng tải qua cấu hình động từ Consul Template.
- SelfRegister Pattern: Các dịch vụ tự động đăng ký vào Consul khi khởi động.
- EDA (Event-Driven Architecture): Hỗ trợ kiến trúc hướng sự kiện giữa các microservice.
💡 Vì sao đáng chú ý
Library không chỉ là một dự án mẫu đơn thuần mà còn là một ví dụ thực tế về cách xây dựng hệ thống microservice hoàn chỉnh với tích hợp đầy đủ công nghệ. Dự án kết hợp hài hòa giữa các mô hình thiết kế (DDD, CQRS, Event Sourcing) và công nghệ hạ tầng (Consul, Nginx, RabbitMQ), giúp người phát triển hiểu rõ cách triển khai một hệ thống scalable và maintainable. Đặc biệt, cơ chế Service Discovery thông qua Consul Template và Nginx tự động cập nhật cấu hình khi có dịch vụ mới tham gia là một tính năng rất thực tế.
#NETCore #Microservice #DDD #CQRS #EventSourcing #RabbitMQ #Redis #Consul #Nginx #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming.
Full-stack .Net 10 Clean Architecture (Microservices, Modular Monolith, Monolith), Blazor, Angular 22, React 19, Vue 3.5, BFF with YARP, NextJs 16, Mobiles (React Native, Flutter, Kotlin, MAUI, Capacitor), Domain-Driven Design, CQRS, SOLID, OpenID Connect, EF Core, OpenTelemetry, SignalR, Health Checks, Rate Limiting, Clouds (Azure, AWS, GCP), ...
A state-of-the-art distributed system using Reactive DDD as uncertainty modeling, Event Storming as subdomain decomposition, Event Sourcing as an eventual persistence mechanism, CQRS, Async Projections, Microservices for individual deployable units, Event-driven Architecture for efficient integration, and Clean Architecture as domain-centric design
⚡ Serverless Framework – Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud services.