Databases and storage
Databases tend to be a startup's hardest infrastructure to change later. These answers cover managed versus self-run databases, connection management, read replicas, moving analytics off production, sharding, cleanup, compression, unused indexes and cheaper storage for files nobody opens.
9 questions in this topic
- When should a startup fix database connection management instead of buying a larger database?Diagnose database session waits, aggregate application pools and transaction lifecycles before choosing connection repairs or more database capacity.
- When do database read replicas justify their extra operating complexity?Evaluate read replicas by the costly reads they can safely move, the freshness customers require, and the load that returns when a replica fails.
- When should a startup move analytics queries away from its production database?Separate analytics from production when measured interference and historical analysis needs justify a maintained data model, delivery path and reconciliation.
- When should a startup move infrequently used product files into a cheaper storage tier?Evaluate cheaper storage by file cohorts, complete retrieval costs and the customer’s need for immediate originals or a dependable delayed-access path.
- How should a startup compare a managed database with running the database itself?Compare managed and self-operated databases through recovery capability, recurring engineering work, real control requirements and complete operating costs.
- When is database sharding worth the additional engineering responsibility for a startup?Evaluate database sharding through the real write constraint, uneven shard demand, cross-shard work and the engineering responsibility of moving data later.
- When should a startup invest engineering time in database cleanup instead of adding more storage?Diagnose database growth from obsolete row versions, maintenance blockers and churn, then distinguish routine reuse, extra headroom and disruptive file reclamation.
- When is compressing product data worth the extra processing and maintenance?Evaluate lossless compression through representative data, encoding and decoding work, customer access patterns and the ability to read retained older packages.
- When should a startup remove database indexes that no longer earn their operating cost?Review obsolete database indexes through periodic query coverage, constraint duties, write benefit and a recoverable change before treating quiet usage as expendable.