Durable Objects now supports US jurisdiction
Durable Objects can now be restricted to the US jurisdiction, allowing compute and data storage within the United States to meet data residency requirements. Workers can access these US-restricted Durable Objects from anywhere in the world.
Durable Objects now supports a us jurisdiction, letting you create Durable Objects that only run and store data within the United States. Use the us jurisdiction when you need to keep a Durable Object's compute and storage inside the United States to meet data residency requirements.
Create a namespace restricted to the us jurisdiction the same way as any other jurisdiction:
// Worker
export default {
async fetch(request, env) {
const usSubnamespace = env.MY_DURABLE_OBJECT.jurisdiction("us");
const stub = usSubnamespace.getByName("general");
return stub.fetch(request);
},
};
Workers may still access Durable Objects constrained to the us jurisdiction from anywhere in the world. The jurisdiction constraint only controls where the Durable Object itself runs and persists data.
For the full list of supported jurisdictions, refer to Data location — Restrict Durable Objects to a jurisdiction.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.