Hi julienviet & Blake,
I'm so glad to receive your reply!
I'll give some demo code to clarify my question. The code is as follow:
1. I write a `HttpVerticle` as http server, it handle http requests and submit blocking jobs to another `BlockVerticle` via event bus request message.
2. In the `BlockVerticle` I simulate a blocking job by sleep 100 ms and reply the message.
3. I deply 10 BlockVerticles(worker mode) and 4 HttpVerticles(standard/worker mode).
I performed a stress test by jmeter with 1000 request threads.
Then I found whether I set the HttpVerticle as a worker or not, the performances are quite close.
The report is as follow:
(HttpVerticle in standard mode)
(HttpVerticle in worker mode)
Question:
If like what Blake said, 'there's nothing really different', why do we need the eventloop design and what is the advantage of using it.
Maybe we can simply prepare some different thread pools for different purpose(eg. for blocking jobs and non-blocking jobs)?
Looking forward to your reply And thanks a lot !!!