Exploring Cloudflare Durable Objects with Effect for Multi-Tenant Systems
Is anybody doing interesting work with Cloudflare Durable Objects in combination with Effect right now?
I'm working on a multi-tenant system and currently managing everything within one sharded database. In the future, I want to have better isolation at the tenant level and was wondering if Durable Objects (with SQLite as the storage layer) would provide me with a better isolation story here.
My question is focused on the connection between my frontend application and the "Tenant DO." The tenant detection (based on the subdomain) and user authentication happen in the "frontend application," which will also be a Cloudflare Worker that interacts with D1 (acts as a registry; holds user info for authentication). How would I interact with the DO? Can I use Effect RPC here, or is it not required?
I would love to hear some stories from people who have already implemented such an architecture.
I'm working on a multi-tenant system and currently managing everything within one sharded database. In the future, I want to have better isolation at the tenant level and was wondering if Durable Objects (with SQLite as the storage layer) would provide me with a better isolation story here.
My question is focused on the connection between my frontend application and the "Tenant DO." The tenant detection (based on the subdomain) and user authentication happen in the "frontend application," which will also be a Cloudflare Worker that interacts with D1 (acts as a registry; holds user info for authentication). How would I interact with the DO? Can I use Effect RPC here, or is it not required?
I would love to hear some stories from people who have already implemented such an architecture.

