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
1
vote
0 answers

Loosely coupled notifications vs eventing

I have wrote a notification manager that objects can subscribe to for specific message types, providing the manager with a callback. The objects are then notified via a publication from the notification manager. It looks something like…
Johnathon Sullinger
  • 7,097
  • 5
  • 37
  • 102
1
vote
1 answer

What are the strategies for Pusher channel structures in social status update applications?

When building a social application it's common to follow other users or topics as an indication of interest in updates by the user or topic. For example, following other users on Twitter, Friending other people on Facebook or liking a product or…
leggetter
  • 15,248
  • 1
  • 55
  • 61
1
vote
1 answer

What is *like* a promise but can resolve mutliple times?

I am looking for a pub/sub mechanism that behaves like a promise but can resolve multiple times, and behaves like an event except if you subscribe after a notification has happened it triggers with the most recent value. I am aware of notify, but…
SimplGy
  • 20,079
  • 15
  • 107
  • 144
1
vote
1 answer

Publish/Subscribe pattern with subscriber response

Is this possible in a publish/subscribe pattern? A publisher publishes a message to a topic; Subscriber(s) receive(s) the message; The subscribers reply to publisher with a custom message. Is step 3 possible? I'm designing a system that will use…
1
vote
1 answer

What's the best way to subsample a ZMQ PUB SUB connection?

I have a ZMQ_PUB socket sending messages out at ~50Hz. One destination needs to react to each message, so it has a standard ZMQ_SUB socket with a while(true) loop checking for new messages. A second destination should only react once a second to…
Dustin
  • 73
  • 1
  • 6
1
vote
1 answer

Time Series Oriented IoT Platform

I have an embedded "thing" which generates data samples from several sensors at 1kHz. It has a fairly bandwidth constrained 3G connection to the outside world. Does anyone know of a platform which can provide the following (or at least a subset of…
1
vote
1 answer

is it necessary or useful Meteor.startup(function () {}) when publishing a collection?

basically I have: Meteor.startup(function () { "use strict"; Meteor.publish("uTree", function () { return utree.find({}); }); }); so the question is should I wait or not for the system is up and running to start publishing? is any…
juanp_1982
  • 917
  • 2
  • 16
  • 37
1
vote
1 answer

Zeromq XPUB/XSUB proxy only for subscription messages?

I want to prevent subscribers from subscribing to all topics in ZeroMQ. My idea is to use an XPUB/XSUB proxy and drop subscriptions to all topics in the proxy. However, my concern is that all messages would go through the proxy in this case, not…
Michał Fronczyk
  • 1,859
  • 4
  • 24
  • 29
1
vote
1 answer

Redis pub/sub design issue

I have a Redis client like so: var redis = require("redis"); var client = redis.createClient(); client.config("SET","notify-keyspace-events", "KEA"); with the 3rd line of code, it is now configured to listen to sets and deletes of Redis keys. So…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
1
vote
1 answer

Integrating JaxRS REST service with WebSockets

I'm attempting to develop a social network that implements publisher-subscribe pattern (kind of like Twitter does): users can follow people, therefore being notified when a new publication of their followers is sent. All I have now is a working REST…
RecuencoJones
  • 2,747
  • 3
  • 22
  • 21
1
vote
2 answers

Python -- how to organize pubsub messages?

I have a project that uses wx pubsub heavily to communicate to various parts of the code. For any given message, it could be of interest to 1 to 5 different subscribers. In a previous version of the code, I had a very large dictionary of listeners…
linus72982
  • 1,418
  • 2
  • 16
  • 31
1
vote
1 answer

Receiving PubSub notifications through IM client

I am new to Openfire and XMPP and there are a few things that are a bit unclear to me. I would like to use pubsub to notify all the subscribers when new blog post is published on the website. Subscribers should be able to receive these notifications…
jovana
  • 131
  • 7
1
vote
1 answer

publish-subscribe pattern within an application versus between applications

Are publish-subscribe systems (e.g. ActiveMQ, Google App Engine pub/sub, and pypubsub) mainly for message communication between applications running over multiple machines with different memory spaces? Or can they be used for handling efficiently…
morfys
  • 2,195
  • 3
  • 28
  • 35
1
vote
2 answers

Master/Slave pattern on Google Cloud using Pub/Sub

We want to build a master slave pattern on Google Cloud. We planned to use Pub/Sub for that (similar to JMS pattern) letting each worker to grab a task from the queue and ack when done. But, it seems like a subscriber can't get messages sent before…
1
vote
1 answer

Using Commands, Events or Services

When designing an application's back-end you will often need to abstract the systems that do things from the systems that actually do them. There are elements of this in the CQRS and PubSub design patterns. By way of example: A new user submits a…