I am using vert.x as api gateway and each request has to go through multiple handlers Sample code snippet
router.route(BASE_PATH)
.method(HttpMethod.POST)
.handler(LoggerHandler.create(LoggerFormat.SHORT))
.handler(BodyHandler.create())
.blockingHandler(this::authRouter)
.blockingHandler(this::reqValidationRouter)
.handler(this::downStreamRouter)
.blockingHandler(this::responseTransformRouter)
What happens to event loop threads when the control passes to blockingHandler? Do they continue to accept more requests? If yes, what happens when the blocking handler execution completes? Does this switching from eventLoop to blockingHandler (workerPool) and then back to eventLoop has any performance implications?
What is the ideal way to handle multiple handlers?
Thanks, Nitish Goyal