...

/

Getting Started with State Persistence

Getting Started with State Persistence

Learn about the state persistence of applications and create a cluster.

How can we persist states?

Note: Having fault-tolerance and high availability is of no use if we lose the application state during rescheduling.

Having a state is unavoidable, and we need to preserve it no matter what happens to our applications, servers, or even a whole data center.

The way to preserve the state of our applications depends on their architecture. Some store data in memory and rely on periodic backups. Others are capable of synchronizing data between multiple replicas so that a loss of one instance does not result in loss of data. Most, however, rely on the disk to store their state. We’ll focus on that group of stateful applications.

If we are to build fault-tolerant systems, we need to make sure that failure of any part of the system is recoverable. Since speed is of the essence, we cannot rely on manual operations to recuperate from failures. Even if we could, no one wants to sit in front of a screen, waiting for something to fail, only to bring it back to its ...