{"id":17694933,"url":"https://github.com/hbmartin/comparison-serverless-cloud-sql-databases","last_synced_at":"2025-03-30T23:43:09.815Z","repository":{"id":227944377,"uuid":"771793390","full_name":"hbmartin/comparison-serverless-cloud-sql-databases","owner":"hbmartin","description":"Comparing hosted, serverless SQL cloud databases.","archived":false,"fork":false,"pushed_at":"2025-03-13T20:18:05.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T20:26:27.866Z","etag":null,"topics":["awesome","backend","comparison","database","serverless","sql"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hbmartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T00:44:11.000Z","updated_at":"2025-03-13T20:20:02.000Z","dependencies_parsed_at":"2024-07-09T01:48:42.647Z","dependency_job_id":"7a9336bb-27d3-4150-840d-ce7e9c99a003","html_url":"https://github.com/hbmartin/comparison-serverless-cloud-sql-databases","commit_stats":null,"previous_names":["hbmartin/comparison-serverless-cloud-sql-databases"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbmartin%2Fcomparison-serverless-cloud-sql-databases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbmartin%2Fcomparison-serverless-cloud-sql-databases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbmartin%2Fcomparison-serverless-cloud-sql-databases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hbmartin%2Fcomparison-serverless-cloud-sql-databases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hbmartin","download_url":"https://codeload.github.com/hbmartin/comparison-serverless-cloud-sql-databases/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395572,"owners_count":20770240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome","backend","comparison","database","serverless","sql"],"created_at":"2024-10-24T13:50:33.295Z","updated_at":"2025-03-30T23:43:09.806Z","avatar_url":"https://github.com/hbmartin.png","language":null,"readme":"# Comparing hosts for serverless cloud SQL databases\n\nThis document provides a comparison between hosted, serverless (no cost or management to spin down to zero) providers of SQL cloud databases.\n\nPlanetScale has been removed due to their user hostile pricing changes. Render has been removed since their free plan is disabled after 30 days. Tembo has been removed since their free plan is [disabled after 14 days](https://tembo.io/docs/product/cloud/free-trial).\n\nPlease join our [discussions](https://github.com/hbmartin/comparison-serverless-cloud-sql-databases/discussions) or fix/update information by [editing this doc](https://github.com/hbmartin/comparison-serverless-cloud-sql-databases/edit/main/README.md)!\n\nSee also the [Python FaaS Comparison](https://github.com/hbmartin/comparison-hosts-serverless-cloud-function-faas-for-python)\n\nSee also the [Authentication Providers Comparison](https://github.com/hbmartin/comparison-web-app-authentication-providers?tab=readme-ov-file)\n\n- [DevEx](#devex)\n- [Pricing](#pricing)\n- [Runtime Limits](#runtime-limits)\n- [Discussions, Community, and Support](#discussions-community-and-support)\n\n## DevEx\n\n|                                | Dialect                                                      | Status  | Cloud      | Cnxn         | OSS  | Examples                                                     | Docs |\n| ------------------------------ | ------------------------------------------------------------ | ------- | ---------- | ------------ | ---- | ------------------------------------------------------------ | ---- |\n| **Aurora Serverless v2 (AWS)** | PostgreSQL / MySQL                                           | GA      | AWS        |              |      |                                                              |      |\n| **Azure SQL Serverless**       |                                                              | GA      | Azure      |              |      |                                                              |      |\n| **CockroachDB**                | [Postgres compat.](https://www.cockroachlabs.com/docs/stable/postgresql-compatibility) | GA      | AWS / GCP  | Pool         | ✅    | [Link](https://www.cockroachlabs.com/docs/stable/example-apps) | 🚀    |\n| **D1 (Cloudflare)**            | SQLite                                                       | GA      | Cloudflare | HTTP         | 🚫    | [Link](https://developers.cloudflare.com/d1/get-started/)    | 🚀    |\n| **Gel** (fka EdgeDB)           | PosgreSQL + EdgeQL                                           | Early   | AWS        |              |      |                                                              |      |\n| **LiteFS**                     | SQLite                                                       | GA (v0) | Fly.io     | N/A          | ✅    | [Link](https://fly.io/docs/litefs/speedrun/)                 | 🚀    |\n| **MotherDuck**                 | DuckDB                                                       |         |            |              |      |                                                              |      |\n| **Neon**                       | PostgreSQL                                                   | GA      |            |              |      |                                                              |      |\n| **Nile**                       | PostgreSQL                                                   | Early   |            | Pool         |      | [Link](https://github.com/niledatabase/niledatabase/tree/main/examples) | 👍    |\n| **Nhost**                      | PostgreSQL + GQL                                             | GA      |            |              |      |                                                              | 👍    |\n| **Prisma**                     | Prisma ¹                                                     | GA      | Vultr      |              | ✅    | [Link](https://github.com/prisma/prisma-examples)            | 🚀    |\n| **Supabase**                   | PostgreSQL                                                   |         |            | Pool / HTTP  |      |                                                              | 🚀    |\n| **SurrealDB**                  | SurrealQL (PSQL-ish)                                         |         |            |              | ✅    | [Link](https://github.com/surrealdb/examples)                | 🚀    |\n| **Turso**                      | SQLite                                                       | GA      | ?          | Embed + HTTP | ✅    | [Link](https://github.com/tursodatabase/awesome-turso)       | 🚀    |\n| **Xata**                       | PostgreSQL                                                   | Early   |            |              |      |                                                              |      |\n\n1. Prisma uses PostgreSQL but does not expose a database connection. It requires the Prisma client library.\n\n## Pricing\n\nNote that the \"Free Plan\" is intended to represent ongoing free resources i.e. not trials or sign-up credits.\n\n|                                              | **Free Plan**                                       | Bill Limits | **First Paid Tier**                                          |\n| -------------------------------------------- | --------------------------------------------------- | ----------- | ------------------------------------------------------------ |\n| **Aurora Serverless v2 (AWS)**               |                                                     |             |                                                              |\n| **Azure SQL Serverless**                     |                                                     |             |                                                              |\n| **CockroachDB**                              | 10 GiB + 50M RUs / mo.                              | Yes         | $0.50 / GiB + $0.20 / 1M RUs (over free)                     |\n| **D1 (Cloudflare)**                          | 5M RR / day + 100k RW / day + 5 GB                  |             | $5 / mo for 25B RR + 50M RW + 5GB, after $0.001 / M RR + $1.00 / M RW + $0.75 / GB-mo |\n| **Gel**                                      | 1/16 vCPU, 1/2 GiB RAM, 1GB storage                 |             | $20 / mo for 1/8 vCPU, 1 GiB RAM, 10GiB storage, 100GiB transfer |\n| **LiteFS (Fly.io)**                          | 3 GB storage (including VM) + 160 GB egress (per ?) | ?           | $0.15 per GB / mo + $0.02 per GB egress (over free, min $5 / mo) + optional $0.50/GB / mo for backups |\n| **MotherDuck**                               |                                                     |             |                                                              |\n| **[Neon](https://neon.tech/pricing)**        | 500 MB, 190 CPU hours                               |             | $20 / mo = 10 GB, 300 CPU hours                              |\n| **[Nile](https://www.thenile.dev/pricing)**  | 1GB storage, 50M query tokens                       |             | $15 / mo = 5GB storage, 150M query tokens                    |\n| **[Nhost](https://nhost.io/pricing)**        | 1 GB storage, 5 GB egress                           |             | $25/mo = 10 GB storage, 50 GB egress + $0.20 / GB add'l storage |\n| **[Prisma](https://www.prisma.io/pricing)**  | 1 GB storage, 100k ops, 5MB response, 10s duration  | Yes         | $50/mo = 5 GB storage (+ $1.5 / GB), 100k ops (+ $8 / M), 10 MB response, 20s durtration |\n| **[Supabase](https://supabase.com/pricing)** | 500 MB, 5GB bw, 50k MAU                             |             | $25 / mo =  8GB storage, 250 GB bw + $0.125 / GB + $0.09 / GB bw |\n| **SurrealDB**                                | 1 GB storage Limited compute node size              |             |                                                              |\n| **Turso**                                    | 500 DBs, 9 GB, 1B row reads                         |             | 10k DBs, 24 GB                                               |\n| **[Xata](https://xata.io/pricing)**          | 15 GB storage                                       |             | $20/mo =  15 GB storage + $2 / GB                            |\n\nRUs = CPU + IOPs, mo = month, M = million, k = thousand, RR = rows read, RW = rows written, B = billion, bw = bandwidth\n\n## Runtime Limits\n\n|                                | DB Size            |                | # DBs              |                | Duration  |\n| ------------------------------ | ------------------ | -------------- | ------------------ | -------------- | --------- |\n|                                | **Default / Free** | **Max / Paid** | **Default / Free** | **Max / Paid** |           |\n| **Aurora Serverless v2 (AWS)** |                    |                |                    |                |           |\n| **Azure SQL Serverless**       |                    |                |                    |                |           |\n| **CockroachDB**                |                    |                |                    |                |           |\n| **D1**                         | 500 MB             | 2 GB           | 10                 | 50k            | 30 s      |\n| **LiteFS**                     |                    |                |                    |                |           |\n| **MotherDuck**                 |                    |                |                    |                |           |\n| **Neon**                       |                    |                |                    |                |           |\n| **Nhost**                      |                    |                |                    |                |           |\n| **Prisma**                     |                    |                | 10                 | 60             | See above |\n| **Supabase**                   |                    |                |                    |                |           |\n| **Turso**                      | 9 GB               | 24 GB          | 500                | 10k            |           |\n| **Xata**                       |                    | Early          |                    |                |           |\n\n## Discussions, Community, and Support\n\n|                                | Ours | Forum                                                        | GitHub                                                       | SO                                                           | Reddit                                                 |\n| ------------------------------ | ---- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------ |\n| **Aurora Serverless v2 (AWS)** |      |                                                              |                                                              |                                                              |                                                        |\n| **Azure SQL Serverless**       |      |                                                              |                                                              |                                                              |                                                        |\n| **CockroachDB**                |      | [Forum](https://forum.cockroachlabs.com/) [Slack](https://cockroa.ch/slack) | [GitHub](https://github.com/cockroachdb/cockroach)           | [SO](https://stackoverflow.com/questions/tagged/cockroachdb) | [r/CockroachDB](https://www.reddit.com/r/CockroachDB/) |\n| **D1 (Cloudflare)**            |      | [Forum](https://community.cloudflare.com/) [Discord](https://discord.com/invite/cloudflaredev) | [Projects](https://developers.cloudflare.com/d1/reference/community-projects/) | [SO](https://stackoverflow.com/questions/tagged/cloudflare-workers) | [r/CloudFlare](https://www.reddit.com/r/CloudFlare/)   |\n| **Gel**                        |      |                                                              |                                                              |                                                              |                                                        |\n| **LiteFS (Fly.io)**            |      | [Fly.io Forum](https://community.fly.io/)                    | [LiteFS](https://github.com/superfly/litefs)                 |                                                              |                                                        |\n| **MotherDuck**                 |      |                                                              |                                                              |                                                              |                                                        |\n| **Neon**                       |      |                                                              |                                                              |                                                              |                                                        |\n| **Nhost**                      |      |                                                              |                                                              |                                                              |                                                        |\n| **Nile**                       |      |                                                              |                                                              |                                                              |                                                        |\n| **Prisma**                     |      |                                                              |                                                              |                                                              |                                                        |\n| **Supabase**                   |      |                                                              |                                                              |                                                              |                                                        |\n| **Turso**                      |      | [Discord](https://discord.com/invite/turso)                  | [GitHub](https://github.com/tursodatabase)                   | [SO](https://stackoverflow.com/questions/tagged/turso)       |                                                        |\n| **Xata**                       |      |                                                              |                                                              |                                                              |                                                        |\n\n## References and Useful Links\n\n- [Vercel Data Latency Tester](https://edge-data-latency.vercel.app/)\n- [Article by Lee Robinson from Jan 28, 2023](https://leerob.substack.com/p/databases-serverless-edge)\n- [Article by Alex Patterson from June 6, 2023](https://codingcat.dev/post/2023-databases-for-serverless)\n- [Comparison by Pritam Barhate from March 29, 2023](https://mobisoftinfotech.com/resources/blog/serverless-database/)\n- [Article by Jignesh Solanki from Dec 12, 2021](https://www.simform.com/blog/serverless-databases/)\n- [Article by Alex DeBrie from June 20, 2019](https://www.serverless.com/blog/choosing-a-database-with-serverless)\n- [7+ Free PostgreSQL Hosting Platforms by Probir Sarkar from Nov 6, 2024](https://dev.to/probir-sarkar/7-free-postgresql-hosting-platforms-for-developers-in-2024-fi5)\n- [Serverless Database Query Performance](https://bejamas.com/compare/neon-vs-supabase-vs-xata)\n- [Dedicated SQL Pool vs. Serverless SQL—Comparison and Uses from Feb 10, 2022](https://www.royalcyber.com/blogs/dedicated-sql-pool-vs-serverless-sql/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhbmartin%2Fcomparison-serverless-cloud-sql-databases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhbmartin%2Fcomparison-serverless-cloud-sql-databases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhbmartin%2Fcomparison-serverless-cloud-sql-databases/lists"}