This demo uses NServiceBus as messaging, Azure Service Bus as transport and Azure Table Storage as persistence.
It is created to demo commands, events, saga's and versioning of messages.
Use the servicebus-topology.ps1 to create the Service Bus namespace, storage account, endpoints and subscriptions.
- The rest api places an order.
- The sales functions app handles the
PlaceOrderV1andPlaceOrderV2commands.- In case of the
PlaceOrderV2command it contacts CRM via a HttpClient
- In case of the
- The sales functions app publishes an
OrderPlacedevent. - The billing functions app handles the
OrderPlacedevent and creates a Blob. - The billing functions app publishes an
OrderBilledevent. - The shipping console app uses a saga to complete the shipping policy based on both the
OrderPlacedand theOrderBilledevents.
