.NET 8 Microservices: DDD, CQRS, Vertical/Clean Architecture
- Descrição
- Currículo
- FAQ
- Revisões
This course comes from a live github aspnetrun microservices repository which verified from community with 2300+ stars and 1300+ forks.
You will learn how to build Microservices on .Net platforms which 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 using latest codes and best practices of .NET 8 on cloud-native environments.
You will develop e-commerce modules over Product, Basket, Discount and Ordering microservices with NoSQL (PostgreSQL DocumentDB, Redis) and Relational databases (SQLite, Sql Server) with communicating over RabbitMQ Event Driven Communication and using Yarp API Gateway. You can find Microservices Architecture and Step by Step Implementation on .NET which step by step developing this course with extensive explanations and details.
Along with this you’ll develop following microservices and items:
Catalog microservice which includes;
-
ASP.NET Core Minimal APIs and latest features of .NET 8 and C# 12
-
Vertical Slice Architecture implementation with Feature folders
-
CQRS implementation using MediatR library
-
CQRS Validation Pipeline Behaviours with MediatR and FluentValidation
-
Marten library for .NET Transactional Document DB on PostgreSQL
-
Carter library for Minimal API endpoint definition
-
Cross-cutting concerns Logging, global Exception Handling and Health Checks
-
Dockerfile and docker-compose file for running Multi-container in Docker environment
Basket microservice which includes;
-
ASP.NET 8 Web API application, Following REST API principles, CRUD operations
-
Redis as a Distributed Cache over basketdb
-
Implements Proxy, Decorator and Cache-aside Design Patterns
-
Consume Discount gRPC Service for inter-service sync communication to calculate product final price
-
Publish BasketCheckout Queue with using MassTransit and RabbitMQ
Discount microservice which includes;
-
ASP.NET gRPC Server application
-
Build a Highly Performant inter-service gRPC Communication with Basket Microservice
-
Exposing gRPC Services with creating Protobuf messages
-
Entity Framework Core ORM – SQLite Data Provider and Migrations
-
SQLite database connection and containerization
Microservices Communication
-
Sync inter-service gRPC Communication
-
Async Microservices Communication with RabbitMQ Message-Broker Service
-
Using RabbitMQ Publish/Subscribe Topic Exchange Model
-
Using MassTransit for abstraction over RabbitMQ Message-Broker system
-
Publishing BasketCheckout event queue from Basket microservices and Subscribing this event from Ordering microservices
-
Create RabbitMQ EventBus.Messages library and add references Microservices
Ordering Microservice
-
Implementing DDD, CQRS, and Clean Architecture with using Best Practices
-
Developing CQRS with using MediatR, FluentValidation and Mapster packages
-
Use Domain Events & Integration Events
-
Entity Framework Core Code-First Approach, Migrations, DDD Entity Configurations
-
Consuming RabbitMQ BasketCheckout event queue with using MassTransit-RabbitMQ Configuration
-
SqlServer database connection and containerization
-
Using Entity Framework Core ORM and auto migrate to SqlServer when application startup
Yarp API Gateway Microservice
-
Implement API Gateways with Yarp Reverse Proxy applying Gateway Routing Pattern
-
Yarp Reverse Proxy Configuration; Route, Cluster, Path, Transform, Destinations
-
Rate Limiting with FixedWindowLimiter on Yarp Reverse Proxy Configuration
-
Sample microservices/containers to reroute through the API Gateways
WebUI ShoppingApp Microservice
-
ASP.NET Core Web Application with Bootstrap 4 and Razor template
-
Consume YarpApiGateway APIs using Refit Library with Generated HttpClientFactory
-
ASPNET Core Razor Tools — View Components, partial Views, Tag Helpers, Model Bindings and Validations, Razor Sections etc.
Docker Compose establishment with all microservices on docker;
-
Containerization of microservices
-
Orchestrating of microservices and backing services (databases, distributed caches, message brokers..)
-
Override Environment variables
On top of all these, you’ll learn how to write quality code, not just how to build microservices. In this course you will see the demonstrating a layered application architecture with DDD best practices. Implements NLayer Hexagonal architecture (Core, Application, Infrastructure and Presentation Layers) and Domain Driven Design (Entities, Repositories, Domain/Application Services, DTO’s…) and aimed to be a Clean Architecture, with applying SOLID principles in order to use for a project template. Also implements best practices like loosely-coupled, dependency-inverted architecture and using design patterns such as Dependency Injection, logging, validation, exception handling and so on.
Is this course for you?
This course is very practical, about 95%+ of the lessons will involve you coding along with me on this project. If you are the type of person who gets the most out of learning by doing, then this course is definitely for you.
Tools you need for this course
In this course all the lessons are demonstrated using Visual Studio as a code editor. You can of course use any code editor you like and any Operating system you like as long as it’s Windows or Mac. Also using Docker Desktop in order to use different database providers.
-
1IntroductionVídeo Aula
-
2Prerequisites, Source Code and Course SlidesVídeo Aula
-
3Run the Final ApplicationVídeo Aula
-
4Project Code StructureVídeo Aula
-
5Microservices Architectures, Patterns, Libraries and Best Practices in CourseVídeo Aula
-
6Microservices Multi-Architectural Patterns (External vs Internal Architectures)Vídeo Aula
-
7How to Follow the Course (The Course Flow and Way of Learning)Vídeo Aula
-
8What are Microservices ?Vídeo Aula
-
9What is Microservices Architecture ?Vídeo Aula
-
10Microservices CharacteristicsVídeo Aula
-
11Benefits of Microservices ArchitectureVídeo Aula
-
12Challenges of Microservices ArchitectureVídeo Aula
-
13When to Use Microservices Architecture - Best PracticesVídeo Aula
-
14When Not to Use Microservices - Anti-Patterns of MicroservicesVídeo Aula
-
15Monolithic vs Microservices Architecture ComparisonVídeo Aula
-
16The Database-per-Service Pattern - Polyglot PersistenceVídeo Aula
-
17Decomposition of Ecommerce Microservices: Catalog, Basket, Discount and OrderingVídeo Aula
-
18Microservices QuizQuestionário
-
19Why .NET ?Vídeo Aula
-
20Cloud-Native Development with .Net 8Vídeo Aula
-
21.NET loves Containers and MicroservicesVídeo Aula
-
22What is new .NET 8 ?Vídeo Aula
-
23What is new .C# 12 ? Primary Constructors, Collection Expressions, Inline ArraysVídeo Aula
-
24C# Top-level statements, Global usings, Pattern MatchingVídeo Aula
-
25ASP.NET 8 for Microservice DevelopmentVídeo Aula
-
26Minimal APIs in ASP.NET CoreVídeo Aula
-
27Create ASP.NET Core Web API for Single MicroserviceVídeo Aula
-
28Clear Project for Single Microservices: Setting Up a Minimal ASP.NET Web APIVídeo Aula
-
29Todo Service: Create Minimal API with ASP.NET Core for Single MicroserviceVídeo Aula
-
30TEST - Todo Service: Create Minimal API w/ ASP.NET Core for Single MicroserviceVídeo Aula
-
31Containerize Microservices with Docker Containers, Images, and RegistriesVídeo Aula
-
32Containerize Todo Asp.Net Web API Microservice and Run Docker ProfileVídeo Aula
-
33Introduction - Catalog.API with Vertical Slice Architecture and CQRSVídeo Aula
-
34Create New Github Repository For Our Microservice ProjectVídeo Aula
-
35Clone Github Repository and Create New Solution with Visual StudioVídeo Aula
-
36Create Asp.Net Web Api for Catalog.API MicroserviceVídeo Aula
-
37Set Port Numbers for Catalog.API Microservice - Modify Launch SettingsVídeo Aula
-
38Domain Analysis of Catalog Microservices: Models, UCs, Rest Apis, DatabasesVídeo Aula
-
39Technical Analysis of Catalog Microservices: Architectures, Patterns, LibrariesVídeo Aula
-
40Vertical Slice ArchitectureVídeo Aula
-
41Vertical Slice versus Clean ArchitectureVídeo Aula
-
42CQRS Design PatternVídeo Aula
-
43Logical and Physical Implementation of CQRS PatternVídeo Aula
-
44CQRS Design Pattern With MediatR Library (Logical CQRS Implementation)Vídeo Aula
-
45Develop Catalog.API Microservices Creating Domain EntitiesVídeo Aula
-
46Develop Vertical Slice Feature Folder with CQRS and MediatRVídeo Aula
-
47Develop Feature Handler class with CQRS and MediatRVídeo Aula
-
48Create Abstraction on MediatR for CQRS - Command and Query separationVídeo Aula
-
49Create Abstraction on MediatR for CQRS - Command and Query separation - 2Vídeo Aula
-
50Implement CQRS Abstractions ICommand into Vertical Slice Feature Handler classVídeo Aula
-
51Develop Create Product Endpoint with Minimal Apis and CarterVídeo Aula
-
52Develop POST Endpoint with Carter implements ICarterModule for Minimal ApisVídeo Aula
-
53Develop POST Endpoint with Carter implements ICarterModule for Minimal Apis - 2Vídeo Aula
-
54Register MediatR and Carter libraries into Asp.Net Dependency Injection ServiceVídeo Aula
-
55Test Catalog API - CreateProduct POST Request - Debug Carter Minimal API and MedVídeo Aula
-
56Introduction - Develop Catalog.API Infrastructure, Handler and Endpoint ClassesVídeo Aula
-
57Infrastructure - Data Concerns for Catalog API - Marten .NET Transactional DBVídeo Aula
-
58Opening Sessions in Marten as Document DBVídeo Aula
-
59Develop CommandHandler to Save Product to DB using Marten LibraryVídeo Aula
-
60Register and Configure Marten DocumentDB library into Program.cs asp.net DIVídeo Aula
-
61EShop Microservices Deployment StrategyVídeo Aula
-
62Setup PostgreSQL DB using Docker-compose file for Multi-container Docker envVídeo Aula
-
63Add PostgreSQL DB image into Docker-compose file for Multi-container Docker envVídeo Aula
-
64Run Docker-Compose on Visual Studio to setup PostgreSQL DB on DockerVídeo Aula
-
65Connect Postgres DB from local Catalog Microservices and send POST requestVídeo Aula
-
66Develop GetProducts Feature in Vertical Slice with CQRS, MediatR in Handler clasVídeo Aula
-
67Develop GetProducts GET Endpoint with Minimal Apis and CarterVídeo Aula
-
68Test GetProducts Endpoint Connecting to Docker Postgres ContainerVídeo Aula
-
69Create Postman Collection for EShop MicroservicesVídeo Aula
-
70Develop GetProductById Handler with CQRS and MediatRVídeo Aula
-
71Develop GetProductById GET Endpoint with Minimal Apis and CarterVídeo Aula
-
72Test GetProductById Endpoint Connecting to Docker Postgres ContainerVídeo Aula
-
73Develop GetProductByCategory Handler with CQRS and MediatRVídeo Aula
-
74Develop GetProductByCategory GET Endpoint with Minimal Apis and CarterVídeo Aula
-
75Test GetProductByCategory Endpoint Connecting to Docker Postgres ContainerVídeo Aula
-
76Develop UpdateProduct Handler with CQRS and MediatRVídeo Aula
-
77Develop UpdateProduct PUT Endpoint with Minimal Apis and CarterVídeo Aula
-
78Test UpdateProduct Endpoint Connecting to Docker Postgres ContainerVídeo Aula
-
79Develop DeleteProduct Handler with CQRS and MediatRVídeo Aula
-
80Develop DeleteProduct DELETE Endpoint with Minimal Apis and CarterVídeo Aula
-
81Test DeleteProduct Endpoint Connecting to Docker Postgres ContainerVídeo Aula
