RepositoryJavaScriptCNTrung Quốc
lamondlu

lamondlu/Library

A microservice project using .NET Core 2.0, DDD, CQRS, Event Sourcing, Redis and RabbitMQ

129sao
64fork
0issue
1lượt xem

📚 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.

RepositoryGo
traefik/traefik

The Cloud Native Application Proxy

65.9k
Dec 2, 2026
RepositoryJava
linhaojun857/aurora

基于SpringBoot+Vue开发的个人博客系统

4.7k
Jun 10, 2025
RepositoryC#
ivanpaulovich/clean-architecture-manga

:cyclone: Clean Architecture with .NET6, C#10 and React+Redux. Use cases as central organizing structure, completely testable, decoupled from frameworks

4.4k
Jun 22, 2026
RepositoryC#
microsurging/surging

Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming.

3.3k
Apr 10, 2026
RepositoryC#
eventflow/EventFlow

Async/await first CQRS+ES and DDD framework for .NET

2.6k
Oct 4, 2026
RepositoryC#
phongnguyend/Practical.CleanArchitecture

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), ...

2.5k
Nov 26, 2026
RepositoryC#
AntonioFalcaoJr/EventualShop

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

422
Feb 18, 2026
RepositoryJavaScript
serverless/serverless

⚡ 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.

46.9k
Dec 1, 2026
RepositoryLua
Kong/kong

🦍 The API and AI Gateway

44.4k
Nov 23, 2026