All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Durable Objects, Workers - New `us` jurisdiction for Durable Objects

8d ago

Source

CloudflareDurable Objects, Workers - New `us` jurisdiction for Durable Objectscloudflare.com
Snippet from the RSS feed
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 .

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.