cancel
Showing results for 
Search instead for 
Did you mean: 

How multiple requests handled by Activiti

newtoactiviti
Champ in-the-making
Champ in-the-making

Hi All

Lets say, If I go with activiti to build the workflow and deploy the web service in multiple servers.

IF there are large number of users using the system at the same time, How processEngine works ?

ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine()

1) One instance processEngine shared across multiple incoming requests?

2) Does task ids are different for each of the incoming request?

....

How does the processEngine instance work when multiple requests are coming simaltaneously ?

 

Thanks

Aneesh

1 REPLY 1

thuynh
Star Contributor
Star Contributor

Hi Aneesh Male,

Lets say, If I go with activiti to build the workflow and deploy the web service in multiple servers.

Have a look at Activiti admin doc, Alfresco Activiti 

IF there are large number of users using the system at the same time, How processEngine works ?

Multi threaded requests are properly synchronized by Activiti engine. If there are multiple requests trying to access a user task, the first request will be executed and the second will get an exception and so forth. If multiple requests access different process instances, then that's perfectly fine. 

If you are referring to performance i.e. how Activiti handles scalability and availability, have a look at Joram's blog post here: The Activiti Performance Showdown | Small steps with big feet 

One instance processEngine shared across multiple incoming requests?

Depends on your architecture setup, you can have many processEngine instances deployed. Again, look at the Admin Guide section on Activiti Alfresco Activiti 

Does task ids are different for each of the incoming request?

What do you mean? 

Thanks,

Thong Huynh