Shardis 0.1.0-prerelease0084
dotnet add package Shardis --version 0.1.0-prerelease0084
NuGet\Install-Package Shardis -Version 0.1.0-prerelease0084
<PackageReference Include="Shardis" Version="0.1.0-prerelease0084" />
<PackageVersion Include="Shardis" Version="0.1.0-prerelease0084" />
<PackageReference Include="Shardis" />
paket add Shardis --version 0.1.0-prerelease0084
#r "nuget: Shardis, 0.1.0-prerelease0084"
#:package Shardis@0.1.0-prerelease0084
#addin nuget:?package=Shardis&version=0.1.0-prerelease0084&prerelease
#tool nuget:?package=Shardis&version=0.1.0-prerelease0084&prerelease
Shardis
Deterministic sharding primitives for .NET: routing, hashing, and core DI extension points used across the Shardis ecosystem.
Install
dotnet add package Shardis --version 0.1.*
When to use
- You need deterministic shard routing and stable shard identifier types.
- You want pluggable hashing and routing strategies via DI.
- You need low-level primitives for building higher-level shard-aware components.
What’s included
Shard
,ShardId
,ShardKey
— core value types.IShardRouter<T>
andDefaultShardRouter
— routing abstractions and a default implementation.- Hashing abstractions:
IShardKeyHasher<TKey>
,IShardRingHasher
. ServiceCollectionExtensions.AddShardis()
— DI wiring helpers.
Quick start
// register core sharding primitives
services.AddShardis<string>(opts =>
{
opts.ReplicationFactor = 3;
});
// resolve router + map store
var router = provider.GetRequiredService<IShardRouter<string>>();
var mapStore = provider.GetRequiredService<IShardMapStore<string>>();
Configuration / Options
ServiceCollectionExtensions.AddShardis<TK>(options => {...})
— configure replication factor and defaults.
Integration notes
- Works as the core package for other
Shardis.*
packages (queries, persistence providers, migration). - Link to repository: https://github.com/veggerby/shardis
Capabilities & limits
- ✅ Deterministic routing primitives and small, composable abstractions.
- ⚠️ This package exposes core primitives only — concrete providers live in other packages.
- 🧩 TFM:
net8.0
,net9.0
.
Samples & tests
- Samples: https://github.com/veggerby/shardis/tree/main/samples
- Tests: https://github.com/veggerby/shardis/tree/main/test/Shardis.Tests
Versioning & compatibility
- SemVer; see CHANGELOG: https://github.com/veggerby/shardis/blob/main/CHANGELOG.md
Contributing
Please read contribution guidelines: https://github.com/veggerby/shardis/blob/main/CONTRIBUTING.md
License
MIT — see https://github.com/veggerby/shardis/blob/main/LICENSE
Links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 9.0.8)
-
net9.0
- Microsoft.Extensions.DependencyInjection (>= 9.0.8)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Shardis:
Package | Downloads |
---|---|
Shardis.Redis
Redis-backed shard map store for Shardis (atomic CAS & TryGetOrAdd) enabling deterministic key to shard assignments. |
|
Shardis.Marten
Marten integration for Shardis: per-shard sessions and query execution adapter. |
|
Shardis.Query
Core query primitives (merge enumerators, LINQ MVP scaffolding) used by Shardis provider packages. |
|
Shardis.Migration
Shardis key migration execution primitives (planner, executor, metrics hooks, in-memory implementations). |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.1.0-prerelease0084 | 39 | 8/31/2025 |
0.1.0-prerelease0083 | 41 | 8/31/2025 |
0.1.0-prerelease0082 | 157 | 8/28/2025 |
0.1.0-prerelease0075 | 157 | 8/28/2025 |
0.1.0-prerelease0067 | 158 | 8/27/2025 |
0.1.0-prerelease0042 | 158 | 8/27/2025 |
0.1.0-prerelease0025 | 181 | 8/26/2025 |
0.1.0-prerelease0024 | 176 | 8/26/2025 |
0.1.0-prerelease0020 | 255 | 8/25/2025 |
Initial release. Full notes: https://github.com/veggerby/shardis/blob/main/CHANGELOG.md#010---2025-08-25