D
Deno

help

Not sure if I understand kv watch right?

Ffro.profesional12/11/2023
Not sure if I understand kv watch right, is like named queues? o more like a reliable Broadcast channel?
DAHDeno AI Helper12/11/2023
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your description, it seems like you're referring to a feature or concept related to key-value (kv) watching, which might be about observing changes to a key-value store. In general, a "watch" mechanism on a key-value store could be similar to a subscription model where changes to a specific key or set of keys are broadcast to subscribers, which could be likened to a reliable broadcast channel. Named queues, on the other hand, typically refer to a messaging pattern where messages are sent to specific queues identified by names, and consumers process messages from these queues. Without specific context or code, it's difficult to provide a precise answer. The advice given here is not based on the Deno documentation, so please double-check the accuracy of this advice and consider looking into the specific implementation or library documentation that you are using for a more accurate description of "kv watch" in your context.
ABAltair 680b12/11/2023
Think Real-Time mutation events. Whenever one of the keys is mutated, an event will be fired to the client.
Ffro.profesional12/12/2023
But for example if two isolates are running my app with the watch what does that mean? - it will behave like a queue only one will get the value? - Both will get the value
Llcasdev12/12/2023
Both will get the value
Ffro.profesional12/12/2023
I see now thanks

Looking for more? Join the community!

Recommended Posts
Displaying a ModalI am trying to get a minimal example of using Bootstrap Modals, and managing that modal using state.How do I run an npm script with multiple dependencies, e.g. `drizzle-kit generate:pg`?I thought about wrapping it into a task `"generate": "deno run -A npm:drizzle-kit generate:pg"` in tHow to use a class name as a qualifier for an enum ?Hi there, it's more of a generic typescript question but I'm using it in the Deno context and the lihow can I make him see the process?```ts error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'on') proImporting NPM Packages in Deno Throws 'Uncaught SyntaxError' for Specific ModulesHi there, I'm relatively new to Deno. I'm running into an error with an NPM package import. ```JS imHow to override type definitions provided by a third party module@Deno AI Helper How do I override type definitions provided by a third party moduleSync Child Stdin ReadI'd like to make a JS wrapper around the repl of another language. For example: ```js let a = otherUsing custom font using fresh and tailwindcssHello ! I recently followed [this guide](https://fresh.deno.dev/docs/examples/migrating-to-tailwindwasm-vips file does not existOk this is not directly a deno thing, but anyway. Has anyone successfully used wasm-vips with `vips.update imports to latest version in `deno.json`i defined imports as URLs with the version of the packages in my `deno.json` file. i would like to kAttempt on adding ref/unref on UDPHello, issue [#20138](https://github.com/denoland/deno/issues/20138) is about `unref` not being implFresh migrating from serveTlsIn my `main.ts` file for Fresh I have some code I borrowed from source a few minor versions ago to s