Parallel execution in creatio

Hi everyone,

I am currently working on creating a custom service in Creatio, where I need to execute a large number of tasks and create records in multiple objects. These tasks take some time to execute, and to avoid any latency, I would like to execute these tasks in parallel, as some are independent from one another.  

Does Creatio offer a customized implementation for parallelism (I saw that it had its own implementation of background execution)?

How can I implement this approach for parallel execution of tasks in Creatio and how can I handle the user connection and the context data in these methods?

Thanks in advance for your help!

Like 0

Like

1 comments

Hello
The easiest solution to this would be to run your service with more than one user. This way you do not need to implement additional code, or worry about the UserConnection. In addition, using two users can be even faster than configuring a parallelism on a single one because with only one user you can experience a queue in request executing.

Show all comments