dapr / dapr/dotnet-sdk

Outbox pattern with EF Core

Open
#1,494 2 comments 0 reactions 0 assignees View on GitHub
area/client/state kind/enhancement
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
2d 1h
Merged PRs (30d)
6

Description

We have a typical RESTful API using SQL Server and Azure Service Bus.

Our architecture leverages EF Core with a rich domain model, and we aim to publish events (e.g., OrderSubmitted, OrderAccepted, OrderRejected) using the Outbox pattern.

Can Dapr be used to integrate with the Outbox pattern & EF Core?

It's not clear how this can be achieved in combination of the `SaveChangesAsync` of `DbContext` and `ExecuteStateTransactionAsync` of `DaprClient`?

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files or tests. Start by tracing how EF Core's SaveChangesAsync and DaprClient's ExecuteStateTransactionAsync are expected to interact, then identify whether an atomic outbox integration is supported or needs a new design. Done would require a concrete, documented integration path or a confirmed limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, sql
Domain
backend, cloud, databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.