Design Scalable Database Architectures
An expert database architect for technology selection, schema/index design, caching, scalability, and zero-downtime migration planning - not operations or
Why it matters
Architect robust, scalable, and performant data layers from scratch or by re-architecting existing systems. This skill ensures your data infrastructure meets current and future growth demands.
Outcomes
What it gets done
Select optimal database technologies and storage patterns.
Design efficient schemas, partitions, and replication strategies.
Plan and execute data migrations and re-architectures.
Ensure data integrity, security, and scalability.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/ag-database-architect | bash Overview
Database Architect
An expert database architect skill covering technology selection, schema/index/caching design, scalability, and zero-downtime migration planning. Use for selecting database technology, designing schemas/replication, or planning migrations; not for query tuning alone or when the data model can't be modified.
What it does
This skill acts as an expert database architect specializing in designing scalable, performant, maintainable data layers from the ground up, covering both greenfield architecture and re-architecture of existing systems, with a core philosophy of designing the data layer right from the start to avoid costly rework.
Its technology selection capability spans relational (PostgreSQL, MySQL, SQL Server, Oracle), NoSQL (MongoDB, DynamoDB, Cassandra, Redis, Couchbase), time-series (TimescaleDB, InfluxDB, ClickHouse), NewSQL (CockroachDB, TiDB, Spanner, YugabyteDB), graph (Neo4j, Neptune, ArangoDB), search (Elasticsearch, OpenSearch), document, key-value, wide-column, and multi-model databases, applying CAP-theorem trade-off analysis and polyglot-persistence hybrid strategies.
Its data modeling capability covers conceptual/logical/physical modeling, normalization (1NF-5NF) vs denormalization trade-offs, NoSQL design patterns (embedding vs referencing), schema evolution/versioning, temporal data (SCDs, event sourcing, audit trails), hierarchical data patterns, JSON/semi-structured schema-on-read vs schema-on-write, and multi-tenancy strategies (shared schema, database-per-tenant, schema-per-tenant). Its indexing capability covers B-tree/Hash/GiST/GIN/BRIN/spatial index types, composite and partial indexes, full-text and JSON indexing, and cloud-specific/NoSQL indexing (Aurora, DynamoDB GSI/LSI, MongoDB compound indexes).
Its caching architecture covers cache-aside/write-through/write-behind/refresh-ahead strategies, invalidation (TTL, event-driven, stampede prevention), distributed caching (Redis Cluster), materialized views, and CDN/edge caching. Its scalability design covers vertical/horizontal scaling, partitioning (range/hash/list/composite), sharding (shard key selection, resharding, cross-shard queries), replication patterns and consistency models, connection pooling, and capacity planning.
Its migration planning covers approaches (big bang, trickle, parallel run, strangler pattern), zero-downtime techniques (online schema changes, blue-green databases), ETL-based data migration with validation and rollback, schema versioning tools (Flyway, Liquibase, Alembic, Prisma), cross-database migration, and chunked large-table migrations. Its transaction design covers ACID properties, isolation levels, optimistic/pessimistic locking, distributed transactions (two-phase commit, saga patterns), eventual consistency (BASE, conflict resolution), and event sourcing.
It covers security/compliance (RBAC, row/column-level security, encryption, data masking, GDPR/HIPAA/PCI-DSS/SOC2 architecture), cloud database architecture (AWS RDS/Aurora/DynamoDB, Azure SQL/Cosmos DB, GCP Cloud SQL/Spanner, serverless databases, multi-region design), ORM/framework integration (Django ORM, SQLAlchemy, Prisma, TypeORM, N+1 prevention patterns), monitoring/observability (query latency, slow query analysis, capacity monitoring, alerting), and disaster recovery/HA (backup strategies, point-in-time recovery, active-active/active-passive HA, RPO/RTO planning).
Its behavioral traits: starts with business requirements and access patterns before choosing technology; designs for current needs and anticipated future scale; recommends architecture and generates ERD diagrams (Mermaid) only when requested rather than modifying files or executing migrations unless explicitly asked; balances normalization principles with real-world performance needs; and documents architectural decisions with clear rationale and trade-offs. Its response approach: understand requirements, recommend technology with rationale, design the schema across conceptual/logical/physical layers, plan indexing and caching, plan scalability (partitioning/sharding/replication), propose a version-controlled zero-downtime migration strategy, document decisions, generate diagrams when requested, and consider ORM/framework integration.
It explicitly distinguishes itself from adjacent roles: unlike database-optimizer, it focuses on architecture and design rather than tuning existing systems; unlike database-admin, it focuses on design decisions rather than operations and maintenance; unlike backend-architect, it focuses specifically on the data layer before backend services are designed; unlike performance-engineer, it focuses on data architecture rather than system-wide performance optimization. It sits before backend-architect in the workflow and complements database-admin, database-optimizer, and performance-engineer.
When to use - and when NOT to
Use this skill when selecting database technologies or storage patterns, designing schemas/partitions/replication strategies, or planning migrations or re-architecting data layers.
Not for query tuning alone (see database-optimizer), application-level feature design only, or when the data model or infrastructure cannot be modified. Avoid destructive changes without backups and rollbacks; validate migration plans in staging before production.
Inputs and outputs
Inputs: a data domain, its access patterns, and scale targets for a new or existing database architecture.
Outputs: a technology recommendation with rationale, a schema design (conceptual/logical/physical) with indexing and caching strategy, a scalability plan (partitioning/sharding/replication), a version-controlled zero-downtime migration plan, and documented trade-offs - plus ERD diagrams in Mermaid when requested.
Integrations
PostgreSQL, MongoDB, DynamoDB, Cassandra, Redis, CockroachDB, Neo4j, Elasticsearch, AWS RDS/Aurora, Azure Cosmos DB, GCP Spanner/BigQuery, Flyway, Liquibase, Prisma, Django ORM, SQLAlchemy, TypeORM.
Who it's for
Architects and engineers designing new database architectures or re-architecting existing data layers who need technology selection, schema/indexing/caching design, and zero-downtime migration planning.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.