Ưu đãi trong tuần: Nhập mã UD50 giảm 50k cho đơn từ 300k!
Trang chủ
Menu

.NET Microservices: CQRS & Event Sourcing with Kafka

.NET Microservices: CQRS & Event Sourcing với Kafka

.NET Microservices: CQRS & Event Sourcing với Kafka

Học cách tạo microservices bằng C# dựa trên CQRS và Event Sourcing. Được hỗ trợ bởi .NET và Apache Kafka.

4.4
(1,716 đánh giá)
10,580 học viên
Giảng viên
Sean Campbell
Phụ đề Việt chất lượng cao Phụ đề tiếng Anh Bán chạy Đánh giá cao
50.000đ 349.000đ -86%
✓ Xem giỏ hàng và thanh toán
Bao gồm phụ đề tiếng Việt, tiếng Anh
8.5 giờ video
91 bài giảng
16 bài quiz
Truy cập vĩnh viễn
Học trên mọi thiết bị
Cập nhật: 30/05/2026

Bạn sẽ học được gì

CQRS
Event Sourcing
Cách Tạo Microservices bằng C# với .NET
Tạo Microservices Định Hướng DDD
Sử Dụng Apache Kafka làm Message Bus
Tạo Event Store với MongoDB
Kiểm Soát Tranh Chấp Lạc Quan (Optimistic Concurrency Control)
Phiên Bản Hóa Sự Kiện (Event Versioning)
Dùng Microsoft SQL để Triển Khai Read Database
Phát Lại Event Store và Tái Tạo Trạng Thái Aggregate
Phát Lại Event Store và Tái Tạo Toàn Bộ Read Database
Phát Lại Event Store và Tái Tạo Read Database sang Một Loại Cơ Sở Dữ Liệu Khác - PostgreSQL
Triển Khai Mô Hình Database-Per-Service
Entity Framework Core (MS SQL và PostgreSQL)
Dependency Injection
Docker

Yêu cầu

Cần có một số kinh nghiệm với C#

Đối tượng phù hợp

Kỹ Sư Phần Mềm
Nhà Phát Triển Phần Mềm
Kiến Trúc Sư Phần Mềm
Kỹ Sư Điện Toán Đám Mây
Kiến Trúc Sư Giải Pháp

Nội dung khóa học

