alperenkucukali / dotnet-microservices

This project is a sample of microservices architecture with .NET 8.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Distributed Bank

This project is a sample of microservices architecture with .NET 8. You can see the overall picture below here;

samplebank

Whats Including

Customer microservice

  • ASP.NET Core Web API application and gRPC Server application
  • REST API principles, CRUD operations
  • Implementing DDD, CQRS, and Clean Architecture using best practices
  • Build a highly performant inter-service gRPC communication
  • Developing CQRS using MediatR, FluentValidation, and AutoMapper libraries
  • PostgreSQL database connection and containerization
  • Using Entity Framework Core ORM and auto migrate to SQL Server when application run
  • Swagger Open API implementation

Account Microservice

  • ASP.NET Core Web API application
  • REST API principles, CRUD operations
  • Implementing DDD, CQRS, and Clean Architecture using best practices
  • Publish Account's transactions using MassTransit and RabbitMQ
  • Consume Customer gRPC Service for inter-service communication
  • Developing CQRS using MediatR, FluentValidation, and AutoMapper libraries
  • PostgreSQL database connection and containerization
  • Using Entity Framework Core ORM and auto migrate to SQL Server when application run
  • Swagger Open API implementation

Transaction Microservice

  • ASP.NET Core Web API application
  • REST API principles, CRUD operations
  • Repository Pattern Implementation
  • Consume Account's transactions using MassTransit and RabbitMQ
  • MongoDB database connection and containerization
  • Swagger Open API implementation

API Gateway Ocelot Microservice

  • Implement API Gateways with Ocelot
  • Sample microservices/containers to reroute through the API Gateways
  • Run multiple different API Gateway/BFF container types

Microservices Cross-Cutting Implementations

  • Implementing Centralized Distributed Logging with Elastic Stack (ELK); Elasticsearch, Logstash, Kibana and SeriLog for Microservices
  • Use the HealthChecks feature in back-end ASP.NET microservices

Microservices Resilience Implementations

  • Making Microservices more resilient Use IHttpClientFactory to implement resilient HTTP requests
  • Implement Retry and Circuit Breaker patterns with exponential backoff with IHttpClientFactory and Polly policies

Helper Containers

  • Use Portainer for Container lightweight management UI which allows you to easily manage your different Docker environments
  • pgAdmin PostgreSQL Tools feature rich Open Source administration and development platform for PostgreSQL

Docker Compose establishment with all microservices on docker;

  • Containerization of microservices
  • Containerization of databases
  • Override Environment variables

About

This project is a sample of microservices architecture with .NET 8.

License:MIT License


Languages

Language:C# 88.1%Language:Dockerfile 6.8%Language:HTML 3.7%Language:CSS 1.2%Language:JavaScript 0.2%