v
Contents
Subscribing to events ........................................................................................................................................................ 141
Publishing events through the event bus............................................................................................................. 142
Idempotency in update message events .............................................................................................................. 149
Deduplicating integration event messages ......................................................................................................... 150
Testing ASP.NET Core services and web apps ........................................................................................................ 152
Testing in eShopOnContainers ................................................................................................................................. 155
Implement background tasks in microservices with IHostedService and
the BackgroundService class
.................................................................................................................................................................................................... 157
Registering hosted services in your WebHost or Host ................................................................................... 159
The IHostedService interface ..................................................................................................................................... 159
Implementing IHostedService with a custom hosted service class
deriving from the
BackgroundService base class................................................................................................................................... 160
Additional resources ..................................................................................................................................................... 163
Implement API Gateways with Ocelot ........................................................................................................................ 163
Architect and design your API Gateways .............................................................................................................. 163
Implementing your API Gateways with Ocelot .................................................................................................. 168
Using Kubernetes Ingress plus Ocelot API Gateways ...................................................................................... 180
Additional cross-cutting features in an Ocelot API Gateway ....................................................................... 181
Dostları ilə paylaş: