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

System Architecture

Prerequisites
- Visual Studio 2017 (For development and debug propose)
- RabbitMQ
- Redis
- Consul (Service Discovery and registeration)
- Consult Template (Update and Restart Nginx)
- Nginx (For Load Balance)
- MongoDB (For Event Store)
EDA

Service Discovery
We will use the Nginx, Consul, Consul Template to create an service discovery and service registeration mechanism.

- The nginx will do the load balance work.
- All the web or api instances will be registered in the consul server with the
SelfRegistermethod. - Consul template will listen the consul server, if there is new instance, consul template will update the nginx.conf with assigned template and restart the nginx server, so the new instance will be connected with the nginx server correctly
Use the Log service as an example.
public void SelfRegister()
{
var serviceDiscovery = InjectContainer.GetInstance<IServiceDiscovery>();
serviceDiscovery.RegisterService(new Infrastructure.Operation.Core.Models.Service
{
Port = 5003,
ServiceName = "LogService",
Tag = "Microservice API"
});
Console.WriteLine("Register to consul successfully.");
}
Similar Projects
Discover other similar projects and AI models.
: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.