Cloudflare for high load multiuser application

I'm thinking of Cloudflare's stack for a web app (generally a learning platform with admin features, users, chats, full-text search etc.). Is there anything I should be aware of, specifically the limitations of the D1 database for such case? What about user concurrency? Is there any potential problems integrating solutions like Durable Objects and Websockets? The application framework is Remix (Vite).
2 Replies
Chaika
Chaika9mo ago
D1 has certain limits, like 2 GB size for paid, and the fact it currently is just a single threaded DO limits its operations/second: https://discord.com/channels/595317990191398933/992060581832032316/1220641392359903305 They plan on adding read only replicas and such in the future and increasing size to 10 GB, but nothing yet Durable Objects currently cannot be declared in Pages, you'd need to make it in a Worker and then you can reference it/use it in a Pages Project Of course, D1 is also currently in beta and not recommended for production traffic Durable Objects can scale to the moon though as long as you can shard your usage across more then one, like one per chat room or something. No issues having millions of instances, it's how D1 works under the hood as well
predaytor
predaytorOP9mo ago
Thx for clarification. Looking forward for future updates. The dx using Cloudflare is top-notch!
Want results from more Discord servers?
Add your server