Why is using a main deployment verticle best practice

64 views
Skip to first unread message

Eric McNeill

unread,
May 5, 2021, 4:26:25 PM5/5/21
to vert.x
I'm new to Vert.x and going through the Vert.x in Action book, which says "the typical way to deploy an application composed of verticles is as follows: 1. Deploy a main verticle. 2. The main verticle deploys other verticles..."

What's the practical advantage of structuring an application like this?

Julien Viet

unread,
May 6, 2021, 3:23:53 AM5/6/21
to vert.x
Hi,

one advantage is that when you undeploy the main verticle, then it
will cascade undeploy all the verticles it deployed.

Also sometimes your application need to do some configuration loading
or other non business tasks and this main verticle can take care of
this for the other verticles.

Julien

On Wed, May 5, 2021 at 10:26 PM Eric McNeill <eric.m...@gmail.com> wrote:
>
> I'm new to Vert.x and going through the Vert.x in Action book, which says "the typical way to deploy an application composed of verticles is as follows: 1. Deploy a main verticle. 2. The main verticle deploys other verticles..."
>
> What's the practical advantage of structuring an application like this?
>
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/cbabcca2-96a3-4686-b903-32b954781e6dn%40googlegroups.com.

Eric McNeill

unread,
May 6, 2021, 6:22:12 PM5/6/21
to vert.x
Thanks Julien.
Reply all
Reply to author
Forward
0 new messages