When using external tasks I need to poll the topics to pick up work to be done. This can be done by using the REST interface for external task/fetchAndLock.
Is it common practice to poll every seconds, or is it also possible to apply some sort of long polling for fetchAndLock? For example, would it be possible to supply something similar to the maxWait parameter in the “from push to pull”-article. The solution should also work when multiple servers are pulling in work to be done.
Is such a long polling feature possible with the current API/REST interface and/or are there plans on the roadmap to add this functionality? Or is this not the recommended approach for pulling in work?
Btw. What I am actually looking for is a way to be able to define a parallel execution and have multiple services called without waiting for one another to be completed. And when all service calls are complete to proceed with the remainder of the process.
As I suppose this is not possible using Java based Service tasks; I am investigating whether external tasks could help in achieving this. Therefore I look for an efficient way to pull external tasks so I can execute them concurrently and then complete this task per invoked service in the given process instance.