|
|
|
|
|
by internetter
825 days ago
|
|
Hi Matthew. Both Cloudflare[1] and Turso[2] have apparently very similar offerings at what appears to be better pricing. What does AstroDB provide to warrant the additional cost? +----------+------------------------+----------------+---------------+
| | Base Storage + Cost/GB | Reads | Writes |
+----------+------------------------+----------------+---------------+
| Astro DB | 1GB + $1.00 | 1b + $0.001/m | 1m + $1.00/m |
| D1 Free | 5GB | 150m | 3m |
| D1 Paid | 5GB + $0.75 | 25b + $0.001/m | 50m + $1.00/m |
| Turso | 9GB + $0.75 | 1b + $0.001/m | 25m + $1.00/m |
+----------+------------------------+----------------+---------------+
[1]: https://developers.cloudflare.com/d1/platform/pricing/[2]: https://turso.tech/pricing |
|
What differentiates Astro DB is the deep integration with the Astro framework and providing an easy path for common scenarios. Astro DB is a higher-level product than using a database service directly. For example, Astro DB handles migrations transparently for you and guides you when manual intervention is needed, just from running `astro db push`.
Astro DB also includes a local story, by default you use a local SQLite database that you can seed (using db/seed.ts) for local development. You can even use it for a purely static site, although we're still working on making SSG use-cases more seamless. For now though, this gives you a great local workflow for development that you can think easily connect to production with `astro build --remote`.