Azure / durabletask

Durable Task Framework allows users to write long running persistent workflows in C# using the async/await capabilities.
Apache License 2.0
1.47k stars 287 forks source link

DTFxClient.GetOrchestrationStateAsync() takes longer than expected #1037

Open shadanMS opened 4 months ago

shadanMS commented 4 months ago

Hey, we are using DTFX for async job, but we are getting significant latency while creating orchestration instances.

"Task task = DTFxClient.CreateOrchestrationInstanceAsync( NameVersionHelper.GetDefaultName(orchestrationType), NameVersionHelper.GetDefaultVersion(orchestrationType), instanceId, input, tags, dedupeStatuses);

var result = await task;"

We are awaiting on the task so that it can give guaranty to the caller that instances have been queued. But that await is causing latency to shoot up as in worst case we are getting max delay of 3 to 5 mint for this task to finish.