Alternatives to SQL/Supabase for Backend Data Management
Some major backend data management tools (besides Supabase) and what they focus on:
Tool | Type | Key Feature | Similar to Supabase? | |||
---|---|---|---|---|---|---|
Firebase | NoSQL / Realtime DB | Live syncing, JSON-based | ✅ Realtime, but NoSQL | |||
MongoDB Atlas | NoSQL | Document database (JSON), scalable | ❌ No SQL schema | |||
PlanetScale | SQL (MySQL) | Serverless MySQL, scalable | ✅ SQL alternative | |||
Hasura | GraphQL + Postgres | Auto GraphQL API from SQL | 🔁 Can wrap Supabase | |||
Direct PostgreSQL (on GCP/AWS) | SQL | Manual setup, deep control | 🟡 More raw than Supabase | |||
DynamoDB | NoSQL (AWS) | Event-driven, scalable | ❌ Not SQL | |||
Firestore (Firebase) | NoSQL + Realtime | Firebase’s modern backend | ✅ Google-backed | |||
| SQL + GraphQL | Supabase alternative | ✅ Yes |
Supabase supports:
1. SQL Functions
-
Written in PostgreSQL SQL or PL/pgSQL.
-
Run inside the database itself.
-
Example:
sql
create function summarize_text(input text) returns text as $$
begin
return left(input, 100); -- simplistic summary
end;
$$ language plpgsql;
-
One can call this function from React frontend using Supabase JS SDK:
js
const { data, error } = await supabase.rpc('summarize_text', { input: "long text" });
2. Edge Functions
-
Written in TypeScript or JavaScript.
-
Hosted on Deno (similar to serverless functions).
-
Can access Supabase data via REST or RPC (Remote Procedure Call).
-
Triggered via HTTP or Supabase Events (soon fully event-driven).
Key Differences
Feature | Supabase | Firebase |
---|---|---|
Function Language | SQL, PL/pgSQL, TypeScript (Deno) | JavaScript/TypeScript (Node.js) |
Triggered By | HTTP, RPC, Realtime (limited) | DB writes, Auth, HTTP, scheduled |
Function Location | Inside DB (SQL) or Edge (Deno) | Google Cloud Functions (Node) |
Best For | Structured DB logic | Reactive, flexible event handling |
-
Supabase focuses more on database-native logic (SQL, PL/pgSQL).
-
Firebase is better for event-driven serverless logic (Node functions).