Flask and Tornado for a mock Real-Time Chat Application

27 views
Skip to first unread message

Sebastian Obido

unread,
Aug 7, 2025, 6:29:33 AMAug 7
to Tornado Web Server
Hello everyone, I have a small query regarding on implementing a basic real time application on a simple webpage. 

For context I have just enough knowledge on Python, basic API's and Flask, but I can't seem to grasp the knowledge on combining both to develop a basic real time chat application. |

Any advice on reading the documents and what should I focus on?

Thanks!  

Ben Darnell

unread,
Aug 7, 2025, 11:19:08 AMAug 7
to python-...@googlegroups.com
Why do you want to combine two frameworks? In general, working with two frameworks at the same time requires you to know both frameworks very well, plus the complexities of combining them. Even if you already know Flask, I think you'd be better off learning Tornado and doing the whole thing in Tornado instead of a hybrid. Or if you're set on sticking with Flask, I'm less familiar with the available options, but I think there are going to be easier ways to get real-time functionality from flask than adding on an entire separate web framework. 

-Ben

--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/python-tornado/83d4abbd-a4c9-40c6-a7cd-86ae102e2abfn%40googlegroups.com.
Message has been deleted
Message has been deleted

Rajdeep Rath

unread,
Aug 8, 2025, 1:36:19 PMAug 8
to python-...@googlegroups.com
Honestly tornado is sufficient. You don't need flask. Tornado will help implement the http endpoints as well.

Implement websocket endpoint to connect and send receive messages.

Implement queue to push and pop messages.

You can also persist the messages if you want.

--

Sebastian Obido

unread,
Aug 8, 2025, 1:36:19 PMAug 8
to Tornado Web Server
Thanks Sir Ben, I think I'll use Tornado from now on since it has more functionality for making real time web applications.

- Sebastina

Sebastian Obido

unread,
Aug 8, 2025, 1:36:19 PMAug 8
to Tornado Web Server
Thank you for the insight sir, I think I'll go with the Tornado route for now since upon reading the basics of documentation it supports async and websockets easily. Just need to figure out how to implement each of them. Thanks again!

- Sebastian

On Thursday, August 7, 2025 at 11:19:08 PM UTC+8 Ben Darnell wrote:
Reply all
Reply to author
Forward
0 new messages