DEV Community

Discussion on: Python + JavaScript = 🔥🔥🔥

Collapse
tugrul profile image
Tuğrul Topuz

You have to make async process queue in Python side for this approach. In other case it will work wrong because node.js has shared context among clients and Python instance going to be shared because you execute it in global context. Other option is execute Python in callback or use messaging queue like rabbitmq.