--
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.
For more options, visit https://groups.google.com/d/optout.
If you close Vert.x then any deployed verticles are undeployed and various other things like http servers, client, net servers, clients, timer handlers and event bus handlers are deregistered before exiting.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/q80wHgHiyqA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Hi Tim,
If you close Vert.x then any deployed verticles are undeployed and various other things like http servers, client, net servers, clients, timer handlers and event bus handlers are deregistered before exiting.
This i agree, however i am mostly interested in the order how this happens (i miss the the control over the order). This orchestration is of course not necessarily the job of the framework but it should give me control to do my shutdown before is going down.
In my case i am doing a kind of stateful message exchange between some peers and when its shutting down i have to cleanly notify these peers.
If you could give me a concrete example of why order of undeploy is important that would help me understand. I think usually it makes sense to design a system such that undeploy order (amongst peers) is not important.
But even with Vert.x standard undeploy there is still some degree of ordering - e.g. child verticles of a verticle are undeployed before the parent.
Hi,
If you could give me a concrete example of why order of undeploy is important that would help me understand. I think usually it makes sense to design a system such that undeploy order (amongst peers) is not important.
So i have voip clients connected over SSL to a node lets say and we have- client connection verticles (a kind of bridge from SSL to eventbus) (long lived authenticated connections) (legacy stuff this this is how it is now)- call verticles (handle signaling state of a voip call, timers, setup the audio bridges, write statistics, etc).
But even with Vert.x standard undeploy there is still some degree of ordering - e.g. child verticles of a verticle are undeployed before the parent.The connection verticles are not necessarily a parent of the call verticles.
In my mind the sequence should go like this:- vert.x detects a request to shutdown- vert.x notifies the "app" somehow through some handler (if one registered) to perform the shutdown procedure and then waits- "app" gets a shutdown notification and undeploys the call verticles then when these are finished undeploys the connection verticles and closes the SSL connection.