Coder Social home page Coder Social logo

pub-end filtering about axon HOT 3 OPEN

tj avatar tj commented on May 18, 2024
pub-end filtering

from axon.

Comments (3)

gjohnson avatar gjohnson commented on May 18, 2024

Interesting request today at work, wanted to jot it down before I forget... Wanted a nice way to know how many peers where listening to a given topic in pub/sub, obviously not possible with the current sub-end filtering, but something to keep in mind whenever we get around to this.

from axon.

brycebaril avatar brycebaril commented on May 18, 2024

Yeah, this is the way Redis pub/sub filtering works -- and it tries to address the 'how many peers listening to a topic' by returning the number of subscribers who got the message when you publish. The problem is if you're publishing to a middle-man who re-broadcasts (say Master-Slave replication in terms of Redis) you can't ever really know how many actual listeners there were, at least not trivially.

My guess is in pretty much every case if you need read receipts you're probably better just adding a separate publish channel from the workers, which really should be up to the implementation as opposed to the library.

from axon.

tj avatar tj commented on May 18, 2024

we could propagate the subscribers upstream reasonably easily but I totally agree, in most cases, especially performance-critical cases you would likely have a dedicated socket anyway. I can see that being troublesome when N topics is a really large N but for myself at least that's never the case

from axon.

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.