Combine python flask and express.js

I have a web application where the site is built on Python Flask. Now we want to introduce a real-time chat system on the page. Is it advisable to mix both the flask and express.js, or develop only a chat page using express.js and relax using Flask, or do we have any Framework, for example express.js in python that can work together with the flask?

+4
source share
2 answers

In python you can use http://twistedmatrix.com/trac/
http://www.gevent.org/
http://eventlet.net/

Have a look at this http://librelist.com/browser//flask/2010/9/1/flask-and websockets /

Twisted has huge support and lot of success projects are built based upon it. gevent is light when compared to twisted.

Have a look at this comparison http://oddments.org/?p=494

+4
source

Try Socket.io with the backend https://github.com/SocketTornadIO/SocketTornad.IO in such a way that you keep your python at all levels.

This is also normal if you mix Node.js with python, but you will have 2 servers and it works.

+4
source

All Articles