admin管理员组

文章数量:1279011

Currently I have two verticles, WebVerticle and Task Verticle

I am deploying them like this :

Future<String> webVerticleDeployment = vertx.deployVerticle(new WebVerticle(loadedConfig, router));
Future<String> taskVerticleDeployment = vertx.deployVerticle(new TaskVerticle());


Future.all(Arrays.asList(webVerticleDeployment, taskVerticleDeployment)

....

Imagine if I have 100 verticles, this code will get very messy and big. What is the correct way to deploy n number of verticles in a Vert.x app?

Thanks a lot!

本文标签: javaWhat is the correct way to deploy n verticles in VertxStack Overflow