# dotnetcore/sharding-core

high performance lightweight solution for efcore sharding table and sharding database support read-write-separation .一款ef-core下高性能、轻量级针对分表分库读写分离的解决方案，具有零依赖、零学习成本、零业务代码入侵

Repository: https://github.com/dotnetcore/sharding-core
Canonical: https://ross.abutalabs.com/products/sharding-core
Homepage: https://xuejmnet.github.io/sharding-core-doc/
Language: C#
License: Apache-2.0
License Family: permissive
Topics: efcore, entity-framework-core, orm, read-write-separation, sharding
Last push: 2026-07-29T00:30:18+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 71, longevity 100
- inputs: {"age_days": 2046, "days_push": 36, "days_rel": 36, "gap_med": 159, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1285, forks 182 (observed 2026-08-28T04:04:14.710632+00:00)

## What it is
ShardingCore is a high-performance, lightweight .NET library that adds table sharding, database sharding, and read-write separation to Entity Framework Core. It works by extending DbContext so existing business code requires no changes, with zero dependencies beyond EF Core itself.

## Use cases
- shard large tables in ef core
- split database across multiple servers with ef core
- add read-write separation to entity framework core
- scale out postgres or mysql tables by date with efcore
- add sharding to existing .net app without changing business code
- multi-tenant database routing in ef core

## When to choose
- you use EF Core and need table or database sharding with minimal code changes
- you want read-write separation across replicas in a .NET application
- you need multi-tenant routing or date-based table partitioning on .NET

## When to avoid
- your project does not use Entity Framework Core
- you need sharding for non-.NET stacks or ORMs other than EF Core
- you need a fully managed distributed database rather than an application-level sharding layer

## Facets
- artifact type: library
- maturity: active
- function: orm, database, routing
- domain: databases, backend, developer-tools
- platform: dotnet, cross-platform
- tags: efcore, sharding, read-write-separation, sharding-table, sharding-database, multi-tenant

## Member repositories
- dotnetcore/sharding-core (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:14.710632+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:56:38.982578+00:00, confidence not recorded.
  - readme: https://github.com/dotnetcore/sharding-core (fetched 2026-08-28T04:04:14.710632+00:00, sha 1e866028891e)
  - homepage: https://xuejmnet.github.io/sharding-core-doc/ (fetched 2026-08-29T12:12:16.569044+00:00, sha 66dda71021f5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
