FEAT: Implementation of transactional outbox.#96
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements a transactional outbox pattern using MassTransit's Entity Framework Core integration to ensure reliable message publishing alongside database transactions.
Key changes:
- Adds MassTransit Entity Framework Core outbox configuration to both API and Worker projects
- Updates database schema with outbox and inbox state tables through EF Core migrations
- Modifies message publishing order to occur before database save operations
Reviewed Changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| Program.cs (Worker) | Configures Entity Framework outbox with SQL Server and duplicate detection |
| Program.cs (API) | Adds outbox configuration with disabled inbox cleanup for API project |
| AppDbContext.cs | Adds transactional outbox entities to the model |
| CreateProduct.cs | Reorders operations to publish messages before saving entities |
| Directory.Packages.props | Adds MassTransit.EntityFrameworkCore package dependency |
| Migration files | Adds database tables for outbox/inbox state management |
Files not reviewed (1)
- src/Content/Backend/Solution/Monaco.Template.Backend.Application/Persistence/Migrations/20250828213955_Init.Designer.cs: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...ntent/Backend/Solution/Monaco.Template.Backend.Application/Features/Product/CreateProduct.cs
Show resolved
Hide resolved
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
matthewtoghill
approved these changes
Aug 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implementation of transactional outbox with MassTransit
Related Issue
Closes #95
How Has This Been Tested?
Existing test suite covers it.
Types of changes
Checklist: