- Notifications
You must be signed in to change notification settings - Fork1.6k
Microservices on .NET platforms used ASP.NET Web API, Docker, RabbitMQ, MassTransit, Grpc, Yarp API Gateway, PostgreSQL, Redis, SQLite, SqlServer, Marten, Entity Framework Core, CQRS, MediatR, DDD, Vertical and Clean Architecture implementation with using latest features of .NET 8 and C# 12
License
aspnetrun/run-aspnetcore-microservices
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
UDEMY COURSE WITH DISCOUNTED - Step by Step Development of this Repository ->https://www.udemy.com/course/microservices-architecture-and-implementation-on-dotnet/?couponCode=MAYY25
See the overall picture ofimplementations on microservices with .net tools on real-worlde-commerce microservices project;
There is a couple of microservices which implementede-commerce modules overCatalog, Basket, Discount andOrdering microservices withNoSQL (DocumentDb, Redis) andRelational databases (PostgreSQL, Sql Server) with communicating overRabbitMQ Event Driven Communication and usingYarp API Gateway.
We have implemented belowfeatures over the run-aspnetcore-microservices repository.
- ASP.NET Core Minimal APIs and latest features of .NET8 and C# 12
- Vertical Slice Architecture implementation with Feature folders and single .cs file includes different classes in one file
- CQRS implementation using MediatR library
- CQRS Validation Pipeline Behaviors with MediatR and FluentValidation
- Use Marten library for .NET Transactional Document DB on PostgreSQL
- Use Carter for Minimal API endpoint definition
- Cross-cutting concerns Logging, Global Exception Handling and Health Checks
- ASP.NET 8 Web API application, Following REST API principles, CRUD
- UsingRedis as aDistributed Cache over basketdb
- Implements Proxy, Decorator and Cache-aside patterns
- Consume DiscountGrpc Service for inter-service sync communication to calculate product final price
- Publish BasketCheckout Queue with usingMassTransit and RabbitMQ
- ASP.NETGrpc Server application
- Build a Highly Performantinter-service gRPC Communication with Basket Microservice
- Exposing Grpc Services with creatingProtobuf messages
- Entity Framework Core ORM — SQLite Data Provider and Migrations to simplify data access and ensure high performance
- SQLite database connection and containerization
- Sync inter-servicegRPC Communication
- Async Microservices Communication withRabbitMQ Message-Broker Service
- UsingRabbitMQ Publish/Subscribe Topic Exchange Model
- UsingMassTransit for abstraction over RabbitMQ Message-Broker system
- Publishing BasketCheckout event queue from Basket microservices and Subscribing this event from Ordering microservices
- CreateRabbitMQ EventBus.Messages library and add references Microservices
- ImplementingDDD, CQRS, and Clean Architecture with using Best Practices
- DevelopingCQRS with using MediatR, FluentValidation and Mapster packages
- ConsumingRabbitMQ BasketCheckout event queue with usingMassTransit-RabbitMQ Configuration
- SqlServer database connection and containerization
- UsingEntity Framework Core ORM and auto migrate to SqlServer when application startup
- Develop API Gateways withYarp Reverse Proxy applying Gateway Routing Pattern
- Yarp Reverse Proxy Configuration; Route, Cluster, Path, Transform, Destinations
- Rate Limiting with FixedWindowLimiter on Yarp Reverse Proxy Configuration
- ASP.NET Core Web Application with Bootstrap 4 and Razor template
- CallYarp APIs with Refit HttpClientFactory
- Containerization of microservices
- Containerization of databases
- Override Environment variables
You will need the following tools:
Follow these steps to get your development environment set up: (Before Run Start the Docker Desktop)
- Clone the repository
- Once Docker for Windows is installed, go to theSettings > Advanced option, from the Docker icon in the system tray, to configure the minimum amount of memory and CPU like so:
- Memory: 4 GB
- CPU: 2
- At the root directory of solution, selectdocker-compose andSet a startup project.Run docker-compose without debugging on visual studio.Or you can go to root directory which includedocker-compose.yml files, run below command:
docker-compose-f docker-compose.yml-f docker-compose.override.yml up-d
Wait for docker compose all microservices. That’s it! (some microservices need extra time to work so please wait if not worked in first shut)
LaunchShopping Web UI ->https://localhost:6065 in your browser to view index page. You can use Web project in order tocall microservices over Yarp API Gateway. When youcheckout the basket you can followqueue record on RabbitMQ dashboard.
- Mehmet Ozkaya -Initial work -mehmetozkaya
See also the list ofcontributors who participated in this project. Check alsogihtub page of repository.
About
Microservices on .NET platforms used ASP.NET Web API, Docker, RabbitMQ, MassTransit, Grpc, Yarp API Gateway, PostgreSQL, Redis, SQLite, SqlServer, Marten, Entity Framework Core, CQRS, MediatR, DDD, Vertical and Clean Architecture implementation with using latest features of .NET 8 and C# 12
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.