Skip to content

Commit ab79006

Browse files
docs: update db access control & neon vs supabase (#1056)
* update db access control & neon vs supabase * Update content/blog/database-access-control-best-practices.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update content/blog/neon-vs-supabase.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update content/blog/neon-vs-supabase.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update content/blog/neon-vs-supabase.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4072f13 commit ab79006

File tree

2 files changed

+66
-34
lines changed

2 files changed

+66
-34
lines changed

content/blog/database-access-control-best-practices.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ tags: Explanation
77
description: 'Best practices for database access control covering least privilege, RBAC, just-in-time access, and compliance with SOC 2, HIPAA, and GDPR.'
88
---
99

10-
Database access control determines who can connect to your database, what they can do once connected, and how long that access lasts. Get it wrong and you are one `DROP TABLE` away from a production incident, or one leaked credential away from a compliance violation.
10+
Database access control is the set of policies and mechanisms that determine who can connect to a database, what operations they can perform, and how long that access lasts. It covers both authentication (proving identity) and authorization (granting permissions) at the database engine level, independently of application-layer controls.
1111

12-
Most teams start with a shared admin account and a handful of application credentials. That works until the first [SOC 2 audit](/blog/soc2-data-security-and-retention-requirements/) asks *"who ran this query on March 3rd?"* and nobody can answer. This guide covers the principles, engine-specific mechanics, and common mistakes of database access control, along with practical ways to fix them.
12+
Get it wrong and you are one `DROP TABLE` away from a production incident, or one leaked credential away from a compliance violation. Most teams start with a shared admin account and a handful of application credentials. That works until the first [SOC 2 audit](/blog/soc2-data-security-and-retention-requirements/) asks *"who ran this query on March 3rd?"* and nobody can answer. This guide covers the principles, engine-specific mechanics, and common mistakes of database access control, along with practical ways to fix them.
1313

14-
## What is database access control?
14+
## What a working access control system looks like
1515

16-
Database access control is the set of rules that govern authentication (proving identity) and authorization (granting permissions) at the database level. It operates independently from application-level permissions. Even if your app restricts what users see in the UI, anyone with direct database credentials can bypass those restrictions entirely.
17-
18-
A working access control system answers four questions:
16+
Even if your app restricts what users see in the UI, anyone with direct database credentials can bypass those restrictions entirely. A working access control system answers four questions:
1917

2018
1. **Who** is connecting? (A named individual, not a shared account.)
2119
2. **What** can they do? (Read, write, alter schema, grant permissions to others.)

content/blog/neon-vs-supabase.md

Lines changed: 62 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: 'Neon vs. Supabase: Which One Should I Choose'
33
author: Tianzhou
4-
updated_at: 2025/04/28 09:00
4+
updated_at: 2026/03/25 09:00
55
feature_image: /content/blog/neon-vs-supabase/cover.webp
66
tags: Comparison
7-
description: 'Neon and Supabase are the 2 new generation Postgres service providers. This is an extensive comparison between Neon and Supabase on architecture, compatibility, agentic workload, developer workflow, scalability, operability, integration, compliance, pricing and more.'
7+
description: 'Neon and Supabase are the 2 new generation Postgres service providers. This is an extensive comparison between Neon and Supabase on architecture, compatibility, agentic workload, developer workflow, scalability, integration, compliance, pricing and more.'
88
---
99

1010
<HintBlock type="info">
@@ -18,16 +18,19 @@ This post is maintained by Bytebase, an open-source database DevSecOps tool that
1818
| 2024/07/02 | Initial version. |
1919
| 2025/04/28 | Updated for 2025. Improved pricing |
2020
| 2025/05/19 | Add agentic workload |
21+
| 2026/03/25 | Updated for 2026. Pricing, Neon acquisition, features |
2122

22-
Besides the typical Postgres service providers like AWS RDS, Google Cloud SQL, DigitalOcean Managed Databases, [Neon](https://neon.tech/) and [Supabase](https://supabase.com/) are the two modern Postgres service providers.
23+
**Neon is a serverless Postgres database; Supabase is a backend-as-a-service platform built on Postgres.** Choose Neon if you want a standalone, scale-to-zero Postgres with instant branching. Choose Supabase if you want a full-stack platform with auth, storage, realtime, and edge functions included alongside your database.
24+
25+
Besides the typical Postgres service providers like AWS RDS, Google Cloud SQL, DigitalOcean Managed Databases, [Neon](https://neon.com/) and [Supabase](https://supabase.com/) are the two modern Postgres service providers.
2326

2427
<HintBlock type="info">
2528

26-
On May 14, 2025, Databricks has [announced](https://www.databricks.com/blog/databricks-neon) to acquire Neon.
29+
Databricks [completed its acquisition](https://www.databricks.com/blog/databricks-neon) of Neon in 2025 for ~$1 billion, making Neon the Postgres foundation for Databricks' agentic AI platform. Neon continues to operate as an independent product with its own pricing and brand (now at neon.com).
2730

2831
</HintBlock>
2932

30-
On the surface, Neon and Supabase are different products. Neon is a database service. While Supabase is a BaaS (Backend-as-a-Service) and Postgres is one of its included service.
33+
On the surface, Neon and Supabase are different products. Neon is a database service. Supabase is a BaaS (Backend-as-a-Service) and Postgres is one of its included services.
3134

3235
They are comparable because they both offer a **developer-friendly**, **scalable** Postgres service. In the agentic era, each aims to become the de-facto database for agentic workloads.
3336

@@ -47,11 +50,11 @@ the following dimensions:
4750
- [Compatibility](#compatibility)
4851
- [Branching](#branching)
4952
- [Agentic Workload](#agentic-workload)
50-
- [Operability](#operability)
5153
- [Integration](#integration)
5254
- [Compliance](#compliance)
5355
- [Open Source](#open-source)
5456
- [Pricing](#pricing)
57+
- [FAQ](#faq)
5558

5659
## Architecture
5760

@@ -71,7 +74,7 @@ database with various middlewares.
7174
Neon is mostly compatible with vanilla Postgres whereas Supabase is a dedicated vanilla Postgres instance. They both bear the limitations of
7275
a hosted database service (e.g. no superuser).
7376

74-
- [Neon compatibility](https://neon.tech/docs/reference/compatibility)
77+
- [Neon compatibility](https://neon.com/docs/reference/compatibility)
7578
- [Supabase compatibility](https://supabase.com/docs/guides/database/postgres/roles-superuser)
7679

7780
## Branching
@@ -93,27 +96,31 @@ Both Neon and Supabase highlight AI agents as a primary use case.
9396
![neon-agent](/content/blog/neon-vs-supabase/neon-ai-agent.webp)
9497
![supabase-agent](/content/blog/neon-vs-supabase/supabase-ai-agent.webp)
9598

96-
In fact, one of the key reasons Databricks likely acquired Neon is its architecture’s strong alignment with agentic workloads.
99+
The Databricks acquisition confirmed that Neon’s architecture — instant provisioning, scale-to-zero, and per-agent database branching — is purpose-built for agentic workloads.
97100

98101
![neon-4x-agent-db](/content/blog/neon-vs-supabase/neon-4x-agent-db.webp)
99102

100-
While more AI app builders today—such as [Lovable](https://lovable.dev/) and [bolt](https://bolt.new/)—are adopting Supabase, Neon's instant provisioning and scale-to-zero capabilities make it better suited for agentic applications.
103+
Neon now offers a unified `neon init` command that configures both its MCP Server and VS Code Extension in one step, giving AI coding assistants like Cursor direct database access. Neon Auth also branches automatically alongside database branches, so preview environments get isolated auth state.
104+
105+
Supabase is responding with its own agentic play. BKND joined Supabase to build a Lite offering specifically for agentic workloads. AI app builders such as [Lovable](https://lovable.dev/) and [bolt](https://bolt.new/) continue to adopt Supabase as their default backend.
106+
107+
Overall, Neon’s scale-to-zero and instant branching make it better suited for agents that spin up many short-lived databases. Supabase’s full-stack platform is a better fit for AI app builders who need auth, storage, and realtime alongside the database.
101108

102109
## Integration
103110

104-
Neon integrates with application platforms such as Vercel to provide a high-fidelity preview environment.
111+
Neon integrates with application platforms such as Vercel to provide a high-fidelity preview environment. The Vercel integration now automatically provisions Neon Auth on preview branches, so authentication works out of the box in preview deployments. Neon is also now part of the Databricks ecosystem, opening up integrations with Databricks' data and AI tools.
105112

106-
Supabase is an application platform by itself. Thus it boasts a wide variety of integrations.
113+
Supabase is an application platform by itself and boasts a wide variety of integrations.
107114

108115
![supabase-integration](/content/blog/neon-vs-supabase/supabase-integration.webp)
109116

110-
Also there are quite a few SaaS boilerplates based on Supabase.
117+
Recent additions include a one-click Stripe Sync Engine integration (query customers, subscriptions, and invoices with SQL) and the Hydra-powered Supabase Warehouse for analytics workloads. There are also quite a few SaaS boilerplates built on Supabase.
111118

112119
## Compliance
113120

114-
Both Neon and Supabase achieves SOC2 Type 2. Supabase is additionally HIPAA compliant, a requirement for storing health data such as medical records:
121+
Both Neon and Supabase achieve SOC 2 Type 2. Both now offer HIPAA compliance — Neon added HIPAA eligibility on its Scale plan after the Databricks acquisition.
115122

116-
- [Neon security](https://neon.tech/docs/security/security-overview)
123+
- [Neon security](https://neon.com/docs/security/security-overview)
117124
- [Supabase security](https://supabase.com/security)
118125

119126
## Open Source
@@ -128,30 +135,57 @@ Supabase is one of the most popular repositories on GitHub, while Neon's star gr
128135

129136
## Pricing
130137

131-
Both Neon and Supabase offer a free tier and tiered pricing models that scale with usage. However, their pricing structures differ significantly in how they charge for resources.
138+
Both Neon and Supabase offer a free tier and usage-based pricing, but their models differ significantly.
139+
140+
### Neon — Usage-Based (Pay for What You Use)
132141

133-
Neon uses a compute-hours model with the ability to scale to zero when not in use. Their pricing is based on:
142+
Post-Databricks acquisition, Neon slashed prices: storage dropped from $1.75 to **$0.35 per GB-month** and compute costs fell ~25%.
134143

135-
1. **Base subscription fee** (Free, Launch at $19/month, Scale at $69/month, Business at $700/month)
136-
1. **Compute hours consumed** (each plan includes a set amount)
137-
1. **Storage used** (regular and archive storage)
144+
| Plan | Monthly Cost | Included Compute | Compute Rate | Storage | Key Limits |
145+
| ---- | ------------ | ---------------- | ------------ | ------- | ---------- |
146+
| Free | $0 | 100 CU-hours/project | N/A | 0.5 GB/project | Up to 2 CU, scale-to-zero |
147+
| Launch | Usage-based (~$15 typical) | - | $0.106/CU-hour | $0.35/GB-month | Up to 16 CU, 100 projects |
148+
| Scale | Usage-based (~$701 typical) | - | $0.222/CU-hour | $0.35/GB-month | Up to 56 CU, SLA, SOC 2, HIPAA |
149+
| Business | Custom | Custom | Custom | Custom | Dedicated infra, premium support |
138150

139-
The Free plan includes 191.9 compute hours per month (enough to run a 0.25 CU compute 24/7) and 0.5 GB of storage. Paid plans include more compute hours and storage, with the option to purchase additional resources as needed.
151+
Neon's scale-to-zero means you pay nothing when the database is idle — a significant advantage for dev/test environments and agentic workloads that spin up many short-lived databases.
140152

141-
Supabase uses a dedicated compute instance model with hourly billing. Their pricing is based on:
153+
### Supabase — Platform Fee + Usage
142154

143-
1. **Base subscription fee** (Free, Pro at $25/month, Team at $599/month, Enterprise with custom pricing)
144-
1. **Compute instance size** (from Nano to 16XL)
145-
1. **Usage-based components** (active users, storage, bandwidth, etc.)
155+
Supabase charges a platform subscription fee plus usage-based overages.
146156

147-
The Free plan includes a Nano compute instance with shared CPU and up to 0.5 GB of memory, 500 MB of database storage, and 50,000 monthly active users. Paid plans include $10/month in compute credits and additional resources.
157+
| Plan | Monthly Cost | Database | Auth MAU | Storage | Key Features |
158+
| ---- | ------------ | -------- | -------- | ------- | ------------ |
159+
| Free | $0 | 500 MB | 50K | 1 GB | 2 projects, paused after 7 days idle |
160+
| Pro | $25 + usage | 8 GB included | 100K | 100 GB | $10 compute credit, spend cap |
161+
| Team | $599 + usage | 8 GB included | 100K | 100 GB | SSO, SOC 2, 28-day logs |
162+
| Enterprise | Custom | Custom | Custom | Custom | SLA, 24/7 support, BYO cloud |
163+
164+
Supabase's pricing includes auth, storage, edge functions, and realtime — all bundled into the platform fee. If you need these services, the value proposition is strong compared to assembling them separately.
148165

149166
## Neon or Supabase
150167

151-
If you want a Postgres database without whistles and bells, Neon is almost the perfect database a developer would desire. It has serverless, branching, auto-scaling.
168+
If you want a **standalone Postgres database** with serverless scaling, instant branching, and scale-to-zero, Neon is the stronger choice. It is especially well-suited for agentic workloads and development workflows that benefit from lightweight, ephemeral databases. The Databricks acquisition gives it additional backing for long-term investment.
169+
170+
If you are building a **full-stack application** and want auth, file storage, realtime subscriptions, and edge functions included alongside your database, Supabase provides a more complete platform. Its dashboard, growing integration ecosystem, and active community make it a productive choice for shipping quickly.
171+
172+
## FAQ
173+
174+
### Is Neon still independent after the Databricks acquisition?
175+
176+
Yes. Neon continues to operate as an independent product with its own pricing, brand, and roadmap. It is now available at [neon.com](https://neon.com/) (previously neon.tech).
177+
178+
### Can I self-host Neon or Supabase?
179+
180+
Both are open source under Apache 2.0. [Neon](https://github.com/neondatabase/neon) and [Supabase](https://github.com/supabase/supabase) can be self-hosted, though the managed services include features (HA, backups, monitoring) that require additional setup when self-hosting.
181+
182+
### Which is cheaper for a small project?
183+
184+
Both offer generous free tiers. Neon's free plan includes 100 CU-hours and 0.5 GB storage per project. Supabase's free plan includes 500 MB database, 50K MAU, and 1 GB file storage. For hobby projects, both are effectively free. As you scale, Neon's usage-based model can be cheaper if your workload is bursty (scale-to-zero saves cost during idle periods), while Supabase's bundled platform can be cheaper if you would otherwise pay separately for auth, storage, and realtime.
185+
186+
### Which has better performance?
152187

153-
If you're looking for a dedicated Postgres instance or are looking to build a full-stack application, Supabase has everything
154-
you need. It has database, auth, APIs, and more, with continuous improvements to its dashboard and developer experience.
188+
Both run vanilla Postgres, so raw query performance is comparable. Neon's shared-storage architecture adds a small latency overhead on cold starts but enables instant branching and scale-to-zero. Supabase runs dedicated Postgres instances with no cold-start penalty. For latency-sensitive production workloads, Supabase's always-on compute may have a slight edge; for workloads with variable traffic, Neon's autoscaling can be more efficient.
155189

156190
## Other Comparisons
157191

0 commit comments

Comments
 (0)