Skip to content

Implementate outbox pattern in the orders microservice #43

Description

@ElectNewt

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:

  1. Create a table/collection to store the outbox messages
  2. the insertion on outbox table/collection must happen in a transaction within the creation of the order
  3. 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.
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions