Azure Service Fabric orchestrates applications across a cluster of network-connected machines called nodes. Applications contain service types, executable code or container images, configuration, and deployment manifests. The runtime places service instances and replicas on suitable nodes, monitors their health, and moves or restarts workloads when failures occur or cluster capacity changes. Applications can combine stateless front ends, background workers, and stateful processing services within the same cluster.
Service Fabric offers several application models. Reliable Services integrates application code with service lifecycle, communication, and health APIs. Stateful Reliable Services can store transactional data in Reliable Collections, with Service Fabric replicating that state across replicas. Reliable Actors builds on Reliable Services to provide virtual actors with individually addressed state and turn-based execution. Existing applications can instead run as guest executables or containers, but hosting an arbitrary process does not automatically give its application data the replication and transaction semantics of Reliable Collections.
Stateful services divide their data and processing into partitions. Each partition maintains a replica set, and a primary replica handles writes while secondary replicas receive replicated state. Engineers must choose partition keys, replica counts, storage capacity, and placement policies that fit the workload. Avoid hot partitions, allow capacity for node failures and upgrades, and design clients to resolve changing service endpoints and retry transient failures. Replication protects availability but is not a substitute for backups or a regional disaster recovery strategy.
On Azure, choose between Service Fabric managed clusters and classic clusters. Managed clusters simplify management of the underlying infrastructure through the cluster resource, while classic clusters expose more infrastructure resources for direct administration. Define node types to separate workloads with different compute, memory, or isolation requirements. Coordinate infrastructure scaling with application scaling: adding machines creates capacity, but it does not necessarily increase a service's configured instance count or solve an unsuitable partitioning strategy.
Deploy versioned application packages and use health-monitored rolling upgrades to update services incrementally across upgrade domains. Configure meaningful health reports, evaluation periods, failure thresholds, and rollback behavior rather than relying only on process liveness. Stateful upgrades also require compatible data formats and carefully tested migration logic, because rolling back binaries does not automatically reverse persisted data changes. Test replica movement, primary failover, node loss, and restore procedures before production deployment.
Secure cluster management separately from application ingress. Configure authentication, certificates, network security rules, and least-privilege access to dependent services. Export application telemetry and cluster diagnostics to a monitoring platform, and alert on unhealthy partitions, resource pressure, failed upgrades, and certificate expiry. Maintain supported runtime and operating system versions: Service Fabric support for clusters running Windows Server 2019 or Windows Server 2022 ends on March 31, 2027, requiring an upgrade to Windows Server 2025. Azure Service Fabric Mesh was a separate offering whose preview retired in 2021; its retirement did not retire Service Fabric clusters.