Orleans samples
Working applications and focused examples for learning Orleans, exploring patterns, and starting your next distributed system.
22 samples

Adventure
A text adventure game demonstrating grains, external clients, and application modeling.
C#gamesclientsView source
Azure App Service Deployment
A shopping cart and infrastructure template for deploying an Orleans cluster to Azure App Service.
C#RazorBicepYAMLdeploymentazureView source
Azure Container Apps Deployment
An end-to-end Orleans cluster, client, dashboard, scaler, and Bicep deployment for Azure Container Apps.
C#BicepYAMLdeploymentazureView source
Chirper
A social network sample using persistence, observers, and reentrant grains.
C#observerspersistenceView source
GPS Tracker
An IoT location tracker integrating Orleans with ASP.NET Core SignalR.
C#JavaScriptiotsignalrView source
Hello World
The smallest complete Orleans application for defining and calling a grain.
C#getting-startedgrainsView sourceJournaled Todo List
An Aspire-hosted Web application demonstrating durable journaled grain state.
C#RazorjournalingaspireView source
Presence Service
A gaming presence service using observers and multiple cooperating grains.
C#gamingobserversView source
Shopping Cart
A Blazor shopping cart using Orleans persistence and Azure Storage.
C#RazorblazorpersistenceView source
Bank Account
A bank transfer simulation demonstrating ACID transactions across stateful grains.
C#transactionspersistenceView source
Blazor Server
An interactive Blazor Server application backed by Orleans grains.
C#Razorblazoraspnet-coreView source
Blazor WebAssembly
A hosted Blazor WebAssembly application with an Orleans-backed server.
C#RazorblazorwebassemblyView source
Chat Room
A terminal chat application demonstrating Orleans Streams.
C#streamingclientView sourceF# Hello World
A minimal Orleans application with grains implemented in F#.
F#C#getting-startedfsharpView sourceJournaling with Azure Blob JSON
An Aspire sample using Orleans journaling with JSON events stored in Azure Blob Storage.
C#journalingazure-storageView sourceSimple Streaming
A compact producer and consumer example using Orleans Streams.
C#streaminggetting-startedView source
Stocks
A stock price application using grain timers, HTTP calls, and temporary caching.
C#RazortimershttpView sourceStreaming Custom Data Adapter
An Event Hubs streaming sample consuming data from a non-Orleans publisher.
C#streamingevent-hubsView source
Tic Tac Toe
A Web-based game demonstrating lobbies and ASP.NET Core integration.
C#JavaScriptgamesaspnet-coreView source
Transport Layer Security
A Hello World cluster configured with mutual TLS for all network communication.
C#securitytlsView sourceVisual Basic Hello World
A minimal Orleans application with grain contracts and implementations in Visual Basic.
Visual BasicC#getting-startedvisual-basicView source
Voting
A Kubernetes-oriented voting Web application with the Orleans Dashboard.
C#RazorkubernetesdashboardView source
