From the course: Advanced Azure Microservices with .NET for Developers
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Storing the data from the integration event - Azure Tutorial
From the course: Advanced Azure Microservices with .NET for Developers
Storing the data from the integration event
- [Instructor] At this moment, we're receiving messages from the subscription set in Azure Service Bus. Now we'll start event data in the Rescue database because of that, we're going to create a new table named RescuedAnimalsMetadata that stores the Pet information that we're receiving. So let's jump right in. So here in Visual Studio, I'm going to open this RescueDbContext class, because we're going to have another property of type DbSet of PetFlaggedForAdoptionIntegrationEvent, which is a tag that we're receiving from Azure Service Bus. And this is going to be RescuedAnimalsMetadata. Excellent. So now let's open up these PetFlaggedForAdoptionIntegrationEventHandler class, because I want to add the RescuedAnimalsMetadata, and also I'm going to store the state of the RescuedAnimal that belongs to these Rescue domain model. This is important to remind you that you don't have to use the repository pattern always, also, I…
Contents
-
-
-
Event-driven architecture primer4m 34s
-
Handling the domain event and creating the integration event4m 21s
-
(Locked)
Publishing the integration event to Azure Service Bus6m 37s
-
(Locked)
Consuming the integration event from Azure Service Bus6m 55s
-
(Locked)
Storing the data from the integration event5m 13s
-
(Locked)
Challenge: Perform asynchronous communication using events1m 4s
-
(Locked)
Solution: Perform asynchronous communication using events8m 11s
-
-
-
-
-
-