My platform is a standalone project and I needed to find a way to interact with D1 to create and pro
My platform is a standalone project and I needed to find a way to interact with D1 to create and provision each DB. But there is a potential problem I've come across that I would like help with.
First, if I use the API, I have to worry about the 1200 req / 5 min. This makes the API not usable since we also store dynamic tenant specific data that has a good chance of exceeding the 1200 req / 5 min threshold.
Then I looked into Workers as a bridge between my platform and the D1 databases. Idea was platform <-> worker <-> specific D1 DB. But the docs on Cloudflare say that I need to instantiate wrangler.toml with database-specific bindings, so how do I dynamically update the bindings based on the type of request my platform makes? Is this possible at all?
First, if I use the API, I have to worry about the 1200 req / 5 min. This makes the API not usable since we also store dynamic tenant specific data that has a good chance of exceeding the 1200 req / 5 min threshold.
Then I looked into Workers as a bridge between my platform and the D1 databases. Idea was platform <-> worker <-> specific D1 DB. But the docs on Cloudflare say that I need to instantiate wrangler.toml with database-specific bindings, so how do I dynamically update the bindings based on the type of request my platform makes? Is this possible at all?

