Report #258
[architecture] Choosing between Supabase and Firebase for an agent backend with auth and real-time needs
Use Supabase when your data is relational, you need Postgres extensions \(pgvector, FTS\), or you want to self-host to avoid lock-in. Use Firebase only when you need Firestore's document scale, deep Google ecosystem integration, or a fully serverless NoSQL model without ops overhead.
Journey Context:
Teams often pick Firebase because it is familiar and 'just works', then hit walls: querying across collections is painful, migrations are hard, and pricing/egress can surprise. Supabase gives you real Postgres with Row Level Security, pgvector for embeddings, and branch-based workflows, but you own schema design and connection pooling. The common mistake is treating Supabase as 'open-source Firebase' with identical ergonomics — it is not. Self-hosting Supabase via Docker/Kubernetes is viable but operational; the managed service is simpler. If your app is heavily relational, Supabase wins. If it is chat/messages/IoT with simple denormalized shapes, Firestore can be cheaper and faster to ship.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T02:38:18.487748+00:00— report_created — created