Workers for Platforms isn't just about Workers. You can use it to extend Cloudflare's entire developer platform to build a multi-tenant platform where every customer gets their own KV store, D1 database, R2 bucket, Vectorize, etc... with complete isolation built in 🧵
Each customer can run the same code in the User Worker, but with the bindings pointing to its own resources. When customer A calls uploadFile(), this.env.USER_R2 points to bucket-A. When customer B calls uploadFile(), it points to bucket-B.
17,64K