.Net ile Microservice Design Patterns

所在平台: Udemy

课程主页: https://www.udemy.com/course/net-ile-microservice-design-patterns/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:.Net与微服务设计模式 概述:本课程将深入探讨微服务架构中常用的五种设计模式,所有示例均使用Asp.Net Core API(.Net 5.0)进行开发。课程内容包括: 1. **Saga设计模式**:该模式用于管理分布式事务场景中微服务的数据一致性。Saga 是一系列事务的序列,每个服务在更新后会发布消息或事件以触发下一个事务步骤。如果某个步骤失败,Saga 会执行补偿事务以抵消之前的事务。 2. **事件溯源模式**:与只存储数据当前状态不同,本模式使用仅追加存储来记录对数据所采取的完整操作系列。该存储作为系统的记录来源,可用于实例化领域对象,这能简化复杂领域中的任务,避免数据模型与业务领域之间的同步需要,提高性能、可扩展性和响应速度,并为事务性数据提供一致性,维护完整的审计和历史记录,从而支持补偿操作。 3. **重试模式**:使应用程序能够处理在尝试连接服务或网络资源时出现的瞬态故障,通过透明地重试失败的操作来提高应用程序的稳定性。 4. **断路器模式**:处理可能需要可变时间段来恢复的故障,在连接远程服务或资源时,这种模式可提高应用程序的稳定性和弹性。 5. **API组合模式**:该模式使用API组合器或聚合器,通过调用各个拥有数据的微服务来实现查询。然后通过在内存中连接结果来组合这些结果。 本课程将通过实际的代码示例帮助学员掌握这些设计模式,以便在微服务开发中应用。

课程评论(0条)

课程详情

Bu kursumda, microservice mimarilerde kullanabileceğimiz 5 tane design pattern yapısını öğreniyor olacaksıız.Tüm örnekleri Asp.Net Core API (Net 5.0) ile geliştiriyor olacağız.Design patterns:Saga Design Pattern:Saga design pattern is a way to manage data consistency across microservices in distributed transaction scenarios. A saga is a sequence of transactions that updates each service and publishes a message or event to trigger the next transaction step. If a step fails, the saga executes compensating transactions that counteract the preceding transactions.Event Sourcing Pattern:Instead of storing just the current state of the data in a domain, use an append-only store to record the full series of actions taken on that data. The store acts as the system of record and can be used to materialize the domain objects. This can simplify tasks in complex domains, by avoiding the need to synchronize the data model and the business domain, while improving performance, scalability, and responsiveness. It can also provide consistency for transactional data, and maintain full audit trails and history that can enable compensating actions.Retry PatternEnable an application to handle transient failures when it tries to connect to a service or network resource, by transparently retrying a failed operation. This can improve the stability of the application.Circuit Breaker PatternHandle faults that might take a variable amount of time to recover from, when connecting to a remote service or resource. This can improve the stability and resiliency of an application.API Composition PatternThis pattern uses an API composer, or aggregator, to implement a query by invoking individual microservices that own the data. It then combines the results by performing an in-memory join

课程标签

0人关注该课程

主题相关的课程