From 36c8b15620303e0e497fc4178f546bce3bed9c89 Mon Sep 17 00:00:00 2001 From: hello Date: Fri, 30 Aug 2024 15:06:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/ordering-service.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/notes/helloshop/ordering-service.md b/notes/helloshop/ordering-service.md index 782cb7f..1b34b4c 100644 --- a/notes/helloshop/ordering-service.md +++ b/notes/helloshop/ordering-service.md @@ -69,8 +69,7 @@ builder.Services.AddMediatR(options => options.RegisterServicesFromAssembly(Asse ``` ## 使用 Mediator 请求管道处理 CQRS 中的命令 - -![ordering-service-identified-command](https://oss.xcode.me/notes/helloshop/ordering-service-identified-command.svg) += `LoggingBehavior`、`ValidatorBehavior` 和 `TransactionBehavior` @@ -92,6 +91,12 @@ builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(ValidatorBehavio builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(TransactionBehavior<,>)); ``` +## 消息去重机制 + + +![ordering-service-identified-command](https://oss.xcode.me/notes/helloshop/ordering-service-identified-command.svg) + + ## 实现 CQRS 中的 Query 模式 ```csharp