More specifically, if the write requests

More specifically, if the write requests are originating from a Queue, staggering the requests becomes more important.
2 Replies
Larry
Larry3w ago
Apologies for the delay in responding. I was distracted by other threads, but knew I was forgetting something. To pull the full context in...
workerBee — 7:04 AM I've found that it's pretty easy to lock up D1 with concurrent writes, so I add a few ms wait time to all write requests. Larry — 7:10 AM Can you define “lock up”? Wouldn’t it be better to sense pushback and respond accordingly?
Was your 7:04 AM comment in response to aba's question about 1000 simultaneous writes from the day before or was a new thing?
workerBee
workerBeeOP3w ago
It was just a general comment that I've had issues in the past with D1 and simultaneous requests. In my case, the backing DO would regularly reset when trying to process less than 20 requests at the same time. Haven't retested this in a while.

Did you find this page helpful?