Chapter 3. Stateful services

As discussed in Chapter 1, “Hello, Service Fabric!,” many services have states by nature. However efficient and reliable, state management is a challenge. In this chapter, you’ll first review the challenges of state management in a distributed system. Then, you’ll learn how Service Fabric solves this problem. And once you understand the theory, you’ll move to a number of exercises that walk you through the steps of creating stateful services.

Service Fabric state management

In a distributed environment, especially in a large-scale distributed environment, any messages could get lost, any nodes could fail, and any communication channels could stall at any time. The CAP theorem states that it’s impossible to achieve ...

Get Programming Microsoft Azure Service Fabric 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.