Stateful vs Stateless Architectures Explained

  Рет қаралды 31,485

Hayk Simonyan

Hayk Simonyan

Күн бұрын

Пікірлер: 22
@hayk.simonyan
@hayk.simonyan Ай бұрын
Free System Design Course: skool.com/web-dev-mastery
@lovingnation3223
@lovingnation3223 Ай бұрын
I am in IT for over. a decade and so far no one explained concept this better yet .. Excellent job! I think some credit goes to your video editor as she/he is spot on with with your script .. keep it up.
@hayk.simonyan
@hayk.simonyan 28 күн бұрын
Glad to hear that. Thanks from my editor as well :))
@devkasunlakshitha
@devkasunlakshitha 17 күн бұрын
Best explain about stateful/stateless architecture. Thank you!
@lodosdurak7913
@lodosdurak7913 Ай бұрын
Stateless is when waiter leaves the order paper with the customer, so customer hands in the the order paper each time and updates accoridngly so the kitchen doesn't need to save the order info, its stored by the customer.
@adityatripathi9125
@adityatripathi9125 Ай бұрын
Exactly! I was thinking the same. Its clients responsibility to communicate state details with each requests.
@sheikhAbdelrahman
@sheikhAbdelrahman Ай бұрын
I think there is a misconception here. Both architectures are basically Stateful. The only difference is the storage of the state on a shared media or cache (ex. Redis).
@hayk.simonyan
@hayk.simonyan Ай бұрын
You're right that both architectures can maintain state, but the key distinction is where and how the state is stored and managed. In case of stateless the server doesn't retain session information between requests and relies on external storage, but in case of stateful they handle state directly on the server. Hope that clears it up!
@longgpham6396
@longgpham6396 Ай бұрын
thank for calling out, I'm also confuse about "Stateless" here. For me, it is more like a technic or system design to scale horizontally at server level
@JardelNovaes
@JardelNovaes Ай бұрын
@@hayk.simonyan Server side is maintaining state on the server on both cases, it's not stateless. The "media" you store the session information on server side doesn't make it stateless. You point is about a "share storage" on server. @lodosdurak7913 gave us an example of stateless, when request need to send "all information" every time, since there is "no state" on the server (stateless)
@Senboni
@Senboni Ай бұрын
since stateless is more scalable, you can add more servers -- easy. but what about the shared instance? in this case a database, it also needs to scale? how?
@hayk.simonyan
@hayk.simonyan Ай бұрын
Absolutely! The shared database must also scale alongside growth. That's exactly what I discussed in a previous tutorial, so be sure to check out the video on database replication and sharding on this channel.
@opethforlife
@opethforlife Ай бұрын
Now I understand. Many thanks .
@AllahomAnsorGaza
@AllahomAnsorGaza 29 күн бұрын
the question is in stateless server we need to query database for everything and this consume time while if there is array of current logged users and if there is like websocket also so which is better ?
@sumitgoyal8108
@sumitgoyal8108 29 күн бұрын
legend finally understood
@israelterorisprikopat
@israelterorisprikopat Ай бұрын
Which situation need use Statefull?
@hayk.simonyan
@hayk.simonyan Ай бұрын
when you need to maintain context or state across multiple requests or interactions
@FelipeYonehara
@FelipeYonehara Ай бұрын
Multitenancy next.
@galleon8129
@galleon8129 Ай бұрын
Nice, but use real use cases from Azure or AWS. Elastic Beanstalk would be a good example
@jaymartinez311
@jaymartinez311 Ай бұрын
I think you missed the point of the video 😂. It’s for beginners. Use your imagination.
How to Configure and Provision Database Sharding
12:02
Hayk Simonyan
Рет қаралды 1 М.
System Design Interview: Design Twitter (X)
12:19
Hayk Simonyan
Рет қаралды 4,4 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
Stateful vs Stateless Firewalls - You NEED to know the difference
14:04
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 652 М.
DRM explained - How Netflix prevents you from downloading videos?
18:17
Mehul - Codedamn
Рет қаралды 228 М.
Design Accelerator: Ports and Adapters Architecture Part 1
14:56
Vaughn Vernon
Рет қаралды 2,9 М.
Stateful vs Stateless Applications (Explained by Example)
14:44
Hussein Nasser
Рет қаралды 201 М.
CAP Theorem in System Design Interviews
13:56
Hello Interview - SWE Interview Preparation
Рет қаралды 11 М.
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 346 М.
I'm Ditching Try/Catch for Good!
10:29
Web Dev Simplified
Рет қаралды 180 М.
Database Replication & Sharding Explained
6:53
Hayk Simonyan
Рет қаралды 29 М.
Scalability Simply Explained in 10 Minutes
9:20
ByteByteGo
Рет қаралды 47 М.