Giter Club home page Giter Club logo

Comments (6)

reselbob avatar reselbob commented on August 18, 2024 3

Yes, the Streams API

Here is a sample project I wrote to demonstrate the use of Groups to organize, produce, and consume stream emission from Redis in which a single, unique message is consumed per consume

https://github.com/reselbob/k8sdemos/tree/master/wordstream

from redis.

reselbob avatar reselbob commented on August 18, 2024 2

I have a project coming up in which using Deno/Redis will be perfect. But, I need to make it scale. I need to make it so that when a client subscribes to a Redis topic it receives a unique message from the topic. If multiple instances are picking up the same message, that won't due. Maybe I can do this already using this module in the current version, but I am ignorant as to how to do this. If so, please educate me.

from redis.

Terkwood avatar Terkwood commented on August 18, 2024 1

We should be able to close this issue once #86 is merged. Cheers, and thanks again for bringing this up!

from redis.

keroxp avatar keroxp commented on August 18, 2024

@reselbob Do you talk about Streams API? If so, those apis haven't supported yet. I've never use those api. There are the plan but priority is still low.

from redis.

Terkwood avatar Terkwood commented on August 18, 2024

Hi! #86 (implementation of Redis Streams API) will support this use case. I'll plan to add a test which demonstrates "one unique message per consumer"

from redis.

Terkwood avatar Terkwood commented on August 18, 2024

There are a couple of tests covering this concern in the WIP pull request #86.

test("unique message per consumer", async () => {

and

test("broadcast pattern, all groups read their own version of the stream", async () => {

The broadcast pattern test shows how to accomplish the opposite of what you're asking (fan-out across all groups, useful for multiple services reading the same stream and processing it independently, etc), so it provides a nice contrast to the requested demo in this issue.

from redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.