Posted 2 Days Ago Job ID: 2100643 15 quotes received

MassTransit Outbox Pattern in Docker

Fixed PriceUnder $250
Quotes (15)  ·  Premium Quotes (0)  ·  Invited (0)  ·  Hired (1)

  Send before: February 25, 2025

Send a Quote

These are 2 C# apps, a publisher and subscriber, both using MassTransit and PostgreSQL. This worked when I ran "docker compose up", until I tried adding the outbox pattern with Entity Framework. I'm looking for minimal changes to the apps, to get it working again when I run "docker compose up" with the outbox pattern working in both apps. The change I made from the working non-outbox version is...

- Line 51 of C2C.Publisher/Program.cs

- New file C2C.Publisher/AppDbContext.cs

- Line 59 of C2C.Subscriber/Program.cs

- New file C2C.Subscriber/AppDbContext.cs

This job is to get the outbox pattern with Entity Framework working in the Publisher and the outbox DuplicateDetectionWindow working in the Subscriber. Hopefully with minimal code changes. Verification is we will be able to see outbox tables and data in the PostgreSQL database, and the logging of messages being sent and received will be seen on the console log.

Attached is the full code.

... Show more
Jason W United States