Build, deploy, and manage microservices and containers at massive scale. Run stateless & stateful services with built‑in reliability.
Get Started
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);
}
}
}