2 ms·
Interesting that the python/nodejs comparisons are not equal: the python ones are all synchronous, and the node.js are all asynchronous. It would be nice to sh
by DanielRibeiro 14y ago
Interesting that the python/nodejs comparisons are not equal: the python ones are all synchronous, and the node.js are all asynchronous.
It would be nice to show how to do asynchronous calls in python, and synchronous in node.js
- sausagefeet 14y agoThey are using gevent so I imagine each call is actually concurrent.
- shykes 14y agoBoth implementations use asynchronous io. The difference is simply the API they expose - each implementation simply uses the best api available. With Node the dominant programming model is callback-based so that's what is used. Python has the advantage of a strong and well-supported coroutine library (gevent) so python developers aren't used to putting up with callback spaggheti. tl;dr zerorpc is agnostic and each implementation uses the best tool for the job.