Stateless Services

The definition of stateless is that something is truly stateless where the data is only stored in memory; a calculator is a good example of a stateless application. Stateless can also mean that the data is persisted in an external storage solution, such as SQL DB or Azure Tables. This is the standard model for distributed systems today, with tiered architectures being the most popular. To be able to enable our service to scale out by adding more instances, we avoid storing any state on our service itself. To make stateless services resilient, we need to implement lots of patterns when accessing state in the backend, starting with proper queuing patterns to pass messages between the tiers, through caching patterns to improve ...

Get Microservices with Docker on Microsoft Azure™ (includes Content Update Program) 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.