Azure Service Fabric

Build, deploy, and manage microservices and containers at massive scale. Run stateless & stateful services with built‑in reliability.

Get Started
Service Fabric Architecture

Why Service Fabric?

  • Runs containers, .NET, Java, Node.js, and more.
  • Built‑in health monitoring, rolling upgrades, and self‑repair.
  • Supports stateful workloads with low latency.
  • Integrates with Azure DevOps & GitHub Actions.
Overview
Features
Code Sample

Azure Service Fabric is a distributed systems platform that makes it easy to package, deploy, and manage scalable and reliable microservices. It abstracts the underlying infrastructure, allowing developers to focus on delivering business value.

Service Fabric powers many core Azure services including Azure SQL Database, Azure Cosmos DB, and Azure Cognitive Search.

Below is a minimal Service Fabric application written in C#.

// Program.cs
using System;
using Microsoft.ServiceFabric.Services.Runtime;

namespace SimpleStatelessService
{
    internal static class Program
    {
        private static void Main()
        {
            ServiceRuntime.RegisterServiceAsync(
                "SimpleStatelessServiceType",
                context => new SimpleStatelessService(context)).GetAwaiter().GetResult();

            Console.WriteLine("Service registered.");
            Thread.Sleep(Timeout.Infinite);
        }
    }
}