Skip to main content
  • 1240 Accesses

Abstract

At some point, services need to work with state. The way for persisting the state marks out how scalable they are going to be. In this chapter, I will walk you through a brief introduction to what is the difference between stateful and stateless services and what are the challenges for scaling them. As it typically happens, when you don’t want to incorporate some functionality in your code, you use an external service that provides the functionality you need out of the box. You will learn how Dapr helps you persist the state of your services by leveraging external state stores. When you make it to the point to persist data of a distributed application, you must think over two important traits – concurrency and consistency. Once I cover how the State Management building block works, I will go through the state stores that are supported by Dapr. I will also touch on how the Actors building block that I am going to cover in Chapter 10: The Actor Model relies upon state management.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Gatev, R. (2021). State Management. In: Introducing Distributed Application Runtime (Dapr). Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6998-5_8

Download citation

Publish with us

Policies and ethics