VIP 👤
🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis 🔌 APIs e roteadores
advanced

Horizontal Sharding Strategy

#database-scalability #sharding #postgresql #performance

Develop a strategy for horizontal sharding of a multi-tenant PostgreSQL database.

Assume the role of a Database Engineer. You need to scale a multi-tenant SaaS application with a single monolithic PostgreSQL database that has reached write performance limits. Propose a horizontal sharding strategy. Discuss how you would choose a shard key (e.g., hash vs. range), handle cross-shard queries, manage rebalancing data as the number of tenants grows, and ensure referential integrity across shards.