Q. The overview doc says: > *D1 is designed for horizontal scale out across multiple, smaller (10

Q. The overview doc says:

D1 is designed for horizontal scale out across multiple, smaller (10 GB) databases, such as per-user, per-tenant or per-entity databases. D1 allows you to build applications with thousands of databases at no extra cost for isolating with multiple databases. D1 pricing is based only on query and storage costs.

How does this work? Can I provision a new one programatically (perhaps via CloudFlar API) or am I to create new D1 manually?

Or these multiple databases are provisioned automatically for me, e.g. my users in Japan would have one while my users in Brazil will have a different one?

In either of these scenarios the databases would have different data right?

OR

These databases are automatically replicated through CloudFlare's network and each group would have one D1 (Japan, and Brazil) but with the same data? If that's the case that means the max storage globally is 10gb?

I couldn't find this information in the docs.
Was this page helpful?