[PERF] Optimize Message Handling in IWorkflowInbox
to Reduce Workflow Dispatch Latency
#5241
Labels
Milestone
IWorkflowInbox
to Reduce Workflow Dispatch Latency
#5241
When initiating multiple dispatched workflows concurrently, there is a significant delay before all workflows are processed. This delay appears to stem from excessive messaging within the
IWorkflowInbox
service, which is tasked with broadcasting events to resume theDispatchWorkflow
activity.Issue Details:
Proposed Solution:
To alleviate the processing delay and optimize system performance, we should modify the
IWorkflowInbox
service to conditionally send messages. Specifically, the service should check for the presence of relevant bookmarks in the database before issuing messages. This change aims to prevent the queue from being filled with redundant messages that do not contribute to workflow processing.Expected Benefits:
This optimization should lead to a more responsive and efficient workflow dispatch mechanism, enhancing overall system performance.
The text was updated successfully, but these errors were encountered: