Re: [zeromq-dev] sending from multiple threads

2016-12-02 Thread Luca Boccassi
As it was written before it's not recommended to constantly create and delete sockets. I think I've seen issues fly past on Github where that caused problems with inproc, I would advise to search there to see what it was about. inproc sockets are in-memory queues, they do not use file descriptors.

Re: [zeromq-dev] sending from multiple threads

2016-12-02 Thread Lineker Tomazeli
Hey guys, Thank you so much for you input. It gave me some good insights. Is always good to see some numbers from production enviroments. What is the overhead of creating a inproc:// socket and killing it after sending each message? Would that be better than having a mutex on one shared inproc:/

Re: [zeromq-dev] sending from multiple threads

2016-12-01 Thread Marcin Romaszewicz
On Thu, Dec 1, 2016 at 11:30 AM, Lineker Tomazeli wrote: > Hi Luca, > > Thanks for answering. See my comments below. > > Lineker Tomazeli > tomazeli.net > > On Thu, Dec 1, 2016 at 12:19 PM, Luca Boccassi > wrote: > >> On Thu, 2016-12-01 at 10:23 -0500, Lineker Tomazeli wrote: >> > Hi guys, >> >

Re: [zeromq-dev] sending from multiple threads

2016-12-01 Thread Manuel Amador (Rudd-O)
On 12/01/2016 05:19 PM, Luca Boccassi wrote: > On Thu, 2016-12-01 at 10:23 -0500, Lineker Tomazeli wrote: >> What would be the correct approach if I use clrzmq4 ? > Why do you want to manage the socket on one thread and use from another? > What about just passing the endpoint string to each thread,

Re: [zeromq-dev] sending from multiple threads

2016-12-01 Thread Colin Ingarfield
On 12/1/16 1:30 PM, Lineker Tomazeli wrote: > Hi Luca, > > Thanks for answering. See my comments below. > > Lineker Tomazeli > tomazeli.net > > > > *Second question :* > > > > What is the correct approach for a "zeromq" thread to notify > other threads >

Re: [zeromq-dev] sending from multiple threads

2016-12-01 Thread Lineker Tomazeli
Hi Luca, Thanks for answering. See my comments below. Lineker Tomazeli tomazeli.net On Thu, Dec 1, 2016 at 12:19 PM, Luca Boccassi wrote: > On Thu, 2016-12-01 at 10:23 -0500, Lineker Tomazeli wrote: > > Hi guys, > > > > I have been reading zeromq list for a while now but is the first time I'm

Re: [zeromq-dev] sending from multiple threads

2016-12-01 Thread Luca Boccassi
On Thu, 2016-12-01 at 10:23 -0500, Lineker Tomazeli wrote: > Hi guys, > > I have been reading zeromq list for a while now but is the first time I'm > asking something. So nice to meet you all :) > > In the zeromq documentation/book is very clear that we shouldn't be > handling zeromq sockets from