Hacker News new | ask | show | jobs
by Super_Jambo 600 days ago
I'd have thought the SQLite database (D1) would be a more obvious fit for a blog?
2 comments

Good point, I'm making my way through exploring more of CF so I'll likely try a D1 variant of this. Ta
I have been very impressed with what you can build on it.

I built this little service to add UK specific political location data to Action Network CRM. 300 lines for the actual service!

code here: https://github.com/jms301/ANUpdaterUK/blob/main/src/index.js

Sure it's only taking a webhook, reading an API, looking up a db entry and then updating via API.

But just knowing it's running on someone else's infra and there's so little code to validate is very comforting.

Prior to this I had a version running on a VPS and yeah I can do it. But you end up with a LOT of code / config to run the web server, the queue, the database... And any of that could be introducing bugs and security problems.

I was stoked on D1 when it was announced.

But the maximum DB size is 10GB (https://developers.cloudflare.com/d1/platform/limits/).

Really?

I assume the intention is you store actual data in R2 objects and just hold references to them in D1.
Note that you can create up to 50,000 databases.