Jump Consistent Hash implementation for shard picker
Inheritance: ISharding
Esempio n. 1
0
        static IHydra CreateHydra()
        {
            var sharding = new JumpSharding();

            return Core.Hydra.Create(sharding, new[] { CloudStorageAccount.DevelopmentStorageAccount,
                                                       CloudStorageAccount.DevelopmentStorageAccount,
                                                       CloudStorageAccount.DevelopmentStorageAccount,
                                                       CloudStorageAccount.DevelopmentStorageAccount,
                                                       CloudStorageAccount.DevelopmentStorageAccount });
        }
Esempio n. 2
0
        protected static IHydra CreateHydra()
        {
            var sharding = new JumpSharding();

            return Core.Hydra.Create(sharding, new[]
            {
                CloudStorageAccount.Parse(Environment.GetEnvironmentVariable("HYDRATEST")),
                CloudStorageAccount.Parse(Environment.GetEnvironmentVariable("HYDRATEST")),
                CloudStorageAccount.Parse(Environment.GetEnvironmentVariable("HYDRATEST")),
                CloudStorageAccount.Parse(Environment.GetEnvironmentVariable("HYDRATEST")),
                CloudStorageAccount.Parse(Environment.GetEnvironmentVariable("HYDRATEST"))
            });
        }