octo3.
octo3.•3mo ago

DenoKV multi-process

Was DenoKV originally designed with the intention of being used in a multi-process setup? I was considering using it from multiple processes, but sometimes I encounter a "database is locked" error.
3 Replies
octo3.
octo3.OP•3mo ago
GitHub
GitHub - Octo8080X/papyr-kv: PapyrKv is feels like Pub/Sub, runs on...
PapyrKv is feels like Pub/Sub, runs on Deno.KV. Contribute to Octo8080X/papyr-kv development by creating an account on GitHub.
Leokuma
Leokuma•3mo ago
Yes. See 👆 Although I've also had "database locked" a few times on Windows
octo3.
octo3.OP•3mo ago
@Leokuma Thanks! I was able to get it running with multiple processes. When running from a file, KV works fine, but it seems to throw an error due to a file access lock issue. When running locally, I was able to avoid the issue by self-hosting KV. https://github.com/denoland/denokv/blob/main/.github/diagram-dark.png#gh-dark-mode-only
GitHub
denokv/.github/diagram-dark.png at main · denoland/denokv
A self-hosted backend for Deno KV. Contribute to denoland/denokv development by creating an account on GitHub.

Did you find this page helpful?