24 points · by yoeven · 2y ago · 19 comments
I discovered hosting SQLite on Fly which was crazy fast & cheap with the full power of a relational database but difficult to use and scale without writing tons of code & devops. Then I found Turso as a managed service which is pretty cool but again got really expensive and had to manage a bunch of replications manually and pay per replications (also not a big fan of the UI, lol).
Eventually, I found Cloudflare D1, which was amazing both cost at scale and performance with Cloudflare edge infra but it stops there, it's very hard to work with D1 out of the box and to scale it for an actual production platform with tons of limits and without getting locked into the Cloudflare ecosystem.
So I built Dzero on top of D1 as a fully managed service that automatically scales globally with over 320 edge locations at no additional cost and can easily be integrated into any platform or framework without getting locked into any ecosystem!
The goal of the dashboard was to be like a Supabase for SQLite, meaning that everything should be easily manageable from the dashboard, from creating tables to editing data!
Right now we are in early access and would love for you to sign up and give it a try! Feedback is always appreciated! We have big plans for Dzero, check out some of our plans on the site!
This is built on top of Cloudflare D1 as it clearly states but there are few things that I don't like about Cloudflare D1:
You cannot download your SQLite database as is. All you can do is dump an SQL file and when your database sizes are clocking at few GBs (let's say 5), that option is probably not going to work because the query/API also has a time out limit of 30 seconds and that data dumped as SQL (text) takes up way more space than it is in its binary form on disk.
This essentially means that you can kiss your data a goodbye and it is locked in there forever with no hope of getting it back ever as a whole.
For smaller databases, to do lists, note taking, personal expense tracker etc - probably you can live with those limitations.
The goal is eventually to provide a way for resumable downloads so you can download chunks at a time even for backups.
We'll be launching a backup dashboard soon to download your db backups!
A managed service layer on top of a managed service layer
Sounds expensive?
Looks super well done though. I would just be concerned... what's the funnel for people who find Cloudflare? Ok, what's the funnel for people who use D1? Ok, what's the funnel for people who know about Cloudflare/D1 and use it, and then go look for an extra layer on top/competitor
I guess you could hope on people never having to go down that path (how many people already integrated against D1 would eject and switch to this versus how many just find this originally)...
We're finding ways to keep cost low, with other methods of smart caching at the CDN level, S3 storage of SQLite files, etc.
One thing I found personally and have seen others face is that D1 is great on the technical side of things but just bad on the usability side which prevents many from trying out D1 or even actually implementing it for prod! Having the right UI and well built dev tooling around database is as important as the database itself. we see this with companies like supabase, people go there for the tooling built around Postgres and not just Postgres.
What's stopping Cloudflare from implementing this themselves?
This feels like the Vercel serverless fiasko from a month ago where they tried to boast better serverless performance characteristics than AWS Lambda, while building on top of that.
With CF you would need work with D1 within a worker function and manage the balancing of that worker with hundreds micro DBs when you scale which gets very complex. Something we solved to an extent but still more things to build to fully achieve that! Dzero allows you to use SQLite without the lock into the ecosystem of CF, so locally as well without the worker CLI and a bunch of workaround to run your project locally.
While D1 offers cached read data to some of their Edge locations, we took it a step further by cloning SQLite files and actually storing it in S3/R2 instances around the globe with read consistency. This allow for better performance gains and less cold starts of D1 and workers!
Lastly, working around the limits. The limits of 10GB per DB is a hard limit due to the infra, however account limits has "unlimited" scale which CF can unlock at a certain enterprise level. Our goal is to build a form of Horizontal/Vertical sharding similar to planetscale with multiple D1 instances to scale your data with 10GB per DB.
Maximum database size 10 GB (Workers Paid) Maximum storage per account 250 GB (Workers Paid)
Because I don’t know if this is intended but the vibe I get is that D1 does all the db stuff and Dzero is just a web view into your data itself.
—-
Slight OT: I appreciate the information density of the website.
D1 does the base infra stuff of running SQLite really well. We do the web dashboard stuff and also the API layer making it way more easier to interact with the database.
We do some infra stuff beyond D1 like duplicating SQLite nodes across the globe! Our goal is to make this even better with more feature allowing for better scalability