Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ADR 018: Database Patterns

Status: Proposed | Date: 2025-07-28

Context

Applications need managed persistent storage (databases, datalakes, files, objects) with automatic scaling and jurisdiction-compliant backup strategies.

Decision

Use Aurora Serverless v2 outside EKS clusters with automated scaling, multi-AZ deployment, and dual backup strategy. For datalakes, use SQL engines over object storage like DuckLake over AWS S3 or Trino over S3 tables

Implementation

Consequences

Benefits:

  • Serverless scaling reducing operational costs during low usage periods
  • Automated high availability with managed backup strategies per ADR 014: Object Backup
  • Compliance with jurisdiction requirements through dual backup approach

Risks if not implemented:

  • High operational overhead managing database infrastructure
  • Inconsistent backup strategies across database systems
  • Cost inefficiency from overprovisioned database resources