5 ms·
I'd have thought the SQLite database (D1) would be a more obvious fit for a blog?
by Super_Jambo 2y ago
I'd have thought the SQLite database (D1) would be a more obvious fit for a blog?
- bravura 2y agoI was stoked on D1 when it was announced. But the maximum DB size is 10GB (https://developers.cloudflare.com/d1/platform/limits/ https://developers.cloudflare.com/d1/platform/limits/). Really?
- Super_Jambo 2y agoI assume the intention is you store actual data in R2 objects and just hold references to them in D1.
- freetonik 2y agoNote that you can create up to 50,000 databases.
- jonutah 2y agoGood point, I'm making my way through exploring more of CF so I'll likely try a D1 variant of this. Ta
- Super_Jambo 2y agoI 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 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.