On 30/05/13 22:51, Thomas Hirsch wrote:
> Am Mittwoch, 29. Mai 2013 11:28:04 UTC+2 schrieb David Pinedo:
>
>> Hello,
>>
>> I have an application that needs to communicate with other application in
>> other machine via HTTP (this second machine doesn't use Vertx).
>> So, in my first application I have a Vertx instance, and a HTTPclient and
>> a HTTPserver instantiated by this Vertx instance.
>> I have several dobuts in how Vertx works:
>> 1) I can see that Vertx has created a pool of threads. It's possible to
>> set the number of threads created by Vertx and to change the name of this
>> threads (se llaman New I/O worker #i)?
There should be no good reason to change the number of event loop
threads - this is tuned to the number of cores on your machine.
>> 2) As I have an HTTPClient and an HTTPServer, in vertx nomenclature: I
>> have two verticles, isn't it?
A verticle is the smallest execution unit of Vert.x, a single verticle
can contain as many Http clients and servers as you like
>> 3)So, if I have 2 verticles, and in the manual it's said that a verticle
>> is allways executed by the same "event loop", I need a pool with only two
>> threads, isn't it?
The number of event loop threads is not related to the number of
verticles, it's related to the number of cores on your machine.
>>
>> I feel like there are some misunderstandings here... Maybe take a closer
>> look at the documentation?
I certainly recommend starting with the main manual, it goes over most
of these concepts :)