RepositoryJavaScriptCNChina
lamondlu

lamondlu/Library

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

129stars
64forks
0issues
1views

Library

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

Components

Components

System Architecture

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

EDA

Service Discovery

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

Service Discovery

  • The nginx will do the load balance work.
  • All the web or api instances will be registered in the consul server with the SelfRegister method.
  • 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.

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