Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "new" method to proxyDurable for an object with random id or name #29

Open
maurerbot opened this issue Jan 3, 2023 · 2 comments
Open

Comments

@maurerbot
Copy link

Why

Sometime you just want an object and not have to think about the name

What

Have a new() method on the proxy object to generate a random DO name

@maurerbot
Copy link
Author

Related: #28

@nathanclevenger
Copy link
Contributor

Yes - I really think this should be implemented using the newUniqueId() method, as this is much faster (using a name requires a potentially round-the-world check and adds substantial latency). I've got several use cases where this and #28 are required.

@kwhitley what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants