Examples of Stateful vs Stateless web applications with Python

Hussein Nasser
Hussein Nasser
11.5 هزار بار بازدید - 5 سال پیش - Python on the Backend Course:
Python on the Backend Course: https://www.husseinnasser.com/courses



We have made a very popular video on stateless vs stateful application, but that was little bit theoretical and i wanted to follow it up with another video making it practical. We have two python tornado applications one is stateful and one stateless we got through both examples.


Stateful webapp

App with three buttons
Connect - connects to the postgres database
Read  - Read the table
Close - close the database connection

Stateless web app
Read - It always opens a connection, use it read and then closes that connection.  



More courses https://husseinnasser.com/courses

stateless vs stateful, stateless application example, stateful application example, stateless service, stateless programming, stateless python webapp, stateless postgres connection, psycopg2, stateful applications


Source Code: https://github.com/hnasr/python_playg...

1:00 statefull vs stateless  Stateful vs Stateless Applications (E...
11:00 fetch api
11:50 tcp vs udp



Stay Awesome!
Hussein
5 سال پیش در تاریخ 1398/04/16 منتشر شده است.
11,519 بـار بازدید شده
... بیشتر