Skip to content

This repository demonstrates the Transactional Outbox Pattern implemented with MassTransit

License

Notifications You must be signed in to change notification settings

ANasouf/masstransit-tansactional-outbox-demo

Repository files navigation

MassTransit Transactional Outbox Demo

This repository demonstrates a simple implementation of MassTransit's Transactional Outbox pattern in a .NET solution. The solution consists of two projects: Publisher and Consumer. The Publisher project publishes messages to a message queue, and the Consumer project processes those messages.

Getting Started

Prerequisites

  • .NET SDK (version 8 or higher)
  • Docker (for running rabbitmq, sql server)

Running the Demo

  1. Clone this repository:

    git clone https://github.com/yourusername/masstransit-transactional-outbox-demo.git
  2. Run docker compose:

    docker compose up -d
  3. Uppdate database migrations:

    dotnet ef database update -s Publisher
    dotnet ef database update -s Consumer
  4. Run both projects:

    dotnet run --project Publisher
    dotnet run --project Consumer

About

This repository demonstrates the Transactional Outbox Pattern implemented with MassTransit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages