OrleansContrib / Orleans.Sagas

A distributed saga implementation for Orleans
MIT License
150 stars 28 forks source link

Expose configuration to define scheduling context on which an activity runs #28

Closed creyke closed 3 years ago

creyke commented 4 years ago

Users requiring one or more of their activities to execute on a .NET thread pool thread, rather than via the Orleans task scheduler, should be able to express this per activity.

This is common if heavy compute is required, and/or if the user has no interest in interacting with the Orleans runtime from within their activity.

Example:

public class ArbitraryActivity : Activity<ArbitraryConfig>
{
    public void OnConfigure(ActivityConfig config)
    {
        config.ExecuteOnThreadPool = true;
    }
}
creyke commented 3 years ago

Current consumers have not expressed desire for this / dismissed it.