Please suggest the best approach for a distributed environment for the following use case. We have multiple instances( 4 -8) of a microservice, that are spring-boot java applications. Now, what is the best way to integrate Camunda for these microservices?
- Embed camunda with our microservice - in this case, all these instances of the microservice will have their own engine/cockpit/tasklist.
- Single camunda process engine serving all these microservice instances - in this case, we have to rely on external tasks and Rest API. We can not make use of the native java API for example - creating process instances or correlating messages etc. The only option is REST calls with the external tasks in this approach. Am I right?
Please suggest the best practice in this scenario and suggest to me any other solution or let me know if my understanding is wrong.