|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/net-microservices-cqrs-event-sourcing-with-kafka/
课程评论:没有评论
**课程名称:.NET 微服务:CQRS 与事件溯源(结合 Kafka)** **课程概述:** 本课程专注于教授如何利用 .NET 构建符合 CQRS(命令查询职责分离)和事件溯源(Event Sourcing)模式的微服务。与依赖现有框架不同,我们将从零开始,使用 C# 和 Apache Kafka 手写实现一套完整的 CQRS 和事件溯源框架。虽然这可能听起来颇具挑战,但课程将提供详细的步骤指导,帮助您掌握所需知识和技能,成为 CQRS 和事件溯源领域的专家。 **课程内容亮点:** * **命令与事件处理:** 学习如何处理命令并触发事件。 * **Mediator 模式应用:** 使用 Mediator 模式实现命令和查询的调度。 * **聚合体状态管理:** 通过事件消息创建和修改聚合体(Aggregate)的状态。 * **事件存储实现:** 在 MongoDB 中实现事件存储/写数据库。 * **读库构建:** 在 MS SQL Server 中创建读数据库。 * **事件版本控制:** 应用事件版本控制策略。 * **乐观并发控制:** 实现乐观并发控制机制。 * **Apache Kafka 集成:** * 将事件发布到 Apache Kafka。 * 从 Kafka 消费事件,以填充和更新读数据库中的记录。 * **事件重放:** * 重放事件存储,重新创建聚合体的状态。 * 重放事件存储,将整个读数据库重建到新的数据库类型(例如 PostgreSQL)中。 * **架构与实践:** * 实现读写关注点的分离。 * 运用领域驱动设计(Domain-Driven Design, DDD)的最佳实践来组织代码。 **课程最终目标:** 深入理解 CQRS 和事件溯源的精髓,从而构建高度解耦、极致可扩展的微服务。
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.