Stateless vs stateful applications | kubernetes tutorial

preview_player
Показать описание
Kubernetes tutorial for beginners, as part of this video we will see

what is the difference between Stateless vs stateful applications

A stateless application depends on no persistence storage
A stateful application has several other parameters which it is supposed to look after in cluster

Stateless applications examples:
Application with a single function or service - iOT
Web, print and cdn servers

Stateful applications examples:
Database
Tracking solutions, such as home banking
Mail servers

Stateful containers:
Statefulness requires persistent storage
Can a container be stateful?
There was no provision for persistent storage and without it statefulness wasn't possible

Stateless containers:
Companies such as docker , kubernetes , flocker, and mesosphere provide ways of managing both stateless and stateful containers using persistent storage data

Many applications deployed now are existing applications stored in a container

Stateful vs stateless
Which is better for deployment?

The answer depends to a large extent on the kind of software that you are deploying and what it needs to do

The advantage of statelessness is that it is simple
It may be necessary to store other kinds of state data using an independent file system which can remain available if the host shuts down
Рекомендации по теме