workers-help
pages-help
general-help
durable-objects
workers-discussions
pages-discussions
wrangler
coding-help
kv
š¦rust-on-workers
miniflare
stream
general-discussions
functions
zaraz
ā”instant-logs
email-routing
r2
pubsub-beta
analytics-engine
d1-database
queues
workers-for-platforms
workerd
web3
š¤turnstile
radar
web-research
logs-engine
cloudflare-go
terraform-provider-cloudflare
workers-ai
browser-rendering-api
analytics
next-on-pages
cloudflare-ai
build-caching-beta
hyperdrive
vectorize
ai-gateway
python-workers-beta
vitest-integration-beta
workers-observability
workflows-beta
OK I have read through the last three
IIRC there is no way to launch a promise
Yeah that will be the request it came
That code base is really hard to follow
I am trying to run a background promise
TransactionalDOWrapper suggestions thread
do-transactional-outbox
for an even stronger model of storage consistency. For your example in the blog post, I'm not sure if by using await
Ā you potentially eliminate (some of) the benefits of caching state in memory, let me explain.
I recommend taking a look at state.blockConcurrencyWhile
: call it in your constructor, no need to await it (you couldn't anyways, since constructors have to be sync), but it blocks further requests until you finish with your hydrate
function.
Then, you can always be sure that this.name
and others will have been populated whenever your request comes in via fetch
, so you can simplify your code further - eliminating another potential concurrency issue, where you're awaiting the hydrate promise, and another event handler starts executing, calling hydrate again, and potentially reading from storage once more as this.hydrated may not have been set to true yet (knock knock, race condition, who's there type situation), and then you overwrite name from the second call....I have a question how the memory is
I ended up using `env DO CLASS get key `
env.DO_CLASS.get(key)
, is that okay or should I use proxyDurable?Really weird What do you get if you just
console.log(request.url)
, without any formatting?DOs cannot store values as large as KV
I was just hit with a much larger than
To answer my own question for others
When you initially create it yes but
Weird question Is it possible to run
pretty sure calling it with 128 keys
I was hoping for some updates to Durable