© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
R. AstburyMicrosoft Orleans for Developershttps://doi.org/10.1007/978-1-4842-8167-3_6

6. Adding Persistence

Richard Astbury1  
(1)
Woodbridge, UK
 

In this chapter, we will build upon the project structure we set out in Chapter 5 and add durable state, or persistence, as a feature to our grains.

Orleans has an in-built persistence feature. However, Orleans does not store data within the cluster; instead, data is stored in an external storage system of your choice. Orleans provides the plumbing for the grain’s state to be serialized and stored and to automatically load this state when a grains is reactivated.

This is an entirely optional feature. If you wish to ...

Get Microsoft Orleans for Developers: Build Cloud-Native, High-Scale, Distributed Systems in .NET Using Orleans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.