How to run using multiple instances and running parallel activities #5080
Replies: 2 comments 5 replies
-
Based on the information provided and the context from the sources, it seems you are trying to set up a distributed workflow using Elsa 3 with parallel execution of activities across multiple instances of a microservice architecture. Your setup includes Entity Framework Core for persistence and MassTransit with Azure Service Bus for message dispatching. Here are some points to consider and steps to potentially resolve your issues:
In summary, your approach is valid, but you may need to adjust your configuration and ensure that your activities are set up for distributed execution. Review the documentation and examples for distributed workflows with Elsa 3, and consider reaching out to the community for additional support. |
Beta Was this translation helpful? Give feedback.
-
Parallel Task Orchestration with ELSA 3.0 Parallel Task Orchestration is not similar to Microservice Orchestration |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use Elsa 3 to create a workflow for some import and processing activities of data in a multi-instance environment (microservice-architecture with multiple running stateless instances). I want to create a workflow which imports data from several external API's. These import activities should be scheduled and ran in parallel. After those data import activities are finished, it should then run several processing activities in parallel. It would be really nice if those activities are then ran across all the instances.
I've read this Medium article by @sfmskywalker which sparked my interest as to that this would be possible using Elsa 3. However, I've not been able to create a working prototype, using both MassTransit and EFCore.SqlServer.
For simplicity sake, I've created a dummy activity which would mimic a long running import task.
This is my current setup:
Startup.cs
DummyActivity.cs
WorkflowController.cs
Current outcome and questions:
I hope someone can help me shed some light on whether this is possible and how I could accomplish this.
Beta Was this translation helpful? Give feedback.
All reactions