Cloud Computing Patterns, Mechanisms > Mechanisms > R - S > State Management Database
State Management Database
![State Management Database State Management Database](https://patterns.arcitura.com/wp-content/uploads/2018/08/fig1-113.png)
A state management database is a storage device that is used to temporarily persist state data for software programs. As an alternative to caching state data in memory, software programs can offload state data to the database in order to reduce the amount of run-time memory they consume (Figures 1 and 2). By doing so, the software programs and the surrounding infrastructure are more scalable. State management databases are commonly used by cloud services, especially those involved in long-running runtime activities.
![](https://patterns.arcitura.com/wp-content/uploads/2018/08/fig2-139.png)
Figure 1 – During the lifespan of a cloud service instance, it may be required to remain stateful and keep state data cached in memory, even when idle.
![](https://patterns.arcitura.com/wp-content/uploads/2018/08/fig3-56.png)
Figure 2 – By deferring state data to a state repository, the cloud service is able to transition to a stateless condition (or a partially stateless condition), thereby temporarily freeing system resources.
Related Patterns:
This mechanism is covered in CCP Module 2: Cloud Technology Concepts.
For more information regarding the Cloud Certified Professional (CCP) curriculum, visit www.arcitura.com/ccp.
This cloud computing mechanism is covered in:
Cloud Computing: Concepts, Technology & Architecture by Thomas Erl, Zaigham Mahmood,
Ricardo Puttini
(ISBN: 9780133387520, Hardcover, 260+ Illustrations, 528 pages)
For more information about this book, visit www.arcitura.com/books.