dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
10.06k stars 2.03k forks source link

After the orleans transaction is committed, some tasks need to be processed. How should this be done? #7883

Open HermesNew opened 2 years ago

HermesNew commented 2 years ago

After the orleans transaction committed,We will do some other task. I have no way of knowing the result of the execution of the transaction. It is also impossible to judge whether the transaction was successful or not. How should this be handled?Can you provide some suggestions?

ghost commented 2 years ago

We're moving this issue to the 4.0-Planning milestone for future evaluation / consideration. Because it's not immediately obvious that this is a bug in our framework, we would like to keep this around to collect more feedback, which can later help us determine the impact of it. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues.

ElanHasson commented 2 years ago

Hi @HermesNew,

This new functionality may be what you're looking for: https://github.com/dotnet/orleans/pull/7805

Keep in mind it is available only in 4.0.

HermesNew commented 2 years ago

@ElanHasson In fact, orleans transaction already has a TransactionAgent, but there is no callback method after the transaction is completed. I think just implement ITransactionAgent and replace the original implementation.

HermesNew commented 2 years ago

7805

This solution is great implementation, just don't know when it will be integrated into the version.

ElanHasson commented 2 years ago

I don't think it'll be in 3.x :(