I'm trying to decide which path i should follow when deploying my Verticles. I came to a conclusion that i should consider Vert.x as my runtime environment and not creating my own Vertx instance myself and start deploying my app from the main method. however i prefer having a main method in each app which gives me much control over my services doing service discovery and other stuff.
I can't find a piece of docs in Vertx talks about this point. or Pros and Cons. can someone please help me ?
Shell start:
cd /verticles # the location of the verticle jar
vertx run io.vertx.sample.RandomGeneratorVerticle
-cp /verticles/MY_VERTICLE.jar
Main method:
public static void main(String[] args) {
Vertx vertx = Vertx.vertx();
vertx.deployVerticle(
new DatabaseVerticle(),
new DeploymentOptions().setConfig(conf)
)
}