Orders are a critical part of the system. We must ensure that when an Order is created the event will get propagated.
There are a few steps to achieve this:
- Create a table/collection to store the outbox messages
- the insertion on outbox table/collection must happen in a transaction within the creation of the order
- We need a background processor that will read that table or collection and publish the message, once the message is published, the record must be updated, marking the event as sent.
- Don't forget to Add unit tests
Feel free to modfiy any part of the system, but ensure that you are not causing breaking changes.
The event it is being generated in here right now: https://github.com/ElectNewt/Distribt/blob/main/src/Services/Orders/Distribt.Services.Orders/Services/CreateOrderService.cs#L42
Orders are a critical part of the system. We must ensure that when an Order is created the event will get propagated.
There are a few steps to achieve this:
Feel free to modfiy any part of the system, but ensure that you are not causing breaking changes.
The event it is being generated in here right now: https://github.com/ElectNewt/Distribt/blob/main/src/Services/Orders/Distribt.Services.Orders/Services/CreateOrderService.cs#L42