.NET 8 Backend Bootcamp: Modulith, VSA, DDD, CQRS and Outbox

Develop EShop Modulith on .NET used Asp.Net Web API, PostgreSQL, Redis, RabbitMQ, Keycloak, Seq, Docker, MassTransit

  • 0.0 (0 Reviews)
  • 0 Students
  • 328 Lessons
  • Mehmet Ozkaya

Course Overview

In this bootcamp, you'll learn how to build robust, scalable, and maintainable applications using cutting-edge technologies and architectural patterns.

We will develop;

  1. Modular Monoliths (Modulith) Architecture

  2. Vertical Slice Architecture (VSA)

  3. Domain-Driven Design (DDD)

  4. Command Query Responsibility Segregation (CQRS)

  5. Outbox Pattern for Reliable Messaging

We start with the basics and progressively dive deeper into each topic. You'll get hands-on experience building a complete EShop Modular Monolith application, implementing features like CQRS and the Outbox pattern.

  • We'll follow CQRS (Command Query Responsibility Segregation) and Vertical Slice architectures for module development.

  • Modules will communicate over In-process method calls-public APIs and use RabbitMQ for event-driven communication.

  • We'll secure our APIs with Keycloak, using OpenID Connect and Bearer Tokens.

  • We'll implement the Outbox Pattern for reliable messaging between modules.

Along with this you’ll develop following modules and items:

Catalog module which;

  • Using Asp.Net Core Minimal APIs and latest features of .Net8 and C# 12

  • Develop Vertical Slice Architecture implementation with Feature folders 

  • Develop DDD, CQRS Patterns using MediatR library w/ following Best Practices   

  • Use Domain Events & Integration Events when UpdatePriceChanged event

  • Use Entity Framework Core Code-First Approach and Migrations on PostgreSQL Database

  • Use Carter for expose Minimal Api endpoints

  • Cross-cutting Concerns including Logging with Serilog, Validation with MediatR Pipeline Behaviors, Exceptions, Pagination

Basket module which includes;

  • Similar to Catalog Module; Develop DDD, CQRS, Vertical Slice Architecture implementation

    Additionally;

  • Using Redis as a Distributed Cache over PostgreSQL database

  • Develop and Implements Proxy, Decorator and Cache-aside patterns

  • Publish BasketCheckoutEvent to RabbitMQ via MassTransit library

  • Implement Outbox Pattern For Reliable Messaging w/ BasketCheckout Use Case

Module Communications;

  • Sync Communications between Catalog and Basket Modules with In-process Method Calls (Public APIs)

  • Async Communications between Modules w/ RabbitMQ & MassTransit for UpdatePrice Between Catalog-Basket Modules

Identity Module which includes;   

  • Develop User Identity Module with Keycloak Authentication

  • OAuth2 + OpenID Connect Flows with Keycloak

  • Setup Keycloak into Docker-compose file for Identity Provider as a Backing Service

  • Secure EShop Modules with Keycloak OpenId Connect in AspNet

  • JwtBearer token for OpenID Connect with Keycloak Identity

Ordering Module which includes;

  • Similar to the Catalog and Basket Module; Develop DDD, CQRS, Vertical Slice Architecture implementation

  • Implement Outbox Pattern For Reliable Messaging w/ BasketCheckout Use Case

Lastly, we will discuss

  • Migrating to Microservices: EShop Modules to Microservices w/ Stranger Fig Pattern

This course is more than just learning .NET, it's a deep dive into the world of Modular Monoliths with Vertical-Slice Architecture, Domain-Driven Design (DDD), CQRS, and advanced architectural patterns for Backend Development.

See more

FAQ

FAQ area empty

Course curriculum

28 chương 328 bài học 24 giờ 42 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Monolithic Architecture - What's wrong with Traditional Monoliths ?
Chương 3 Microservices Architectures - Why it is not fit projects ?
  • What are Microservices and Microservices Architecture ? 3:35
  • What's wrong with Microservices Architecture ? 5:29
  • Microservices Antipattern: The Distributed Monolith 4:25
  • Amazon Case: Rearchitecting from a Distributed Microservices to a Monolith 5:02
  • Microservices Quiz
