On 26 January 2016 at 11:23:48, Philipp Schumacher (
de.schumac...@gmail.com) wrote:
> In the next step, i would like to simulate a scenario with thousand
> of concurrent producers instead of sending thousands of messages
> with one producer. So each producer should open it's own connection
> and send only a single message, in parallel.
>
> Can i do this with the pika client (or at least any other client)?
> Could you give me a hint on how to achieve this.
You can do it with most clients but after a certain point, you will begin hitting
(OS imposed) limits such the number of threads ("ulimit -u") a single OS process can use.
And then there are things that need to be tuned to sustain a high number of connections:
http://rabbitmq.com/networking.html
Other than that, starting N threads (or similar) with its own connection each sounds straightforward
enough in any language because they won't share anything beyond server connection information
(immutable) and maybe exchange name (also immutable).
--
MK
Staff Software Engineer, Pivotal/RabbitMQ