
Database Sharding
This is a solid sharding implementation guide that covers hash, range, and directory strategies with working TypeScript routers you can actually use. It's strongest on the gotchas: wrong shard key selection causing hotspots, cross-shard transactions without two-phase commit, and the modulo rebalancing trap that breaks all your keys when you add a fifth shard. The shard key criteria checklist is genuinely helpful (high cardinality, immutable, in 80% of queries). If you're hitting billions of records or need multi-tenant isolation, this walks you through the decision tree and gives you production patterns from companies like Instagram and Discord. The error catalog is worth reading even if you're not implementing sharding yet.
- skills.sh installs
- 277
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill database-sharding --agent claude-codeInstalls into .claude/skills of the current project.
Files
This is a solid sharding implementation guide that covers hash, range, and directory strategies with working TypeScript routers you can actually use. It's strongest on the gotchas: wrong shard key selection causing hotspots, cross-shard transactions without two-phase commit, and the modulo rebalancing trap that breaks all your keys when you add a fifth shard. The shard key criteria checklist is genuinely helpful (high cardinality, immutable, in 80% of queries). If you're hitting billions of records or need multi-tenant isolation, this walks you through the decision tree and gives you production patterns from companies like Instagram and Discord. The error catalog is worth reading even if you're not implementing sharding yet.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Backend & APIs, Databases
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Sveltia Cms277
- Google Gemini File Search272
- Tailwind V4 Shadcn8.2K
- Aceternity Ui1.6K
- Vitest Testing1.3K
- Motion1.1K
- Playwright1.1K
- Api Testing910
- Responsive Web Design703
- Zod663
- Nano Banana Prompts626
- Image Optimization604
- Rest Api Design600
- Mobile First Design598
- Web Performance Optimization576
- Inspira Ui572
- Api Authentication549
- Code Review548
- Web Performance Audit542
- Vulnerability Scanning534
- Kpi Dashboard Design526
- Progressive Web App523
- Tanstack Table513
- Architecture Patterns508