Chương 4 The Bridge: Modular Monolith Architectures - Gateway between Monolithic and MS
  • What is Modular Monolithic (Modulith) Architecture ? 4:19
  • Why Modular Monoliths ? Advantages over Microservices ? 2:58
  • Monolith First Approaches from Martin Fowler and Sam Newman 2:47
  • Starting Point for Microservices: Gradually Transition with Incremental Refactor 5:43
  • Shopify Modular Monolithic Architecture 5:14
  • Decomposition of EShop Modules: Catalog, Basket, Identity and Ordering Modules 4:10
  • Modular Monolith Quiz
Chương 5 Create EShop Modular Monolith Project Solution Structure
  • Introduction - Create EShop Modular Monolith Project Solution Structure 2:07
  • Create GitHub Repository for EShop Modular Monolithic Architecture 3:42
  • Create New Blank Solution: eshop-modular-monoliths 3:21
  • Modular Monolith Folder Structure: Bootstrapper, Modules, Shared 6:11
  • Create Bootstrapper Api Project 4:26
  • Configure Empty Web Project to Bootstrapper Api of Modular Monolith 4:35
  • Create Modules Folders according to DDD Bounded Context Analysis 1:38
  • External vs Internal Architecture of Modular Monoliths Architecture 2:33
  • Vertical Slice Architecture 4:39
  • Clean Architecture 3:44
  • Vertical Slice versus Clean Architecture 3:03
  • Create Module Projects as a Class Library 4:04
  • Shared Kernel Pattern in DDD 1:41
  • Created Shared Kernel Class Library Project for All Modules 2:42
  • Shared Project Dependencies to Modules Projects 3:35
  • Module Dependencies to Bootstrapper Asp.Net Api Project 2:50
Chương 6 Wire-up Dependencies Between Modules (DI Management of Modules)
  • Introduction - Wire-up Dependencies Between Modules (DI Management of Modules) 1:57
  • Asp.net Dependency Injection Management and Program.cs 3:59
  • Wiring up dependencies between modules 2:45
  • Develop AddCatalogModule extention method in CatalogModule.cs 6:17
  • Registering Catalog Dependencies into Program.cs 2:09
  • Develop AddBasketModule, AddOrderingModule extention methods 2:32
  • Registering Basket and Ordering Dependencies into Program.cs 1:27
  • Asp.net Middlewares and Http Request Pipeline 4:49
  • Configure Http Request Pipelines for Modules in Program.cs 2:11
  • Examine WebApplication Class Use Abstractions and Install Required Packages 4:29
  • Develop UseCatalogModule extention method for Module Configure the HTTP request 3:23
  • Integrating UseCatalogModule in Program.cs 1:09
  • Develop UseBasketModule and UseOrderingModule extention method for Module Config 1:34
  • Integrating UseBasketModule and UseOrderingModule extention method in Program.cs 1:16
  • Add GlobalUsings.cs for Each Project to Avoid Redundant Using Statements 2:00
Chương 7 First Module: Catalog Module with Vertical Slice Architecture and CQRS
  • Introduction - First Module: Catalog Module with Vertical Slice Architecture 1:20
  • Domain Analysis of Catalog Module: Models, UCs, Rest Apis, Databases 3:05
  • Technical Analysis of Catalog Module: Architectures, Patterns, Libraries, Folder 4:16
  • Way of Development: Shared -> Modules -> API 3:29
Chương 8 Develop Shared Domain for Tactical DDD Abstraction (Entity, Aggreagate, Events)
  • Introduction - Develop Shared Domain for Tactical DDD Abstraction 1:00
  • Domain Driven Design - DDD 3:25
  • Tactical Domain-Driven Design: Entities, Value Objects, Aggregates, A. Rooots 3:49
  • Develop DDD Abstractions (Entity, Aggregate, DomainEvent) in Shared Library 3:45
  • Develop IDomainEvent interface in Tactical DDD Abstraction using MediatR 3:57
  • Develop Aggregate classes in Tactical DDD Abstraction 6:23
Chương 9 Develop Catalog Domain with Product Domain Entity Models
  • Introduction - Develop Catalog Domain with Product Domain Entity Models 1:29
  • Develop Product Domain Entity Models in Catalog Module Domain Models 3:15
  • Anemic-domain vs Rich-domain Model Entities Entities in DDD 2:48
  • Develop DDD Rich-domain model Entity for Product Entity 5:53
  • Domain Events in DDD and Domain vs Integration Events 5:46
  • Develop Product Created and Updated Domain Event in Catalog Module 3:23
  • Raise ProductCreated and ProductPriceChanged Domain Event in Catalog Module 4:25
Chương 10 Data Management of Modular Monolith: Setup Postgres as a Main Database
  • Introduction - Data Management of Modular Monolith: Setup Postgres DB 1:07
  • Data Management of Modular Monoliths: 4 Data Isolation Strategies 3:37
  • Best Practice: DB Schema separation of Modules in Modular Monoliths apps 3:01
  • Multi-context EF DB Context object for DB Separate Schema for Data Isolation 2:12
  • Backing Services for Cloud-Native Architectures 3:11
  • EShop Modular Monolith Deployment Strategy 3:44
  • Setup PostgreSQL DB using Docker-compose file for Multi-container Docker env 5:15
  • Add PostgreSQL DB image into Docker-compose file for Multi-container Docker env 6:30
  • Run Docker-Compose on Visual Studio to setup PostgreSQL DB on Docker 5:14
  • Connect and Browse PostgreSQL DB using pgAdmin 4:12
Chương 11 Develop Shared and Catalog Data-Infrastructure with EF Core Code First
  • Introduction - Develop Shared and Catalog Data-Infrastructure Layer with EF Core 2:59
  • EF Core 8 Features, Code First Approach, Migrations and PostgreSQL Connection 2:59
  • Steps of EF Core Developments for Shared and Catalog Data-Infrastructure 6:13
  • Install EF Core Nuget Packages in Shared Library 5:26
  • Develop EF Core DBContext Object for Storing Entities in Catalog Module 6:48
  • Mapping DDD Objects to EF Entities - Develop EF Core Entity Configurations 3:37
  • EF Core PostgreSQL Connection String in appsettings.json file 3:21
  • Register EF Core DbContext in Asp.Net DependencyInjection Tool for PostgreSQL 4:41
  • Create EF Core Migrations for CatalogDbContext - Part 1 4:49
  • Create EF Core Migrations for CatalogDbContext - Part 2 8:06
  • Review and Run Docker-Compose on Visual Studio to setup PostgreSQL DB on Docker 3:22
  • Apply EF Core Migrations to PostgreSQL DB with Update-Database Command 2:26
  • Auto Migrate EF Core Entities to PostgreSQL DB when Application Startup 4:53
  • Develop Generic UseMigration extention method for DB Migration and Seed 6:20
  • Using UseMigration extention method on Module DependencyInjection classes 3:46
  • Test Auto-Migrations with UseMigration extention method on WebApplication 5:15
  • Seed EShopDb Product Data When Application Startup Just After UseMigration 10:12
  • Run Catalog Module to Migrate and Seed EShopDb with UseMigration method 5:15
  • EF Core Interceptors: SaveChangesInterceptor for Auditing Entities 3:17
  • Develop SaveChangesInterceptor to Auditing Entities for Order Entities 9:14
  • Run&Test Catalog Module for Audit with EF Save Changes Interceptor 6:11
  • Dispatch Domain Events w/ EF Core SaveChangesInterceptor 4:10
  • Develop DispatchDomainEventsInterceptor to Trigger Domain Event Handlers 12:14
  • Run&Test Catalog Module for Dispatch DomainEvents w/ EF SaveChanges Interceptor 7:06
Chương 12 Application Use Case Development with CQRS and MediatR
  • Introduction - Application Use Case development with CQRS and MediatR 1:27
  • CQRS (Command Query Responsibility Segregation) Pattern 3:01
  • Logical and Physical Implementation of CQRS Pattern 2:43
  • CQRS Design Pattern With MediatR Library (Logical CQRS Implementation) 4:11
  • Develop Feature Handler class with CQRS and MediatR 9:35
  • Create Abstraction on MediatR for CQRS - Command and Query Separation 4:11
  • Create Abstraction on MediatR for CQRS - Command and Query Separation - 2 4:46
