Examples of Stateful vs Stateless web applications with Python

preview_player
Показать описание


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.

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

11:00 fetch api
11:50 tcp vs udp


Stay Awesome!
Hussein
Рекомендации по теме
Комментарии
Автор

Amazing content.. Haven't received such great quality content ever! This is the first time I clearly understood what is meant by stateless

NikhilTripathy
Автор

Great video. Thanks for uploading such things. So if an application is storing user creds/tokens somewhere (a database or a cache), then it looks like all the applications (dealing with user authentication) are stateful ? If the creds are stored on the server itself then its purely stateful and if they are stored somewhere else, the app becomes stateless but the design is stateful? Is this true for apps like Facebook, Instagram etc.? because somehow or the other the application is going to check the user details (be it a password or a token) before granting them certain permissions. A bit confused with this hence wanted to confirm. Thanks a lot Hussein.

baswma
Автор

Hey, I love your videos! It would be really helpful if you would include a link in the description to any other of your videos that you mention.

amromsteinmetz
Автор

طريقة شرحك بسيطة ومفهومة, انا تعلمت منك اشياء كثيرة الايام الماضية. على فكرة اول ما سمعت لهجتك عرفت انك تربيت في الخليج.

kingslyer
Автор

Asslamo Alaikum... Sir what if i have redundant DBs in stateless web App. And in stateful if i maintain same state across 2 databases? Is it possible ? Kindly respond

muhammadmughal
Автор

I've noticed that you have a few videos related to connectivity and compatibility with MongoDB. Any chance we could get a full-length crash course video from you on just MongoDB alone?

section
Автор

What are the solutions to scaling horizontally with stateful application?

When you mention having a mixed application (using both stateful and stateless), do you mean a stateless application that can access an in memory db like reddis for all your stateful needs?

davidross
Автор

Hello sir, where can I get those sample python scripts that I can learn from them? Thanks

Ericzhao
Автор

link to Hussein's first video on stateful/statelessness concepts:

andrescastillo
Автор

Great video, can you please review Akka Serverless?

ComisarioLobo
Автор

Bro you should consider doing more shameless plugs here and there. If I had known you did a Udemy course on Python for Backend I would have signed up a long time ago! And you've written books too??

section
Автор

so if i tried to login into something and i got the login info wrong, would that be considered stateful? @hussein

lune
Автор

You sound genius and mad at the same time but thank you : )

anirudhsharma