Running Parallel Workflows for Simultaneous Image Generation in WeWeb
I’ve implemented an image generator that sends requests to a server with 10-15 second response times. My current workflow structure:
- Prepares the request
- Sends it to the server
- Shows the generated image to the user upon response
My requirement: Allow users to generate multiple images simultaneously using the same workflow logic in parallel.
What I’ve tried: I attempted using loops, but discovered they run synchronously (each request only begins after the previous completes), which doesn’t achieve the parallel processing I need.
Technical question: How can I trigger multiple instances of the same workflow to run concurrently in WeWeb? Are there any patterns or techniques to manage parallel execution of identical workflows?