Chương 13 Catalog Application Use Case Development with CQRS and MediatR
  • Introduction - Catalog Application Use Case Development with CQRS and MediatR 1:16
  • Quick Remember Catalog Module Application Use Cases Analysis 1:43
  • Develop Catalog Module Folder Structure for CQRS 2:35
  • Develop Dto Classes for Product in Catalog Module 1:52
  • Develop Products CreateProductCommand and Handler in Catalog Modules Application 5:25
  • Develop Products CreateProductCommandHandler using CatalogDbContext in Catalog 3:51
  • Develop Products UpdateProductCommand and Handler using CatalogDbContext 6:46
  • Develop Products DeleteProductCommand and Handler using CatalogDbContext 3:46
  • Develop Product Queries with CQRS and MediatR in Catalog Module 5:13
  • Mapping with Mapster 3:33
  • Develop Product Queries with CQRS and MediatR in Catalog Module w/ Mapster 2:31
  • Develop GetProductByCategory Queries with CQRS and MediatR in Catalog Module 3:44
  • Develop GetProductById Queries with CQRS and MediatR in Catalog Module 5:34
  • Develop Domain Event Handlers with MediatR INotificationHandler in Catalog 5:42
  • Develop Domain Event Handlers with MediatR INotificationHandler - Part 2 5:19
Chương 14 Develop Catalog API Endpoints Expose Minimal Api Endpoints with Carter and REPR
  • Introduction - Develop Catalog API Endpoints Exposing Minimal Api Endpoints 1:29
  • REPR Design Pattern and CQRS MediatR Request LifeCycle 1:50
  • Minimal Apis and Install Carter Library to Expose Minimal Apis 4:41
  • Quick Remember Catalog Module Endpoints Analysis 2:01
  • Develop CreateProduct POST Endpoint with Carter implements ICarterModule 5:07
  • Develop CreateProduct POST Endpoint with Carter implements ICarterModule- Part 2 5:53
  • Developing UpdateProduct Endpoint for REST APIs in Catalog Module 5:31
  • Developing DeleteProduct Endpoint for REST APIs in Catalog Module 4:14
  • Developing GetProducts Endpoint for REST APIs in Catalog Module 4:35
  • Developing GetProductById Endpoint for REST APIs in Catalog Module 4:10
  • Developing GetProductByCategory Endpoint for REST APIs in Catalog Module 4:57
  • Register Carter libraries into Asp.Net Dependency Injection Service and Request 6:10
  • Create Extention Method for Carter Assembly Registrations 6:24
  • Create Postman Collection for EShopModules 6:50
  • Test Catalog Module - CreateProduct POST Request - Debug Carter Minimal API 10:13
  • Test UpdateProduct Endpoint with CQRS and VSA in Catalog Module 8:42
  • Test Get Product Endpoints with CQRS and VSA in Catalog Module 9:59
  • Test DeleteProduct Endpoint with CQRS and VSA in Catalog Module 4:08
Chương 15 Develop Cross-cutting Concerns for Catalog and Each Module in EShop Modules
  • Introduction - Develop Cross-cutting Concerns for Catalog and Each Module 1:35
  • MediatR Pipeline Behaviours and Fluent Validation Library 4:04
  • Add Cross-cutting Concerns into Shared Class Library to use in all modules 2:43
  • Apply Validation with AbstractValidator using Fluent Validation Library 4:16
  • Apply Validation with AbstractValidator using Fluent Validation Library - Part 2 7:08
  • Validation Pipeline Behaviour with MediatR using Fluent Validation Library 8:37
  • Remove Manual Validator and Test Validation Pipeline Behaviour with MediatR usin 4:59
  • Develop CRUD Command Validators with Fluent Validation 4:19
  • Global Handling Exceptions in ASP.NET Core with app.UseExceptionHandler 5:46
  • Shared Handle Exceptions Generic Way in ASP.NET Core w/ app.UseExceptionHandler 10:08
  • Global Exception Handling with IExceptionHandler interface in Asp.Net Core 8:15
  • Register Custom Exception Handling into Asp.net with AddExceptionHandler method 8:22
  • Logging Behavior in MediatR Pipeline for Cross-cutting concerns 7:17
  • Test Logging Behaviour for all MediatR Requests on Catalog Module 6:06
  • Structured Logging Using Serilog in .NET 8.0 Minimal APIs 9:19
  • Serilog WriteTo Seq for Structured Logging in .NET 7:39
  • Develop Pagination Class for Query GetProducts using CQRS and MediatR 3:47
  • Develop GetProducts Query apply Pagination using CQRS and MediatR 9:19
Chương 16 Develop Basket Module with Vertical Slice Architecture and CQRS
  • Introduction - Develop Basket Module with Vertical Slice Architecture and CQRS 1:15
  • Domain Analysis of Basket Module: Models, UCs, Rest Apis, Databases 4:08
  • Technical Analysis of Basket Module: Architectures, Patterns, Libraries, Folders 2:43
  • Develop ShoppingCart Domain Entity Models in Basket Domain Entities 5:28
  • Develop DDD Rich-domain model Entity for ShoppingCart Entities 5:35
Chương 17 Develop Basket Data-Infrastructure with EF Core Code First and PostgreSQL
  • Introduction - Develop Basket Data-Infrastructure with EF Core Code First 2:36
  • Steps of Infrastructure EF Core Developments for Basket Module 3:05
  • Develop EF Core DBContext Object for Storing Entities in Basket Infrastructure 6:26
  • Mapping DDD Objects to EF Entities - Develop EF Core Entity Configurations 4:33
  • EF Core 8 Relations and DDD ValueObject Mapping with ComplexType and Property 2:48
  • Develop SC and SC Items Relations Entity Configurations 1:58
  • EF Core PostgreSQL Connection String in appsettings.json file 1:39
  • Register EF Core DbContext in Asp.Net Dependency Injection Tool for PostgreSQL 4:35
  • Create EF Core Migrations for BasketDbContext in Basket Infrastructure 5:43
  • Run Docker-Compose on Visual Studio to setup PostgreSQL on Docker 2:04
  • Apply EF Core Migrations to PostgreSQL DB with Update-Database Command 3:03
  • Auto Migrate EF Core Entities to PostgreSQL when Application Startup with Coding 3:00
  • Test Auto-Migrations with UseMigration Extention Method on WebApplication 4:55
Chương 18 Develop Basket Application Use Case Development with CQRS and MediatR
  • Introduction - Basket Application Use Case Development with CQRS and MediatR 1:07
  • Develop Basket Folder Structure for CQRS 3:23
  • Develop Dto Classes for ShoppingCart in Basket Module 2:36
  • Develop Basket CreateBasketCommand and Handler in Basket Application Use Cases 5:33
  • Develop Basket CreateBasketCommandHandler using BasketDbContext in Basket Module 4:46
  • Develop Basket DeleteBasketCommand and Handler using BasketDbContext in Basket 7:05
  • Develop Basket Queries with CQRS and MediatR in Basket Module 4:34
  • Develop Basket AddItemIntoBasketHandler with CQRS and MediatR 5:58
  • Develop Basket RemoveItemFromBasketHandler with CQRS and MediatR 4:48
Chương 19 Develop Basket API Endpoints Exposing Minimal Api Endpoints with Carter and REPR
  • Introduction - Develop Basket API Endpoints Exposing Minimal Api Endpoints 2:17
  • Develop CreateBasket POST Endpoint with Carter implements ICarterModule 8:12
  • Develop DeleteBasket Endpoint with Carter implements ICarterModule 3:25
  • Develop GetBasket Endpoint with Carter implements ICarterModule for Minimal Apis 4:01
  • Develop AddItemIntoBasket Endpoint with Carter implements ICarterModule 7:04
  • Develop RemoveItemFromBasket Endpoint with Carter implements ICarterModule 5:13
  • Register MediatR and Carter libraries into Asp.Net Dependency Injection Service 6:50
  • Register MediatR libraries into Asp.Net Dependency Injection Service and Request 6:40
  • Develop MediatR Extention Method for Custom Registration With Assemblies 3:56
  • Test Basket API - CreateBasket POST Request - Debug Carter Minimal API 6:39
  • Test Get Basket Endpoints with CQRS and VSA in Basket Module 3:15
  • Test DeleteBasket Endpoint with CQRS and VSA in Basket Module 2:42
  • Test AddItemIntoBasket Endpoint with CQRS and VSA in Basket Module 8:18
  • Test RemoveItemFromBasket Endpoint with CQRS and VSA in Basket Module 4:38
