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

How to implement PubSubHubBub Protocol in php

I was implementing PubSubHubBub in kohana project. This is my subscribing code: public function action_curl_home() { $secret = hash('sha1', uniqid(rand(), true)); $post_fields = array("hub.callback" => "my callback function", …
Sivabalan
  • 971
  • 2
  • 18
  • 43
1
vote
1 answer

Meteor subscription _id through array

I am making a list right now. Users will be able to search and then click on the searched item to add the corresponding id to the their list. This is the following code I have written. Template.searchedItem.events 'click .addToList': function…
Sang Yoo Kim
  • 365
  • 1
  • 15
1
vote
0 answers

Try to create a Fallback to APNS Push if socket.io connection fires disconnect event on node.js server

is there an example available how to start pushing over apns if the earlier socket.io connection of a client interupts and the disconnect event fires on the node.js/socket.io server. I do the following thing: Connect client to websocket and…
1
vote
0 answers

Mongo ObjectID stored as object instead of ObjectID

I'm currently building a pubsub message queue using mongo's capped collections and tailable cursors (along the lines of this and this). I'm using mongo and node.js on OS X Yosemite. When I save, occasionally the object id gets stored as an object.…
1
vote
3 answers

How do I simulate multiple simultaneous slow Meteor publications?

I want to simulate multiple slow subscriptions. The client subscribes to two or more publications at the same time, and the result arrive later. The goal is to be able to see how network latencies and randomness can affect my application (it bugs…
Kyll
  • 7,036
  • 7
  • 41
  • 64
1
vote
1 answer

Jedis PubSub from Different Classes

I was wondering if it was possible to have a publisher in jedis pushing messages onto a channel, and in a completely separate class, have a subscriber listening for messages on the same channel. For example, for one class,…
jstnchng
  • 2,161
  • 4
  • 18
  • 31
1
vote
0 answers

ZeroMQ: Is frames/messages order preserved when receiving using receive_raw from multiple clients?

My scenario is as follows: I'm using a high-level C++ binding for 0MQ zmqpp. I have a publisher socket (XPUB), to which multiple subscribers connect(XSUB). The subscription message starts a cascade of events in my application (that's why I use…
Kikosha
  • 343
  • 6
  • 16
1
vote
1 answer

How to get real-time communication between JavaScript and Scala

I am trying to find best solution to communicate from Scala to JavaScript in real-time. So far tested couple ideas, but given library must handle around 1000 requests per second, and not every solution is best. Below attached one of the methods.…
ssuperczynski
  • 3,190
  • 3
  • 44
  • 61
1
vote
1 answer

Meteor show spinner on method call

I have a button that calls a method. When the method is called, I would like to have the button change and show a spinner (inside the button itself). I have made the button itself and the css for it. However, I am lost in how I could hook this up…
Sang Yoo Kim
  • 365
  • 1
  • 15
1
vote
1 answer

How i can unsubscribe to a 'changefeed' in RethinkDB?

I know that i can subscribe for listen the changes on a table doing this r.table('users').changes().run(conn, function(err, cursor) { cursor.each(console.log); }); But, how i can stop to listen this changes? How i can unsubscribe for this…
1
vote
1 answer

Faye Ruby Server Side Publish on Heroku - EventMachine buffer overflow detected

I have a faye ruby client on a heroku worker (using sidekiq - 5 threads) that publishes to the faye server running on linode. The worker crashes after a few minutes with a buffer overflow detected message. *Code EM.epoll EM.run { …
dhakadamit
  • 115
  • 1
  • 7
1
vote
1 answer

Adding pubsubhubbub link tag to Atom feed

According to Google the link tag containing the URL to the pubsubhubbub hub (This is a really terrible name) needs to go under the Atom entry element like so:
Muhammad Rehan Saeed
  • 35,627
  • 39
  • 202
  • 311
1
vote
3 answers

Knockout component updating observable not being subscribed to by parent view model?

I've written a component called Upload which allows users to upload files and then report back with a JSON object with these files. In this particular instance, the Upload component has a parameter which comes from a parent view model:
marked-down
  • 9,958
  • 22
  • 87
  • 150
1
vote
3 answers

Meteor.JS: Subscribe no working

Im trying to subscribe my client side to my userFriends collection and Chrome's console display: userFriends is not defined This is my code: Server side... userFriends = new…
Jose Osorio
  • 911
  • 2
  • 12
  • 25
1
vote
1 answer

Is it possible to load balance Azure Queues or Topics using Azure Traffic Manager?

I have read that it is possible to use Azure Traffic Manager to load balance (or failover) web apps and cloud services. Is it possible to use Azure Traffic Manager to add failover capability to Azure Queues or Topics?
willem
  • 25,977
  • 22
  • 75
  • 115