|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/java-microservices-cqrs-event-sourcing-with-kafka/
课程评论:没有评论
**课程名称:Java 微服务:CQRS & 事件溯源 (Event Sourcing) 结合 Kafka** **课程概述:** 本课程将深入讲解如何使用 Spring Boot 构建符合 CQRS(命令查询职责分离)和事件溯源模式的微服务。学员将从零开始,不依赖任何现成的 CQRS 框架,而是亲手编写所有必要代码,使用 Java 和 Apache Kafka 来构建自己的 CQRS 和事件溯源框架。课程将循序渐进地指导学员,帮助他们掌握相关技能,成为 CQRS 和事件溯源的专家。 **课程目标:** 完成本课程后,学员将能够: * 处理命令并发布事件。 * 使用 Mediator 模式实现命令和查询分发器。 * 通过事件消息创建和修改聚合(Aggregate)的状态。 * 在 MongoDB 中实现事件存储/写入数据库。 * 在 MySQL 中创建读取数据库。 * 应用事件版本管理。 * 实现乐观并发控制。 * 将事件发布到 Apache Kafka。 * 从 Apache Kafka 消费事件,以填充和更新读取数据库。 * 重放事件存储,重新创建聚合的状态。 * 分离读写关注点。 * 使用领域驱动设计 (DDD) 的最佳实践来组织代码。 * 重放事件存储,重新创建整个读取数据库。 * 将事件存储重放到不同类型的数据库(如 PostgreSQL)以重建整个读取数据库。 **核心价值:** 本课程的最终目标是让学员深入理解 CQRS 和事件溯源的世界,从而能够构建高度解耦且极具扩展性的微服务。
In this course you will learn how to create Spring Boot microservices that comply to 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 Java 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 MySQL.Apply event versioning.Implement optimistic concurrency control.Produce events to Apache Kafka.Consume events from Apache Kafka to populate and alter 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.