> 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.
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev