I am creating a testing application that suppose to have many connections to a server. When I create a client from my Verticle it is always processing the connection and messages on the same tread.
When I created my verticle I set
options.setEventLoopPoolSize(4)
So I would it expect it to round robin to the 4 event loops because I want to have millions of connections.
I'm doing
launch {
val socket = netClient.connectAwait(port, host)
log.info().log("connected on - {} {}", Thread.currentThread(), Vertx.currentContext())
socket.handler {
log.info().log("{}", it)
}
}
2019-06-04 17:30:06,479 INFO [vert.x-eventloop-thread-0] MainVerticle: connected on - Thread[vert.x-eventloop-thread-0,5,main] io.vertx.core.impl.EventLoopContext@150049b3
Always on same thread.... How do I launch the connection on different event-loops