Use D1 Database without binding

With the recent announcement, it looks like we can create 50k D1 databases. https://twitter.com/elithrar/status/1710625227062055202 I want to have a shared worker, but have a worker interact with ~ 2k D1 tenants for each customer based on the request parameters. I don'T think binding every tenant DB to worker is feasible, there is a public API for query, but it's rate limited and maybe not the ideal way, so what's the direction I should take?
1 Reply
Palash Bansal
Palash Bansal15mo ago
Docs mention you can have upto 5000 bindings: https://developers.cloudflare.com/d1/platform/limits/ And there are APIs to create D1 database and patch the worker and patch the worker script to add a new binding https://developers.cloudflare.com/api/operations/cloudflare-d1-create-database https://developers.cloudflare.com/api/operations/worker-script-patch-settings
Limits · Cloudflare D1 docs
Many of these limits will increase during D1’s public beta. Join the #d1-beta channel in the Cloudflare Developer Discord or subscribe to D1’s public …
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Want results from more Discord servers?
Add your server