Hi Camunda Community,
I would love to have some feedbacks on this subject. I would like to implement an external task in assocation with a multi-instance subprocess.
In details, the context is a notification sender, the multi-instance iterates over receivers of the notification, within the multi-instance subprocess I generate the json containing the body of the notification, then an external worker sends the json object to a Kafka message queuer.
Option1: Putting the external worker within the loop (probably not the best option since the loop is stopped while the worker finishes it’s process)
Option2: Putting the external worker outside of the loop and triggered with a signal, so that process instances are stacked, then the external worker subscribing to the topic processes all instances present in that topic.
Question: What is the best practice? Is there another more suitable option?
Bonus question : How camnuda handles memory usage in option2? RAM? Camunda Database?
Thanks in advance for your feedback on this! cheers,