Migrating Applications to the Cloud with Azure
by Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
Stateful services
Unlike Stateless services, stateful services do have to store some portion of the state, which must be kept consistent and present for the service to function correctly.
An example of a stateful service is a service that constantly needs to calculate a rolling average based on certain values it receives. To achieve this, it must have the current set of incoming requests that it needs to process, as well as the current average. This average needs to be stored in an external store by each service, which retrieves and processes the incoming request. This data can be stored inside Azure Tables Storage or another type of database, such as Azure SQL Database, Azure Cosmos DB, or Azure Database for MySQL.
When using Azure Service ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access