Re:Store SQLite in Cloudflare Durable Objects
by kentonv on Tuesday January 25, 2022 @01:47PM
(#30076126)
If this becomes a big enough problem, we might be able to build a work-around into the Cloudflare Workers Runtime itself so that it can support synchronous waits. It'll take some hacks but I think it's doable, without actually supporting threads.
[ Parent
| on HN ]
Re:Store SQLite in Cloudflare Durable Objects
by ec109685 on Tuesday January 25, 2022 @03:28PM
(#30077594)
Essentially doing what Asyncify is doing as part of the platform?
Re:Store SQLite in Cloudflare Durable Objects
by kentonv on Tuesday January 25, 2022 @04:10PM
(#30078074)
I'd probably use fibers, like node-fibers used to do. The problem is V8 stopped supporting fibers a few versions ago. We'd have to hack support back in. That's something we probably could get done but I'm not exactly excited about it. :)