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
6
votes
1 answer

ZeroMQ, can we use inproc: transport along with pub/sub messaging pattern

Scenario : We were evaluating ZeroMQ (specifically jeroMq) for an event driven mechanism. The application is distributed where multiple services (both publishers and subscribers are services) can exist either in the same jvm or in distinct nodes,…
arunvg
  • 1,209
  • 1
  • 20
  • 31
6
votes
1 answer

Reading data record on Kinesis Stream only for a particular partition key

First of all thank you very much for considering my question. Hope it's not too silly. I am just wondering whether there is a way to filtering data on Kinesis Stream at the point of getting the data record out of the stream. The AWS official doc…
6
votes
2 answers

Meteor - subscribe to same collection twice - keep results separate?

I have a situation in which I need to subscribe to the same collection twice. The two publish methods in my server-side code are as follows: Meteor.publish("selected_full_mycollection", function (important_id_list) { check(important_id_list,…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
6
votes
3 answers

Is there a more direct way to do a pub/sub pattern in Rails than Observers?

I have a model which has a dependency on a separate, joined model. class Magazine < ActiveRecord::Base has_one :cover_image, dependent: :destroy, as: :imageable end class Image < ActiveRecord::Base belongs_to :imageable, polymorphic:…
Peter Nixey
  • 16,187
  • 14
  • 79
  • 133
6
votes
1 answer

Redis pubsub vs blocking operations

How should I choose between pubsub and blocking operations of redis ? Redis gives blocking operations like BLPOP which blocks the operation till an element can be popped from the list. Why should I not use this to achieve the functionality of…
sunil
  • 3,507
  • 18
  • 25
6
votes
1 answer

Publish/subscribe REST-HTTP Simple Protocol web services architecture?

I'm asking your sugegstions about an "architectural" scenario: I'd looking for a simplest publish/subscribe architecture to let talk two decoupled servers over on internet, sharing "sparse" but "real-time" messages/events. Let me explain: The…
Giorgio Robino
  • 2,148
  • 6
  • 38
  • 59
6
votes
1 answer

Redis Pub/Sub ServiceStack, cancelling the thread

This maybe a more general threading question i'm not sure. But I've got a WPF app that subscribes to channels and listens for messages from a redis database. App.SubscriptionThread = new Thread(() => { …
Kyle Gobel
  • 5,530
  • 9
  • 45
  • 68
6
votes
1 answer

ZeroMQ PubSub not working w\ Pyzmq

There is probably something very small that I am missing but I am unable to get a simple pub-sub example working in Python using the official Pyzmq package (https://github.com/zeromq/pyzmq). I am using the latest ZeroMQ stable release 4.0.3 and am…
Stephen
  • 125
  • 1
  • 6
6
votes
5 answers

How to notify user when async task ends in PHP/ Windows

Consider the diagram below: thoughts user can perform single file/batch upload (I know about HTTP specification), by batch I mean that somebody visually is able to send multiple files at a time. image uploading service is meant to create a child…
lexeme
  • 2,915
  • 10
  • 60
  • 125
6
votes
1 answer

how to use the redis publish/subscribe

Currently I am using node.js and redis to build a app, the reason I use redis is because of the publish/subscribe feature. The app is simply to notify the manager when user comes into the user or out of room. function publishMsg( channel , mssage){ …
user824624
  • 7,077
  • 27
  • 106
  • 183
6
votes
2 answers

Critical RabbitMQ method arguments

I'm trying to read up and understand 3 fundamental methods in the RabbitMQ Java client: Channel#basicConsume Channel#basicPublish; and DefaultConsumer#handleDelivery These methods have several arguments that are cryptic and mysterious, and…
user1768830
6
votes
4 answers

Meteor: How to trigger reRun of helper function after collectionHandle.ready() is true

This a new version of my old question: So thanks to Tom Coleman's help I finally figured out on how to properly check if a subscription is ready() or not. My current code structure looks like this: /client/app.js: eventsHandle = null; groupsHandle…
Patrick DaVader
  • 2,133
  • 4
  • 24
  • 35
6
votes
3 answers

JMS Topic vs Queue - Intent

I am trying to understand the use case of using Queue. My understanding: Queue means one-to-one. The only use case(if not rare, very few) would be: Message is intended for only one consume. But even in those cases, I may want to use Topic (just to…
Sandeep Jindal
  • 14,510
  • 18
  • 83
  • 121
6
votes
2 answers

How to develop push notifications for android without using google cloud messaging?

I need to develop push notification system for android applications, not using google cloud messaging(security reasons). Here the server will notify all those devices that are currently logged on to a particular android application. I know the…
Newbie
  • 129
  • 1
  • 3
  • 11
6
votes
1 answer

How to kick off pubsub subscriber in Rails app

I have a Rails (web) app that I need to add a (redis) pub/sub subscriber too. Below is my PubsubSubscriber class which I need to kick off then the app starts up. The redis connection is created in a resque.rb initializer file. I tried…
99miles
  • 10,942
  • 18
  • 78
  • 123