Durable Objects, Workers - New getByName() API to access Durable Objects
10mo ago
Source
CloudflareDurable Objects, Workers - New getByName() API to access Durable Objectscloudflare.comYou can now create a client (a Durable Object stub ) to a Durable Object with the new getByName method, removing the need to convert Durable Object names to IDs and then create a stub. // Before: (1) translate name to ID then (2) get a client const objectId = env . MY_DURABLE_OBJECT . idFromName ( "foo" ) ; // or .newUniqueId() const stub = env . MY_DURABLE_OBJECT . get ( objectId ) ; // Now: retrieve client to Durable Object directly via its name const stub = env . MY_DURABLE_OBJECT . getByName ( "foo" ) ; // Use client to send request to the remote Durable Object const rpcResponse = await stub . sayHello () ; Each Durable Object has a globally-unique name, which allows you to send requests to a specific object from anywhere in the world. Thus, a Durable Object can be used to coordinate between multiple clients who need to work together. You can have billions of Durable Objects, providing isolation between application tenants. To learn more, visit the Durable Objects API Documentation or the getting started guide .
You might also wanna read
Show HN: Apache Fory Rust – 10-20x faster serialization than JSON/Protobuf
fory.apache.org·8mo ago
Cache Interface Documentation: Web API Methods for Persistent Storage
The article provides technical documentation for the Cache interface in web APIs, explaining how it enables persistent storage of Request/Re
Technical Analysis: Why SocketAddrV6 Fails Roundtrip Serialization in Rust
The article details a technical investigation into a serialization bug involving IPv6 addresses in Rust programming. The issue arose when a
Contravariant lifetimes and garbage collection: Inside Nova's Rust-based JavaScript engine
This article from the Nova blog discusses the contrarian approach to garbage collection (GC) in the Nova JavaScript engine, which is written

Comments
Sign in to join the conversation.
No comments yet. Be the first.