Chương 20 Develop Distributed Caching with Redis in Basket Module
  • Introduction - Develop Distributed Caching with Redis in Basket Module 2:04
  • Develop BasketRepository Class using EF Core DbContext object 5:23
  • Implement IBasketRepository Class using EF Core DbContext object 5:15
  • Register IBasketRepository into DI of Basket Module 1:24
  • Inject and Use IBasketRepository into Handler classes in Basket Module 7:35
  • Inject and Use IBasketRepository into AddItem and RemoveItem Handler classes 3:49
  • Quick Test Basket Endpoint with CQRS and VSA in Basket Module 6:15
  • Cache-aside Pattern and Cache Invalidation 3:28
  • Proxy Pattern, Decorator Pattern and Scrutor Library 3:32
  • Develop CachedBasketRepository with Proxy Pattern, Decorator Pattern and Scrutor 4:04
  • Develop CachedBasketRepository with Proxy Pattern, Decorator Pattern - Part 2 10:56
  • Develop CachedBasketRepository with Proxy Pattern, Decorator Pattern - Part 3 7:23
  • Register Decorated CachedBasketRepository and StackExchangeRedis with Scrutor 6:33
  • Register StackExchangeRedis into Common DI in Api Project Program.cs 4:05
  • Setup Redis as a Distributed Cache using Docker-compose file for Multi-container 4:14
  • Run Docker-Compose on Visual Studio to setup Redis Distributed Cache on Docker 3:13
  • Connect Redis Cache from Local Basket Module and send GET request Basket Cache 8:30
  • Develop Custom JsonConverter for ShoppingCart and Items When Reading to Redis 7:52
  • Develop Custom JsonConverter for ShoppingCart and Items - Part 2 3:39
  • Use Custom JsonSerializerOptions with JsonConverter for ShoppingCart and Items 4:15
  • Quick Test Basket Endpoint with CachedBasket Repository and Custom JsonConverter 10:15
Chương 21 Sync Communications between Modules with In-process Method Calls (Public APIs)
  • Introduction - Sync Communications between Modules with In-process Method Calls 4:10
  • How Modular Monolithic Architecture Handle Communications Between Modules 2:31
  • Basket Module Synchronous Use Cases - Adding an Item to the Basket Communication 2:44
  • Examine AddItemIntoBasketHandler Class: Get Product Price from Catalog Module 6:47
  • Sync Communication Between Modules Using Contracts Class Libraries 5:58
  • Step 1: Create Catalog.Contracts Class Library 2:08
  • Step 2: Move exposing MediatR method Query or Commands into Catalog.Contracts 6:03
  • Spliting CQRS Contract related common operations into Shared.Contracts Class lib 12:37
  • Step 3: Modify Catalog Module getting reference from Catalog.Contracts Class Lib 6:51
  • Step 4: Basket Get Reference from Catalog.Contracts Class Library 3:16
  • Step 6: Get Product entity values into AddItemIntoBasketHandler and set Price 5:14
  • Test Basket AddItemIntoBasket Sync Call to Catalog Module to Get Product Data 8:47
  • Step 7: Migrating Microservices: Evolving Contracts Sync Communication 3:26
Chương 22 Async Communications between Modules w/ RabbitMQ & MassTransit for UpdatePrice
  • Introduction - Async Communications between Modules w/ RabbitMQ & MassTransit 1:43
  • How Modular Monolithic Architecture Handle Async Communications Between Modules 3:35
  • Fan-Out Publish/Subscribe Messaging Pattern 2:44
  • Quick Remember: Domain vs Integration Events - Domain leads to Integration Event 1:40
  • Domain Analysis of Async Communication between Catalog and Basket Modules 3:15
  • Technical Analysis of Async Communication between Catalog and Basket Modules 4:41
  • Steps of Developing Async Communication between Catalog and Basket Modules 3:08
  • Step1: Examine Catalog Module Domain and Integration Events 4:05
  • Step2: Create Shared.Messaging Class Library 4:12
  • Develop ProductPriceChangedIntegration Event in Shared.Messaging Class Library 3:03
  • Develop MassTransit Extention Methods to Register RabbitMQ connection into DI 4:07
  • Develop MassTransit Extention Methods to Register connection into DI of Catalog 2:46
  • Add Project Reference to Shared.Messaging in Catalog and Basket Modules 3:18
  • Register MassTransit Packages into Bootstrapper Api DI in Program.cs file 4:55
  • ProductPriceChanged Integration Event: How Domain leads to Integration Event 1:36
  • Step3: Catalog Publish UpdatePrice Integration Event 3:48
  • Step4: Basket Subscribe and consume ProductPriceChanged Integration Event 5:13
  • Develop UpdateItemPriceInBasket Feature in Basket Module 4:16
  • Develop UpdateItemPriceInBasket Feature in Basket Module - Part 2 5:20
  • Call UpdateItemPriceInBasketCommand in ProductPriceChangedIntegrationEventHander 4:15
  • TEST - ProductPriceChangedIntegrationEvent w/ In-memory MassTransit 13:46
  • What is RabbitMQ and Main Components of RabbitMQ (Producer, Queue, Consumer) 2:36
  • Shifting In-memory Bus to RabbitMQ Message broker in Masstransit 4:42
  • Develop MassTransit Extention Methods to Register RabbitMQ connection into DI 4:20
  • Setup RabbitMQ for Async Communication using Docker-compose file 4:07
  • Run Docker-Compose on Visual Studio to setup RabbitMQ on Docker 2:56
  • TEST - ProductPriceChangedIntegrationEvent w/ RabbitMQ MassTransit 12:59
