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 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.