Chapter 3 Stateful Services

As discussed in Chapter 1, many services have states. However, efficient and reliable state management in a distributed system is always a challenge. Service Fabric provides unique and deep support for stateful workloads, regardless of whether the workload uses the Service Fabric programming model. In my opinion, state management is the one of the most important contributions Service Fabric brings to the microservices community.

In a distributed environment, especially a large-scale one, messages can get lost, nodes can fail, and communication channels can stall at any time. The CAP theorem states that it’s impossible to achieve consistency, availability, and partition tolerance at the same time. However, this doesn’t ...

Get Programming Microsoft Azure Service Fabric, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.