Hi,
Is it common practice to deploy/un-deploy verticles dynamically? or this approach is not recommended?
For example, if there are multiple HTTP request that needs to be executed in parallel, I could deploy a vertical for each, and with the assumption that they will run in different "event loop" threads, their execution will be in parallel.
Once request execution is completed, these Vericles are no longer required, so, they will be un-deploy. In the next batch of HTTP request, new Verticles will be deployed.
This is ONLY an example for a functionality that is needed temporarily and thus there is no need to keep the Verticle throughout the life cycle of the application.
So, the question is whether the "deploy"/"un-deploy" are heavy, and it is not recommended to do it often through the life cycle of the application?Should we deploy all Verticles in application startup, and assign them tasks when required (through the message bus)? Or, there is no problem with dynamic deploy/un-deploy, and these operations are not "heavy" in terms of performance?
I'll appreciate your advice on this.
Thanks, Aliza