Back to Decisions

Use Supabase for database and real-time

Accepted
Sarah Chen2024-01-10
databaseinfrastructurebackend
Context
Why this decision needed to be made

Need a scalable database solution that supports complex queries, real-time subscriptions for collaborative features, and handles task/project relationships efficiently.

Options Considered
Comparison of available options
OptionProsConsChosen
Supabase (PostgreSQL)Selected
  • SQL familiarity
  • Real-time built-in
  • Row-level security
  • Generous free tier
  • Managed service costs at scale
  • Vendor specific features
PlanetScale (MySQL)
  • Branching workflows
  • Serverless scaling
  • Vitess under the hood
  • No foreign keys
  • MySQL quirks
  • No real-time built-in
—
Self-hosted PostgreSQL
  • Full control
  • No vendor lock-in
  • Lowest cost at scale
  • DevOps overhead
  • Need to build real-time separately
—
Outcome
What was decided

Supabase PostgreSQL with real-time subscriptions

Rationale
Why this option was chosen

Best fit for our real-time collaboration requirements. RLS provides security without backend complexity. Team has PostgreSQL expertise. Pro plan ($25/mo) sufficient for MVP.