Skip to content

Architecture for DBAs and database architects

Applications come and go; data stays. A DBA’s architecture question is: will the data stay correct, available and fast as the system grows and changes? Many of the hardest architecture decisions, such as consistency, scale, recovery and how to change a live system, land on the database first. And many famous outages started there.

DBAs are often brought in after the design is done, to tune queries or fix a failover that didn’t work. The highest-value time to involve a DBA is earlier: when the data model, the consistency needs and the recovery targets are being decided.

Stage Your question What to push for
Requirements How much data loss and downtime is acceptable? Agreed RPO and RTO, data retention periods, growth estimates
Data modeling Does the model match how the data is used and changed? Clear ownership of each table or collection; keys that won’t need to change
Technology choice Is this the right kind of database for this workload? A deliberate choice between relational, document, key-value, wide-column and search stores, not a default
Scale design Where will it hit limits first? Read replicas, caching, partitioning or sharding with a key that fits the access pattern
Integration Who else reads or writes this data? APIs or events instead of other systems querying your tables directly; change data capture for analytics
Change management How do schema changes reach production? Versioned migrations in the pipeline, backward-compatible changes, no long locks
Recovery Have we restored from backup recently? Tested restores, point-in-time recovery, documented failover

Architecture decisions that change your job

Section titled “Architecture decisions that change your job”
  • Microservices usually mean each service owns its data, in its own database or a private schema: more, smaller databases, no cross-database joins, and consistency handled with patterns such as the saga and the transactional outbox.
  • CQRS and event sourcing separate write models from read models and may make an event log the source of truth.
  • Cloud managed databases shift work from patching and hardware to configuration, cost and choosing the right service tier. See high availability and multi-region.
  • Data mesh and the lakehouse change how operational data flows into analytics.
  • Regulation such as PCI DSS, HIPAA and lending record retention turns encryption, masking, audit and retention into design requirements. See lending and payments.
  • Explain and tune queries: paste a query and its execution plan and ask for likely causes of slowness and candidate indexes, then test them on production-sized data.
  • Extract business rules from stored procedures before migrations. See understanding legacy systems.
  • Review migration scripts for locking, long-running operations and missing rollback steps.
  • Draft data dictionaries and lineage from schemas and ETL code.
Review this migration for a [PostgreSQL/MySQL/...] database with
[table sizes] under [load]. For each statement: will it lock, rewrite
the table or run long? Suggest a zero-downtime alternative using expand
and contract, and a rollback plan. Mark version-specific behavior.
[paste migration]

Never paste production data or credentials into an unapproved tool, and verify engine-specific advice against your version’s documentation. See guardrails.

DBAs become database and data architects, and many go on to solution and enterprise architecture, where an understanding of data is one of the scarcest skills. Useful steps:

  1. Learn the application side. Understand how services use the data: access patterns, transactions, ORMs and caches.
  2. Know more than one kind of database, and be able to explain when each is the right choice.
  3. Think in failure modes: replication lag, split brain, long-running locks, runaway queries, storage filling up.
  4. Own recovery as a product. Tested restores and measured RTO and RPO are an architect’s evidence.
  5. Learn the data platform, from change data capture to the warehouse or lakehouse, so you can design the whole flow of data, not just one store.

Written and edited by Abhinav Taduka, enterprise software architect.