Stateful vs Stateless Applications (Explained by Example)

  Рет қаралды 196,839

Hussein Nasser

Hussein Nasser

Күн бұрын

If you ever wondered the difference between stateless and stateful applications, REST, horizontal scaling versus vertical scaling? We tackle those in a small example. Hope you guys enjoy this quick video. We explain the advantages and disadvantages of each application.
0:00 Intro
1:14 Stateful Application
8:40 Stateless Application
Online diagram tool used in this video: Http://www.gliffy.com
Checkout the rest of the content for more software engineering topics by example.
🏭 Software Architecture Videos
• Software Architecture
💾 Database Engineering Videos
• Database Engineering
🛰 Network Engineering Videos
• Network Engineering
🏰 Load Balancing and Proxies Videos
• Proxies
🐘 Postgres Videos
• PostgresSQL
🧮 Programming Pattern Videos
• Programming Patterns
🛡 Web Security Videos
• Web Security
🦠 HTTP Videos
• HTTP
🐍 Python Videos
• Python by Example
🔆 Javascript Videos
• Javascript by Example
Stay Awesome
-Hussein Nasser
www.husseinnasser.com

Пікірлер: 314
@nikhilbalwani5556
@nikhilbalwani5556 4 жыл бұрын
If you were my professor, I would be ready to sit in your lecture for hours. Beautiful explanation
@hnasr
@hnasr 4 жыл бұрын
Nikhil Balwani im humbled ❤️ thanks
@ShoeibShargo
@ShoeibShargo 2 жыл бұрын
If he were my professor, I would be sitting at FAANG now.
@adamgontiersa78
@adamgontiersa78 Жыл бұрын
And you would land any job you want, he exolains concerts with simplicity and efficiency
@zencollector
@zencollector 2 жыл бұрын
Even 3 years later this explanation is one of the best on the web. Thanks a bunch mate!
@matthewspiteri482
@matthewspiteri482 5 жыл бұрын
I work full time as a software developer, I stumbled across this while doing some research, and what can I say? you have an amazing character. Well explained :)
@hnasr
@hnasr 5 жыл бұрын
Matthew Spiteri Thank you so much for your wonderful comment. Glad to see fellow software developers here. Best of luck !
@anonymous.youtuber
@anonymous.youtuber 4 жыл бұрын
Man am I glad I found someone that really knows how to really explain something. Great video ! 👍🙋‍♀️
@hnasr
@hnasr 4 жыл бұрын
Thank you Claire 🙏 I am glad you enjoyed the content and found it helpful
@hnasr
@hnasr 5 жыл бұрын
Check out my new video about stateful apps kzfaq.info/get/bejne/e7FzgJSgtrfWc4E.html
@hnasr
@hnasr 5 жыл бұрын
Stateful Example: <a href="#" class="seekto" data-time="70">1:10</a> Stateless Example: <a href="#" class="seekto" data-time="510">8:30</a> Stateless vs Stateful pros and cons: <a href="#" class="seekto" data-time="810">13:30</a>
@sasg87962
@sasg87962 5 жыл бұрын
ونعم ابوعلي
@hnasr
@hnasr 5 жыл бұрын
Watch the new 2019 video Stateless vs Stateful python 🐍 application code examples kzfaq.info/get/bejne/pM6njdFn25vahGQ.html
@vishwaskaupvijayananda3900
@vishwaskaupvijayananda3900 4 жыл бұрын
This video makes a lot of other web app concepts so much more clearer. Thanks a mil!
@hnasr
@hnasr 2 жыл бұрын
Check out my udemy Introduction to Database Engineering course database.husseinnasser.com Learn the fundamentals of database systems to understand and build performant backend apps
@John845
@John845 3 жыл бұрын
Been programming over a year and never realized the correlation between REST and Stateless. Mind = blown. THANK YOU.
@mollycrime
@mollycrime 4 жыл бұрын
nice video! i really appreciate videos like this that talk about real concepts/use cases in a simple way that you can watch on down time. keep at it cause it looks like the videos you're making are really cool!
@hnasr
@hnasr 4 жыл бұрын
mollycrime Thanks! I try to give examples where I can from my personal experience working with a technology. Appreciate it!
@ruixue6955
@ruixue6955 4 жыл бұрын
<a href="#" class="seekto" data-time="164">2:44</a> <a href="#" class="seekto" data-time="281">4:41</a> introduction to the problem of stateful application <a href="#" class="seekto" data-time="350">5:50</a> problem: impossible to scale up <a href="#" class="seekto" data-time="370">6:10</a> <a href="#" class="seekto" data-time="411">6:51</a> stateful with load balancer <a href="#" class="seekto" data-time="516">8:36</a> stateless example <a href="#" class="seekto" data-time="532">8:52</a> Alice is using REST, State transfer <a href="#" class="seekto" data-time="674">11:14</a> server sends Alice a *token* <a href="#" class="seekto" data-time="694">11:34</a> then Alice will send request always with the token
@deepak3303
@deepak3303 2 жыл бұрын
wow, indented sub-chapters. KZfaq should support MD for comments. 🔥🔥
@shubhambatham49
@shubhambatham49 4 жыл бұрын
Sending a long ass token of appreciation all the way from India !! Great & Interesting explanation.Thank you !!
@hnasr
@hnasr 4 жыл бұрын
Shubham Batham sending a signed and time-stamped response token of love to all my subscribers in india ❤️ passcode to decrypt “stay awesome” thanks for your comment!!
@staj
@staj 4 жыл бұрын
Brilliantly and Concisely explained! Thanks a Lot HN!
@potaraju92
@potaraju92 3 ай бұрын
I can listen to on any topic you teach, I love your teaching style and voice. I am so glad I came across this channel.
@shreysom2060
@shreysom2060 3 жыл бұрын
I am hooked to your videos and as a junior back end developer i am learning a lot seeing things from different perspectives in my job. Thankyou so much
@JS-rz5gx
@JS-rz5gx 2 жыл бұрын
Brilliant explanation champ! I've watch about 3 or other videos (each being 2 or 3 times longer) and NOT ONE of them came close to explaining it this comprehensively! Well don and a sub from me!
@claushellsing
@claushellsing 4 жыл бұрын
I'm on a marathon of your videos man. Awesome content
@hnasr
@hnasr 4 жыл бұрын
Enjoy 😊
@srinidhikulkarni1962
@srinidhikulkarni1962 2 жыл бұрын
This was amazing man!! Loved the way you impart things to the viewers!! High Five!
@psstream889
@psstream889 Жыл бұрын
Your explanation is far more better than my college lecturer
@ack377
@ack377 3 жыл бұрын
God bless you sir, when no one could explain me this thing...u did it in such a simple way. And yeah that accent of ur's its awesome....I can listen to your lectures for hours
@subramanian121
@subramanian121 2 жыл бұрын
Great video Hussein. Thanks for the example.
@stephaniecrispin674
@stephaniecrispin674 Жыл бұрын
This is the best tutorial I have ever seen in my life. I'm awed!.
@cw5948
@cw5948 4 жыл бұрын
Excellent explanation! Good job.
@aminegh8725
@aminegh8725 Ай бұрын
Thank you very much for your videos , I dare anyone to watch you explaining a concept whatever the complexity of the concept and not understand it ❤❤❤
@mariusm5187
@mariusm5187 4 жыл бұрын
Very helpful video, thank you!
@romanleca4969
@romanleca4969 5 жыл бұрын
This is outrageously good. Thank you, mate!
@souravskr
@souravskr 3 жыл бұрын
It is worthy of investing 14 minutes of your life. Thanks Hussein
@ducdatnguyen9251
@ducdatnguyen9251 3 жыл бұрын
very well explaining, thank you man !
@sumitsharma5537
@sumitsharma5537 5 жыл бұрын
Interesting explanation!
@masonthompson8332
@masonthompson8332 4 жыл бұрын
Nice work, appreciate the overview.
@sarvesh81s
@sarvesh81s 6 жыл бұрын
Good Explanation..Thank you
@natalieschulz7896
@natalieschulz7896 6 жыл бұрын
Awesome Video ! Glad I found this - I am VERY NEW to Web Dev and this broke this complex subject down easily :) THANKS
@hnasr
@hnasr 6 жыл бұрын
Natalie Schulz Glad you find was useful, checkout the rest of the content in the channel where we explain other software engineering topics by example. Cheers :)
@TexAli
@TexAli 4 жыл бұрын
Thank you for a great explanation
@mukulrana1616
@mukulrana1616 2 жыл бұрын
This is the best explaination on youtube
@harrygeorgiou8518
@harrygeorgiou8518 3 жыл бұрын
Very well explained! keep the videos coming!
@tranphunguyen7044
@tranphunguyen7044 2 жыл бұрын
very clear and easy to understand by the excellent explanation. Thank you so much.
@NagendraBabutoecrusher
@NagendraBabutoecrusher 6 жыл бұрын
Good Explanation.. keep up the good work :)
@hnasr
@hnasr 6 жыл бұрын
Nagendra Babu thanks dude! Appreciate it
@parvezmulla3324
@parvezmulla3324 3 жыл бұрын
your channel is a gem!
@priyamvashi2187
@priyamvashi2187 5 жыл бұрын
Nice explanation ..Thank you
@EnochMaheshsilva
@EnochMaheshsilva 2 жыл бұрын
Wow ! Simply an amazing explanation, now only I understand what it means 'State Transfer' in ReST, thanks, keep explaining.
@Xardas_
@Xardas_ 2 жыл бұрын
It's no longer over my head. Thanks
@verma-kunal
@verma-kunal 2 жыл бұрын
Really beautiful explanation !! Thank you so much
@raghuvardhansaripalli9636
@raghuvardhansaripalli9636 3 жыл бұрын
Hey Nasser, your video is simply superb. Hatsoff. As your voice is BOLD and STRONG, one thing i visualised you as you will look like "Vin Diesel". By seeing your DP, then i realise you. Take a Bow.God bless you....:-)
@hnasr
@hnasr 3 жыл бұрын
Raghu Vardhan Saripalli Raghu 😍😍 thanks my friend
@sagarshekhar6296
@sagarshekhar6296 4 жыл бұрын
Excellent explanation Hussein.....
@othmaneibrahimi6026
@othmaneibrahimi6026 3 жыл бұрын
Very well explained, thank you ;)
@pswalia2u
@pswalia2u 3 жыл бұрын
Great explanatio I think nowadays JWT solved the problem of querying db each time we make request.🤔
@alexanderkinyanjui3339
@alexanderkinyanjui3339 3 жыл бұрын
15 minutes ago I couldn't properly articulate the difference between stateful and stateless. Now? I might upload a course on Udemy. :))
@potomskazhu
@potomskazhu 2 жыл бұрын
dude just thanks, really helped to quickly get a grasp of it
@nageshsingh2330
@nageshsingh2330 Жыл бұрын
I am from Electrical background still understand it, nice explanation with diagram.
@KrishAgrawal
@KrishAgrawal 4 жыл бұрын
Sir, you really explained well. I am a 9th-grade student and I was completely able to understand what you meant.
@mukeshsinghrawat474
@mukeshsinghrawat474 4 жыл бұрын
loved it. You made it clear to me. Thanks and yes, I subscribed.
@hnasr
@hnasr 4 жыл бұрын
Mukesh Singh Rawat thanks Mukesh! Glad I could help and welcome to the community!! Enjoy the content
@vidyakrishnan1757
@vidyakrishnan1757 2 жыл бұрын
15 mins of awesome ! Thank you !
@samuelshoyemi3751
@samuelshoyemi3751 2 жыл бұрын
Plain and simple. Thanks Hussein
@romantsyupryk3009
@romantsyupryk3009 4 жыл бұрын
Thanks so much for this video tutorial.
@OhWord88
@OhWord88 4 жыл бұрын
Your explanation made me feel really "cool" and "lit" because I was able to understand this 😂 Definitely giving this video a like! 👍
@hnasr
@hnasr 4 жыл бұрын
Jordan Theisen Jordan you are cool and definitely lit 🔥 thanks for your comment!
@0xRei
@0xRei 3 жыл бұрын
just learned about load balancers too bless you ser!!!!!!!!
@muhammadinshal6216
@muhammadinshal6216 3 жыл бұрын
Just logged in to comment a word of appreciation. Glad I found this channel. Beautiful content
@hnasr
@hnasr 3 жыл бұрын
Appreciate it ❤️❤️
@fajartris
@fajartris 3 жыл бұрын
I enjoyed it, simple and clear explanation.,
@joshuawalker7375
@joshuawalker7375 Жыл бұрын
Very well made. Thanks for the explanation.
@denishsubedi3180
@denishsubedi3180 2 жыл бұрын
Very good explanation, i want you to teach a whole class of everything i want to learn!!!!
@ayazahamed8254
@ayazahamed8254 11 ай бұрын
Very well explained. Good Job Bro. It clears my concept for stateful and stateless 🌹
@onlyamitava
@onlyamitava 3 жыл бұрын
You explained nicely.. Thanks a lot.
@CoolBishop1997
@CoolBishop1997 5 жыл бұрын
outrageously good l:D like it ! best way to spend my component afternoon at work on something ludicrous lol
@hnasr
@hnasr 5 жыл бұрын
Imad Amahmid haha glad I could provide education and entertainment thanks for watching
@kevinmontalvoflores6614
@kevinmontalvoflores6614 5 жыл бұрын
Awesome video, I understand most of the good points of stateless, I guess making a web application whether a session is an important concern but not important at scaling we probably would use php session as a way to maintain the session or any other programming that gives us this set of tools. but regarding the we wouldn't scale horizontal, thanks man
@hnasr
@hnasr 5 жыл бұрын
Kevin Montalvo Flores exactly well said. It is a trade off that you as a software engineer/architect make.
@migueljurado6783
@migueljurado6783 2 жыл бұрын
Just amazing explanation bro!
@stevenhumam2589
@stevenhumam2589 5 жыл бұрын
Great Vids and Great explanation , Love From Indonesia
@hnasr
@hnasr 5 жыл бұрын
Steven Humam thanks! Much love to all my Indonesian subs you guys rock!
@batoolal-sulh2165
@batoolal-sulh2165 4 жыл бұрын
thank you so much that's so helpful
@muhammaddanishkhan6
@muhammaddanishkhan6 3 жыл бұрын
Great explanation :)
@tkannab1
@tkannab1 5 жыл бұрын
Great video! Thanks
@hnasr
@hnasr 5 жыл бұрын
Toufik Kannab :)
@mdarifhossen
@mdarifhossen 5 жыл бұрын
Excellent!!!!
@viniciosantos
@viniciosantos 2 жыл бұрын
I finally understand this! Thank you
@ChHammadVEVO
@ChHammadVEVO 3 жыл бұрын
Oh, man...Wonderful!
@BehzodSabirov
@BehzodSabirov 3 жыл бұрын
Nice explanation, but I'd add that stateless apps can be less costing if some caching is implemented between the DB and app servers.
@hnasr
@hnasr 3 жыл бұрын
Correct! Just make sure to add logic to invalidate the cache
@vinayaksharma-ys3ip
@vinayaksharma-ys3ip 2 жыл бұрын
Great video!!! Thanks a ton Sir!
@Darkgraven
@Darkgraven 4 жыл бұрын
Clean concept. :)
@harshad.j3216
@harshad.j3216 4 жыл бұрын
Nicely explained in simple way... with real time login application use case scenario.....
@hnasr
@hnasr 4 жыл бұрын
Glad you enjoyed it! I made another video about how Amazon Alexa is stateless maybe you will enjoy that as well kzfaq.info/get/bejne/sM6ngNlmt96rlas.html
@NAVNEET549
@NAVNEET549 2 жыл бұрын
That's some cool explanation.
@girishtiwari79
@girishtiwari79 3 жыл бұрын
Wonderful explanation
@jksharma7
@jksharma7 5 жыл бұрын
Great..... friend your teaching is very GOOD..... Thanks.
@hnasr
@hnasr 5 жыл бұрын
Jk Sharma :) :) glad You like it! Thanks!!
@noranhany8213
@noranhany8213 2 жыл бұрын
Thank you for simple explanation
@mohinimadavi5870
@mohinimadavi5870 3 жыл бұрын
Thanks a lot! It was crystal and clear explanation. Easy to understand. Subscribing you!
@hnasr
@hnasr 3 жыл бұрын
Thanks for the sub! appreciate you dear enjoy the content
@OhDevBeard
@OhDevBeard 6 жыл бұрын
really good explanation man
@hnasr
@hnasr 5 жыл бұрын
Thanks! glad you liked it :)
@lolokj6848
@lolokj6848 4 жыл бұрын
Best explain ever..Many thanks
@hnasr
@hnasr 4 жыл бұрын
🙏
@gabriel-quintiliano
@gabriel-quintiliano 4 ай бұрын
Great video!
@sebastianalegre7148
@sebastianalegre7148 3 жыл бұрын
Thank you for the explanation! Enjoyed your use of "lit" and "long-ass"
@prasaad44
@prasaad44 5 жыл бұрын
Good Explanation..Thanks Dude.. :)
@hnasr
@hnasr 5 жыл бұрын
Thanks for watching! Glad you enjoyed it :)
@hantzleyaudate7697
@hantzleyaudate7697 6 жыл бұрын
You’re the man! Great video my dude, the examples were spot on. Are you independent or do you work at a software company?
@hnasr
@hnasr 6 жыл бұрын
Hantzley Audate thanks buddy for the nice comment! I work at a software company called Esri. I do these videos on the side :) glad you like the content!
@bled_2033
@bled_2033 5 жыл бұрын
Very well explained .
@hnasr
@hnasr 5 жыл бұрын
Bled_ thank you 😊
@sg7809
@sg7809 6 жыл бұрын
love it..explain so clear
@hnasr
@hnasr 6 жыл бұрын
Santosh G glad it was clear to understand! Thanks for your comment
@emadelhori496
@emadelhori496 2 жыл бұрын
this is amazing channel
@solracthegreat1002
@solracthegreat1002 3 жыл бұрын
You are a great teacher many thanks!
@hnasr
@hnasr 3 жыл бұрын
I try! thank you so much for your lovely comment
@RohitPatnala
@RohitPatnala 2 жыл бұрын
Such a cool teacher! :D
@gauravvijan03
@gauravvijan03 5 жыл бұрын
Very nicely explained thankyou...
@hnasr
@hnasr 5 жыл бұрын
gaurav vijan thanks for your nice comment sir! Glad you enjoyed the video
@JoseBlanquicetM
@JoseBlanquicetM 3 жыл бұрын
Hi Hussein, thanks for your channel. I really appreciate the work you are doing on this. For this video, I would like to know if in the case of stateful app, is it possible to use an "intelligent" LB such that the requests for a given user go always to the same server. In this way we can also have a cache into the servers for their users given that we know they will always use the same one? Something like consistent hashing? Thanks!
@VAR2024
@VAR2024 5 жыл бұрын
Awesome explanation
@hnasr
@hnasr 5 жыл бұрын
Vihari Peppers thanks you so much glad you enjoyed the video! ❤️
@syedshahzaibzafar2422
@syedshahzaibzafar2422 Жыл бұрын
great explanation
@nishant2242
@nishant2242 5 жыл бұрын
This kind of saved my ass ... Thanks.
@hnasr
@hnasr 5 жыл бұрын
Nishant Singh so happy I can help!
@rakeshjha11
@rakeshjha11 6 жыл бұрын
Nice explanation..
@hnasr
@hnasr 6 жыл бұрын
rakesh kumar thanks Rakesh! glad you enjoyed the video :)
@zenkindo4144
@zenkindo4144 2 жыл бұрын
best teacher man.
Stateful vs Stateless Firewalls - You NEED to know the difference
14:04
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 108 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 6 МЛН
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 590 М.
Stateful vs Stateless Applications
7:41
Mehul - Codedamn
Рет қаралды 22 М.
No-Nonsense Backend Engineering Roadmap
10:16
Codebagel
Рет қаралды 171 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,4 МЛН
Transport Layer Security, TLS 1.2 and 1.3 (Explained by Example)
24:20
Hussein Nasser
Рет қаралды 258 М.
Stateful vs Stateless Architecture - System Design Basics
8:47
Cloud Advocate
Рет қаралды 99 М.
Observability vs. Monitoring
14:15
Pavan Elthepu
Рет қаралды 21 М.
What happens before the Backend gets the Request
51:26
Hussein Nasser
Рет қаралды 46 М.
Proxy vs. Reverse Proxy (Explained by Example)
11:06
Hussein Nasser
Рет қаралды 681 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 35 МЛН
Что не так с Sharp? #sharp
0:55
Не шарю!
Рет қаралды 95 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,3 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 4,4 МЛН