Skip to content

Instantly share code, notes, and snippets.

@rkargMsft
rkargMsft / gist:65647f79d174230524b1129420a99e91
Created January 4, 2026 20:36
Example config aware grain call retry
public class RetryOutgoingGrainCallFilter : IOutgoingGrainCallFilter
{
private readonly TimeSpan _deadSiloDetectionTime;
// First retry delay range for transient issues
// Could be pulled from configuration if needed
private static readonly TimeSpan FirstRetryMinDelay = TimeSpan.FromMilliseconds(10);
private static readonly TimeSpan FirstRetryMaxDelay = TimeSpan.FromMilliseconds(200);
// Propagation delay estimate for membership table updates
@rkargMsft
rkargMsft / SiloMetadata.cs
Created October 28, 2024 20:57
PoC for Silo Metadata GrainService
using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Orleans.Runtime.Services;
using Orleans.Services;
namespace Test.Orleans.SiloMetadata
{
[GenerateSerializer]
public record SiloMetadata