Questions tagged [publish-subscribe]

Publish/subscribe is a messaging pattern where senders (publishers) of messages do not program the messages to be sent directly to specific receivers (subscribers). Rather, published messages are characterized into channels, without knowledge of what, if any, subscribers there may be.

Publish/subscribe is a messaging pattern where senders (publishers) of messages do not program the messages to be sent directly to specific receivers (subscribers). Rather, published messages are characterized into channels, without knowledge of what, if any, subscribers there may be. Subscribers express interest in one or more channels, and only receive messages that are of interest, without knowledge of what, if any, publishers there are.

Among technologies known to implement the Publish/Subscribe pattern you can find :
( in a purely alphabetical order )

2940 questions
41
votes
3 answers

How does the messages-count example in Meteor docs work?

Having trouble full understanding this example from the docs... I tried running it a bunch of different ways so I could observe how it works, etc. How do you subscribe to this? Can we include the client side code needed to make this work? Is there a…
Mike Bannister
  • 1,424
  • 1
  • 13
  • 16
39
votes
2 answers

What should I be using? Socket.io rooms or Redis pub-sub?

Pretty simple question. I am building a realtime game using nodejs as my backend and I am wondering if there is any information available on which one is more reliable and which one is more efficient? I am heavily using both Redis and Socket.io…
Josh Mc
  • 9,911
  • 8
  • 53
  • 66
37
votes
2 answers

What does Windows Service Bus add to MSMQ?

I'd like to make an informed choice towards a simple publish/subscribe architecture. So I'm wondering: what does the Service Bus add that MSMQ can't do? What are the drawbacks of the Service Bus? Thx for enlightening me!
David
  • 3,736
  • 8
  • 33
  • 52
36
votes
3 answers

Publishing/subscribing multiple subsets of the same server collection

EDIT: this question, some of the answers, and some of the comments, contain a lot of misinformation. See how Meteor collections, publications and subscriptions work for an accurate understanding of publishing and subscribing to multiple subsets of…
matb33
  • 2,820
  • 1
  • 19
  • 28
35
votes
2 answers

How to reject topic subscription based on user rights with Spring-websocket

I'm implementing a version of the stock application where the server able to reject topic subscription for certain topic based on the user rights. Is there a way in spring-websocket to do this? For example: In the stock example project we have…
35
votes
7 answers

Redis + ActionController::Live threads not dying

Background: We've built a chat feature in to one of our existing Rails applications. We're using the new ActionController::Live module and running Puma (with Nginx in production), and subscribing to messages through Redis. We're using EventSource…
34
votes
4 answers

zmq vs redis for pub-sub pattern

redis supports pub-sub zmq also supports pub-sub via a message broker What would be the architectural pros\cons for choosing between them? I'm aiming at points which are beyond the obvious use-case specific performance benchmarking that should be…
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
32
votes
2 answers

Vanilla JS event delegation - dealing with child elements of the target element

I'm trying to do event delegation in vanilla JS. I have a button inside a container like this
And Finally
  • 5,602
  • 14
  • 70
  • 110
32
votes
2 answers

Angularjs pubsub vs $broadcast

I've been reading up on event passing in Angularjs and I'm not convinced that using $broadcast is a good idea. Blogs like this one advocate getting used to $on even though it "felt like overkill." My confusion is that the implementation uses a…
hassassin
  • 5,024
  • 1
  • 29
  • 38
31
votes
3 answers

publishOn vs subscribeOn in Project Reactor 3

I am using publishOn vs subscribeOn both on the same flux as follows: System.out.println("*********Calling Concurrency************"); List elements = new ArrayList<>(); Flux.just(1, 2, 3, 4) .map(i -> i * 2) .log() …
30
votes
2 answers

Python - How are signals different from pubsub?

Django and Flask make use of signals — the latter uses the Blinker library. In the context of Python, Blinker and the Python pubsub library, how do signals and pubsub compare? When would I use one or the other?
a paid nerd
  • 30,702
  • 30
  • 134
  • 179
30
votes
7 answers

jQuery plugin for Event Driven Architecture?

Are there any Event Driven Architecture jQuery plugins? Step 1: Subscribing The subscribers subscribe to the event handler in the middle, and pass in a callback method, as well as the name of the event they are listening for... i.e. The two green…
30
votes
2 answers

List all tables that are currently published for replication MS-SQL

I need to get a list of all tables that are published for replication from MS-SQL databases. Is there a system stored procedure or a query I could run to generate such a list?
user26901
30
votes
7 answers

Recommended Python publish/subscribe/dispatch module?

From PyPubSub: Pypubsub provides a simple way for your Python application to decouple its components: parts of your application can publish messages (with or without data) and other parts can subscribe/receive them. This allows message…
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
29
votes
4 answers

"pubsub error INVALID_ARGUMENT" when creating a subscription to URL endpoint

Created a test topic on GC pubsub and can create pull subscriptions no problem but as soon as I try to create a URL endpoint subscription I get a "pubsub error INVALID_ARGUMENT" Params Subscription Name: testingsub Endpoint URL:…
Adam McCrory
  • 391
  • 3
  • 7