Chương 23 Develop User Identity Module with Keycloak Authentication
  • Introduction - Develop User Identity Module with Keycloak Authentication 1:52
  • Keycloak Identity and Access Management 2:00
  • Main Advantages of using Keycloak 2:26
  • Best Practices when using Keycloak 3:03
  • OAuth2 + OpenID Connect Flows with Keycloak 5:16
  • Keycloak as a Backing Services of Modular Monolith Modules 2:35
  • Setup Keycloak into Docker-compose file for Identity Provider 3:26
  • Run Docker-Compose on Visual Studio Setup Keycloak Identity Provider on Docker 5:20
  • Setup Keycloak User Identity Database as a PostgreSQL DB identity schema 7:11
  • Run docker-compose for Keycloak PostgreSQL identity schema generation 3:55
  • Create Realm, User and Client for OpenID Connect with Keycloak Identity Provider 10:19
  • Secure EShop Modules with Keycloak OpenId Connect in AspNet 8:45
  • Secure and Test Basket Endpoints with Keycloak Integration 3:36
  • Get JwtBearer Token for OpenID Connect with Keycloak Identity 8:06
  • Get Current User from Token with ClaimsPrincipal in Aspnet Authentication 4:31
  • TEST - Create Basket with Current User from Token with ClaimsPrincipal 4:56
  • Secure Basket Endpoints with OpenID Connect using Keycloak Identity Provider 8:45
Chương 24 Ordering Module with Vertical Slice Architecture and CQRS
  • Introduction - Ordering Module with Vertical Slice Architecture and CQRS 2:59
  • Domain Analysis of Ordering Module: Models, UCs, Rest Apis, Databases 4:30
  • Technical Analysis of Ordering Module: Architectures, Patterns, Libraries 2:56
  • Develop Ordering Domain Entities with Tactical Domain-Driven Design Patterns 6:49
  • Develop Ordering Data-Infrastructure with EF Core Code First and PostgreSQL 8:30
  • Develop Ordering.Application Layer with CQRS and MediatR 6:26
  • Develop Ordering API Endpoints Exposing Minimal Api Endpoints with Carter 10:02
Chương 25 Outbox Pattern For Reliable Microservices Messaging w/ BasketCheckout Use Case
  • Introduction - Outbox Pattern For Reliable Microservices Messaging 2:20
  • Analyse Basket Checkout Event between Basket and Ordering Modules 7:17
  • Develop BasketCheckout Event in Shared.Messaging Class Library 3:12
  • Quick Remember Async Communication MassTransit RabbitMQ Setup 3:24
  • Develop BasketCheckout Feature Folder to Expose POST Endpoint and Publish Event 5:05
  • Develop Basket Checkout Handler Method to Publish event to RabbitMQ via MassTran 9:43
  • Dual-write Problem and Outbox Pattern 5:06
  • Develop Outbox Pattern For Reliable Microservices Messaging w/ BasketCheckout 1:05
  • Step 1-2: Create the Outbox Entity and Modify the DbContext 8:04
  • Step 3: Update CheckoutBasketHandler w/ Outbox and Database Begin and Commit 7:52
  • Step 4: Create a Background Service to Process Outbox Messages 11:32
  • Ordering Module to Subscribe-Consume BasketCheckout event from RabbitMQ 2:50
  • Register Ordering Module into MassTransit for Async Event-driven communication 2:26
  • Develop Basket Checkout Event Consumer Integration Event Handler 8:33
  • TEST - Checkout Basket Use Case - Reliable Async Communication Outbox Pattern- 1 7:35
  • TEST - Checkout Basket Use Case - Reliable Async Communication Outbox Pattern- 2 11:03
  • Outbox Quiz
Chương 26 Containerize and Orchestrate EShop Modular App in Docker-Compose
  • Introduction - Containerize and Orchestrate EShop Modular App in Docker-Compose 1:12
  • EShop Modular Monolith Deployment Strategy 1:25
  • Add Asp.Net Api project into Docker-compose file for Multi-container Docker Env 2:44
  • Set Environment Variables of Api Project Configurations according to appsettings 9:57
  • TEST ALL - Docker-compose All with Api Project and Backing Services 7:31
  • TEST Basket Module - Docker-compose All with Api Project 7:25
  • TEST CheckoutBasket w/ RabbitMQ and Ordering Module - Docker-compose All w/ Api 4:26
  • TEST Ordering Module - Docker-compose All with Api Project 1:44
  • Client Apps - Consume Api Module in EShop Modules 5:21
Chương 27 Migrating to Microservices: EShop Modules to Microservices w/ Strangler Fig
  • Migrating to Microservices: Challenges and Considerations 2:35
  • Strangler Fig Pattern for Refactoring Monolith into Microservices 2:17
  • Steps of Refactoring Monolith into Microservices 0:52
  • Step 1: Decompose EShop Modules to Microservices with DDD Bounded Contexts 0:50
  • Step 2: Prioritize Modules-Services for Migration 0:49
  • Step 3: Extract a Service from a Monolith 0:50
  • Step 4: Manage a Monolithic Database 1:00
  • Step 5: Design and Implement Interservice Communication 1:45
  • Step 6: Async Communication Between Services 1:12
  • Step 7: Distributed Transactions and Data Consistency 1:00
  • Step 8: Deployment of Microservices after Monolithic 1:28
  • .NET 8 Microservices: DDD, CQRS, Vertical/Clean Architecture - course 2:31
Chương 28 Thanks
  • Thanks 0:58

Requirment

  • Basics of C# and programming

Outcomes

  • Modular Monoliths (Modulith) Architecture

  • Vertical Slice Architecture (VSA)

  • Domain-Driven Design (DDD)

  • Command Query Responsibility Segregation (CQRS)

  • Outbox Pattern for Reliable Messaging

  • CQRS (Command Query Responsibility Segregation) and Vertical Slice architectures for module development

  • Communicate over In-process method calls-public APIs and use RabbitMQ for event-driven communication

  • Secure APIs with Keycloak, using OpenID Connect and Bearer Tokens

  • ASPNET Core Minimal APIs and latest features of .Net8 and C# 12

  • Vertical Slice Architecture implementation with Feature folders

  • DDD, CQRS Patterns using MediatR library w/ following Best Practices

  • Use Domain Events & Integration Events when UpdatePriceChanged event

  • Use Entity Framework Core Code-First Approach and Migrations on PostgreSQL Database

  • Cross-cutting Concerns including Logging with Serilog, Validation with MediatR Pipeline Behaviors, Exceptions, Pagination

  • Using Redis as a Distributed Cache over PostgreSQL database

  • Develop Proxy, Decorator and Cache-aside patterns

  • Sync Communications between Catalog and Basket Modules w/ In-process Method Calls (Public APIs)

  • Async Communications between Modules w/ RabbitMQ & MassTransit

  • Develop User Identity Module with Keycloak Authentication

  • OAuth2 + OpenID Connect Flows with Keycloak

  • Outbox Pattern For Reliable Messaging w/ BasketCheckout Use Case

  • Publish BasketCheckoutEvent to RabbitMQ via MassTransit library, Consume from Ordering Module

  • Migrating to Microservices: EShop Modules to Microservices w/ Stranger Fig Pattern

Instructor

...
Mehmet Ozkaya

0.0

  • ... 0 Student
  • ... 12 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all