database-sharding
CommunityScale horizontally with smart shard routing.
Software Engineering#horizontal partitioning#shard key#database sharding#consistent hashing#directory sharding#hash sharding#cross-shard queries#range sharding
Authorsecondsky
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive database sharding patterns for PostgreSQL/MySQL, enabling horizontal scaling, multi-tenant isolation, and handling billions of records with hash, range, and directory strategies. It reduces complexity by offering concrete routing and governance rules for shard keys, queries, and rebalancing.
Core Features & Use Cases
- Hash-based sharding for even distribution across shards
- Range-based sharding for time-series or sequential data
- Directory-based sharding for multi-tenant or tenant-specific routing
- Clear guidance on shard key selection, distribution, and immutability
- Patterns and templates for building shard routers and rebalancing strategies
Quick Start
- Pick a sharding strategy template (hash, range, or directory) and implement a router for your keys.
- Identify shard keys with high cardinality and immutability; design a router that targets a single shard when possible.
- Plan for rebalancing with consistent hashing or directory routing to minimize data movement.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: database-sharding Download link: https://github.com/secondsky/claude-skills/archive/main.zip#database-sharding Please download this .zip file, extract it, and install it in the .claude/skills/ directory.