Hi,
In my vert.x web application I have multiple event loop threads and also worker threads.
I was thinking of add a blocking handler to my POST requests, so it gets handled by worker threads and my event loop is always free.
router.post().blockingHandler(new PostHandler(...));
My post requests parses json and sends it to a Kafka topic.
Now for the above code to be executed on work thread when deploying the verticle do I need set the following options in my launcher:
deploymentOptions.setInstances(...).setThreadingModel(ThreadingModel.WORKER);
If this is not needed then why do we need threading model and default of which I suppose is set as: ThreadingModel.EVENT_LOOP
Thanks
Sachin