Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Both 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.


They are using gevent so I imagine each call is actually concurrent.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: