--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi
Would like to know which one will have better performance & provide better scalability?
Example:
We have a worker verticle that does some blocking calls (http requests), and the verticle does not have any state or instance variables.
We are trying two different scaling approaches.1. Set Multi-threads = true for the worker verticle2. Increase the number of worker verticle and set mutli-threads to false
We ran some tests and DONT see much performance differences and we found1) If we set mutli-threads = true, the bottleneck is the # of the background threads (worker threads)2) If we set mutli-threads = false, to achieve the same performance as #1, we need to increase the # of background threads as well as the # of worker instances
ThanksTY
On 22/06/15 18:08, TY wrote:
Hi
Would like to know which one will have better performance & provide better scalability?
Neither.
Performance will be the same as in both cases you have the same number of threads blocking on your http requests (i.e. all threads in the worker pool).
Your performance issue here is not because of standard worker vs multi-threaded worker, it's because you're blocking!
That's why I always say, don't use blocking code unless you really have no choice.