[zeromq-dev] Thread Safe sockets

Dimiter 'malkia' Stanev malkia at gmail.com
Tue Feb 7 19:39:09 CET 2012

> I'm not sure I follow, what's evil about callbacks? In particular, I am
> working on an RPC library on top of ZeroMQ. It spawns n threads, and
> whenever a request arrives it runs a user-supplied function (i.e.
> callback) on one of these threads. Are there alternative designs that I
> should consider?

	Callbacks are okay when there is no foreign language/runtime. But once 
you have to use the "C/C++" library from say java, lua, python, ruby, 
etc then it's not a straightforward solution, and sometimes not feasible.


More information about the zeromq-dev mailing list