Python Flask with node.js

I have a Python Flask application, and I'm going to start implementing websockets, and I don't want all this to be done in node.js for several reasons;

Node.js use less overhead, and I like the idea of ​​separating heavier logic from more heavy traffic.

Node.js seems to have better support for websites and are becoming more mature.

And I can later move node.js to a separate server if necessary for performance.

My question is, what would be the best way to create a connection between my flash application and node.js? Is it a bad idea to set it up as follows?

+4
source share
1 answer

If you have a really good reason to use both options, and you have checked with some benchmarking that both are necessary, I would not. This adds a lot of complexity (code duplication, different libraries working differently in different languages, etc.) for dubious benefits.

WebSocket is a problem in Flask, but you can use Juggernaut to easily deal with it .

0
source

All Articles