17 phần • 91 bài giảng
1 Kiến Thức Cơ Bản về Microservices
2 CQRS
3 Event Sourcing
4 Tổng Quan Kiến Trúc
5 Apache Kafka
1 Giới Thiệu Phần Thiết Lập & Cấu Trúc
2 Điều Kiện Tiên Quyết
3 Chạy Kafka trong Docker
4 Chạy MongoDB trong Docker
5 Chạy Microsoft SQL trong Docker.
6 Thiết Lập Dự Án Cơ Bản
7 Thêm Tham Chiếu Dự Án
8 Thêm Gói NuGet
9 Thiết Lập Cấu Hình Debug (Chỉ VS Code)
1 Command là gì?
2 Các Command
3 Event là gì?
4 Các Event
1 Mẫu Mediator
2 Giao Diện ICommandDispatcher (Mediator)
3 CommandDispatcher (Mediator Cụ Thể)
1 Aggregate là gì?
2 AggregateRoot
3 PostAggregate Phần 1
4 PostAggregate Phần 2
1 Event Store là gì?
2 EventModel
3 Giao Diện IEventStoreRepository
4 EventStoreRepository
5 Giao Diện IEventStore
6 EventStore
7 Giao Diện IEventSourcingHandler
8 EventSourcingHandler
1 Tiếp Tục Mẫu Mediator
2 Giao Diện ICommandHandler (Abstract Colleague)
3 CommandHandler (Concrete Colleague)
4 Đăng Ký Command Handlers
1 Kafka Producer
2 Giao Diện & Triển Khai EventProducer
3 Tạo Ra Một Event (Producing an Event)
1 Các Khái Niệm DDD Quan Trọng
2 Domain Entities
3 Giao Diện IPostRepository
4 Giao Diện ICommentRepository
1 Read Database
2 DatabaseContext
3 Tạo DB & Bảng Tự Động Khi Khởi Chạy
4 PostRepository
5 CommentRepository
1 Giới Thiệu Xử Lý Event
2 Giao Diện IEventHandler
3 EventHandler
1 Kafka Consumer
2 Giao Diện IEventConsumer
3 EventJsonConverter
4 EventConsumer
5 ConsumerHostedService
1 Giới Thiệu Command Controllers
2 Data Transfer Objects
3 NewPostController
4 Tạo Một Bài Đăng Mạng Xã Hội Mới
5 EditMessageController
6 Chỉnh Sửa Nội Dung Bài Đăng Mạng Xã Hội
7 LikePostController
8 Thích Một Bài Đăng Mạng Xã Hội
9 AddCommentController
10 Thêm Bình Luận Vào Bài Đăng Mạng Xã Hội
11 EditCommentController
12 Chỉnh Sửa Bình Luận Trên Bài Đăng Mạng Xã Hội
13 RemoveCommentController
14 Xóa Bình Luận Khỏi Bài Đăng Mạng Xã Hội
15 DeletePostController
16 Xóa Một Bài Đăng Mạng Xã Hội
1 Mẫu Mediator (Phân Phối Truy Vấn)
2 Các Truy Vấn Mạng Xã Hội
3 Giao Diện IQueryDispatcher (Mediator)
4 QueryDispatcher (Mediator Cụ Thể)
1 Giới Thiệu Xử Lý Truy Vấn
2 Giao Diện IQueryHandler (Abstract Colleague)
3 QueryHandler (Concrete Colleague)
4 Đăng Ký Query Handlers
1 Giới Thiệu Query Controller
2 Data Transfer Objects
3 PostLookupController Phần 1
4 PostLookupController Phần 2
5 Kiểm Thử PostLookupController
1 Giới Thiệu Phần Kết Thúc Ấn Tượng
2 Tạo Chức Năng Khôi Phục Read Database
3 Khôi Phục Toàn Bộ Read Database
4 Thay Đổi Nhanh Loại Read Database
5 Chúc Mừng

Giới thiệu khóa học

In this course, you will learn how to create .NET microservices that comply with the CQRS and Event Sourcing patterns.

You will not use any CQRS framework, but you will write every line of code that is required to effectively create your own CQRS and Event Sourcing framework using C# and Apache Kafka. While this might sound a little daunting, you will be carefully guided step by step, and gain all the know-how and confidence to become an expert in CQRS and Event Sourcing.

By the end of this course, you will know how to:

  • Handle commands and raise events.

  • Use the mediator pattern to implement command and query dispatchers.

  • Create and change the state of an aggregate with event messages.

  • Implement an event store / write database in MongoDB.

  • Create a read database in MS SQL.

  • Apply event versioning.

  • Implement optimistic concurrency control.

  • Produce events to Apache Kafka.

  • Consume events from Apache Kafka to populate and alter records in the read database.

  • Replay the event store and recreate the state of the aggregate.

  • Separate read and write concerns.

  • Structure your code using Domain-Driven-Design best practices.

  • Replay the event store to recreate the entire read database.

  • Replay the event store to recreate the entire read database into a different database type - PostgreSQL.

The ultimate goal of this course is to take a deep-dive into the world of CQRS and Event Sourcing to enable you to create microservices that are super decoupled and extremely scalable.

Khóa học liên quan

Khám phá thêm các khoá học cùng chủ đề

Hiển thị tất cả khoá học Backend Development
Hiển thị tất cả khoá học Dotnet
Hiển thị tất cả khoá học Kafka
Hiển thị tất cả khoá học Software Development
Zalo
Tôi có thể tư vấn khoá học cho bạn 😊