Skip to content

Commit c4502e6

Browse files
committed
add more pictures
1 parent c3a67ce commit c4502e6

File tree

13 files changed

+53
-16
lines changed

13 files changed

+53
-16
lines changed

AuditCenter/AuditCenter.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<TargetFramework>net6.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<EnablePreviewFeatures>True</EnablePreviewFeatures>
7+
<!-- gRPC - http3 -->
8+
<!-- <EnablePreviewFeatures>True</EnablePreviewFeatures> -->
89
</PropertyGroup>
910

1011
<ItemGroup>

AuditCenter/Program.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111
builder.Services.AddGrpc();
1212
builder.WebHost.ConfigureKestrel((context, options) =>
1313
{
14-
/*options.Listen(IPAddress.Any, 5006, listenOptions =>
14+
options.Listen(IPAddress.Any, 5006, listenOptions =>
1515
{
1616
listenOptions.Protocols = HttpProtocols.Http2;
1717
listenOptions.UseHttps();
18-
});*/
18+
});
1919

20+
// gRPC - http3
2021
// https://devblogs.microsoft.com/dotnet/http-3-support-in-dotnet-6/
21-
options.Listen(IPAddress.Any, 5006, listenOptions =>
22-
{
23-
listenOptions.Protocols = HttpProtocols.Http3;
24-
listenOptions.UseHttps();
25-
});
22+
// options.Listen(IPAddress.Any, 5006, listenOptions =>
23+
// {
24+
// listenOptions.Protocols = HttpProtocols.Http3;
25+
// listenOptions.UseHttps();
26+
// });
2627
});
2728

2829
var app = builder.Build();

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ POSTGRES_USER=northwind
1111
POSTGRES_PASSWORD=<your password>
1212
POSTGRES_DB=northwind_db
1313

14+
ACCEPT_EULA=Y
15+
1416
ConnectionStrings__northwind_db=Server=localhost;Port=5432;Database=northwind_db;User Id=northwind;Password=<your password>;
1517
Kafka__BootstrapServers=localhost:9092
1618
Kafka__SchemaRegistryUrl=http://localhost:8081
@@ -24,8 +26,26 @@ And now you are ready to start it
2426
> dotnet watch run // for Blazor Web
2527
```
2628

29+
# Business contexts / Boundary contexts
30+
31+
![](_assets/boundary_contexts.png)
32+
33+
# Inter-communication
34+
35+
## Synchronous communication via gateway
36+
37+
![](_assets/intercomm_sync.png)
38+
39+
## Asynchronous communication via message broker
40+
41+
![](_assets/intercomm_async.png)
42+
2743
# Workflow
2844

45+
- Full Sagas workflow
46+
47+
![](_assets/full_sagas_wf.png)
48+
2949
- Order workflow
3050

3151
![](_assets/order_wf.png)

SalePayment/Extensions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ public static IServiceCollection AddGrpcClients(this IServiceCollection services
5050
})
5151
.ConfigureChannel(options =>
5252
{
53-
options.HttpHandler = new Http3Handler(new HttpClientHandler());
53+
// gRPC - http3
54+
// options.HttpHandler = new Http3Handler(new HttpClientHandler());
55+
56+
var httpHandler = new HttpClientHandler();
57+
httpHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
58+
options.HttpHandler = httpHandler;
5459
})
5560
.EnableCallContextPropagation(o => o.SuppressContextNotFoundErrors = true);
5661

SalePayment/SalePayment.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Grpc.AspNetCore" Version="2.40.0" />
20-
<RuntimeHostConfigurationOption Include="System.Net.SocketsHttpHandler.Http3Support" Value="true" />
20+
<!-- gRPC - http3 -->
21+
<!-- <RuntimeHostConfigurationOption Include="System.Net.SocketsHttpHandler.Http3Support" Value="true" /> -->
2122
<Protobuf Include="..\shared\Northwind.IntegrationEvents\proto\northwind\audit\v1\audit.proto" Link="Protos\audit.proto" AdditionalImportDirs="..\shared\Northwind.IntegrationEvents\proto\" />
2223
<Protobuf Include="..\shared\Northwind.IntegrationEvents\proto\northwind\audit\v1\audit_api.proto" Link="Protos\audit_api.proto" AdditionalImportDirs="..\shared\Northwind.IntegrationEvents\proto\" GrpcServices="Client" />
2324
</ItemGroup>

Shipping/Extensions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ public static IServiceCollection AddGrpcClients(this IServiceCollection services
4444
})
4545
.ConfigureChannel(options =>
4646
{
47-
options.HttpHandler = new Http3Handler(new HttpClientHandler());
47+
// gRPC - http3
48+
// options.HttpHandler = new Http3Handler(new HttpClientHandler());
49+
50+
var httpHandler = new HttpClientHandler();
51+
httpHandler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
52+
options.HttpHandler = httpHandler;
4853
})
4954
.EnableCallContextPropagation(o => o.SuppressContextNotFoundErrors = true);
5055

Shipping/Shipping.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
<ItemGroup>
2020
<PackageReference Include="Grpc.AspNetCore" Version="2.40.0" />
21-
<RuntimeHostConfigurationOption Include="System.Net.SocketsHttpHandler.Http3Support" Value="true" />
21+
<!-- gRPC - http3 -->
22+
<!-- <RuntimeHostConfigurationOption Include="System.Net.SocketsHttpHandler.Http3Support" Value="true" /> -->
2223
<Protobuf Include="..\shared\Northwind.IntegrationEvents\proto\northwind\audit\v1\audit.proto" Link="Protos\audit.proto" AdditionalImportDirs="..\shared\Northwind.IntegrationEvents\proto\" />
2324
<Protobuf Include="..\shared\Northwind.IntegrationEvents\proto\northwind\audit\v1\audit_api.proto" Link="Protos\audit_api.proto" AdditionalImportDirs="..\shared\Northwind.IntegrationEvents\proto\" GrpcServices="Client" />
2425
</ItemGroup>

_assets/boundary_contexts.png

208 KB
Loading

_assets/full_sagas_wf.png

1.06 MB
Loading

_assets/intercomm_async.png

476 KB
Loading

0 commit comments

Comments
 (0)