ArchDeck · 115 cards

← All families
Open full library ↗
← Back to family

S2 · Foundations

Row/Relational Storage

Structured Relationships

Overview

The workhorse of application development. Rows and columns. Tables and relationships. ACID guarantees. SQL queries. Decades of tooling and expertise.

When to use

  • Structured data with clear schemas
  • Complex queries and reporting
  • Transactions spanning multiple entities
  • Strong consistency requirements
  • Existing SQL expertise on team

Quick assessment

  • Do you need ACID transactions?
  • Is your schema well-defined and stable?
  • Do you need complex joins and queries?

In practice

How it works

Constraints and transactions protect related changes.

Make it work

Model relationships and transaction boundaries first. Add indexes for measured queries and check their write and storage costs.

The trade-off

Write scaling and schema changes take care. Extra indexes also add work to every write.

Which rules must hold within one transaction?

Key patterns

  • Normalization to reduce redundancy
  • Indexes for query optimization
  • Foreign keys for referential integrity
  • Transactions for atomic operations

Examples: PostgreSQL, MySQL, Oracle, SQL Server, SQLite

Counter-patterns

  • Denormalizing prematurely for performance
  • Over-indexing (hurts write performance)
  • Using for unstructured data

Reality check

Rich query capabilities and strong consistency, but scaling writes is challenging and schema changes can be painful.

NFR profile

security
4/5
usability
4/5
performance
3/5
reliability
4/5
scalability
2/5
testability
4/5
availability
3/5
extensibility
3/5
maintainability
4/5
Explore the full library and printable cards