Comments (3)
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.
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.
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)
- Get a callback on the send method
- Allow disabling of the queue HOT 1
- push/pull where pullers pull upon demand
- Support for multiple peers needs improvement HOT 2
- Error on connect for sub socket HOT 4
- subscribers cannot send messages HOT 1
- Send command
- socket.connect blocking gulp task from completing HOT 3
- Binding to UNIX sockets results with RangeError HOT 3
- Is this maintained? HOT 2
- How would I go about tracing RPC(req-rep) calls?
- update package JSON engine values HOT 1
- How to catch this error: read ECONNRESET HOT 1
- Impossible to handle server errors like 'EADDRINUSE' without 'domain'
- Missing typing definition
- `fs.unlink()` is used as if it was synchronous when deleting a stale UNIX socket
- unix socket reconnect fails HOT 2
- tls certificates ? HOT 1
- Deprecated prototypical inheritance
- Is it still maintained ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axon.