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

Meteor: How to write a publish-function containing the username

Note: Whole code can be found here: https://github.com/Julian-Th/crowducate-platform/ Currently, all items from an array are displayed in one single list instead of a separate list tag: I have a pub function, which works…
Amir Rahbaran
  • 2,380
  • 2
  • 21
  • 28
1
vote
0 answers

Form not loaded while calling jquery validator

I have a registration form in jsp and i am validating the form in js file using jquery as shown in below code. When i call form() method of jquery validate, it says this.formValidation 'undefined' because my form is not loaded. i have tried…
user1770589
  • 375
  • 1
  • 6
  • 19
1
vote
2 answers

Can Subscriber send data to Publisher in ZeroMQ

I am using ZeroMQ for data transmission between two processes: sender.py and receiver.py, and the communication pattern I'm using now is Publisher/Subscriber. The following is my code for both processes, respectively: sender.py: import zmq context…
Ruofan Kong
  • 1,060
  • 1
  • 17
  • 34
1
vote
1 answer

Why PUBLISH command in redis slave causes no error?

I have a redis master-slave setup and the configuration of the slave is set to slave_read_only:1, but when I enter a PUBLISH command on the slave node it does not fail. I would expect an error, but it just takes the command and nothing else happens.…
luksch
  • 11,497
  • 6
  • 38
  • 53
1
vote
1 answer

Handle subscriber server offline using redis pubsub?

I currently am creating a horizontally scalable socket.io server which looks like the following: LoadBalancer (nginx) Proxy1 Proxy2 Proxy3 Proxy{N} BackEnd1 BackEnd2 BackEnd3 BackEnd4 …
Steve P
  • 319
  • 3
  • 7
1
vote
1 answer

ZeroMQ Subscribers not receiving message from Publisher over an inproc: transport class

I am fairly new to pyzmq. I am trying to understand inproc: transport class and have created this sample example to play with. It looks a Publisher instance is publishing messages but Subscriber instances are not receiving any. In case I move…
1
vote
0 answers

How to test a factory which uses $injector in angularjs/karma?

I'm currently trying to test a PubSub service for my angularjs app which will be a buffer between several services. For example: My Factory A calls $injector to inject my Pubsub service for subscribe/publish without having circular dependencies…
1
vote
1 answer

Is there an event pub/sub framework for angular?

I am coming from a WPF background where in Prism you have the IEventAggregator interface. You define events that you can subscribe to from controllers, and then you publish the event from another controller. It is a way to communicate between…
NZJames
  • 4,963
  • 15
  • 50
  • 100
1
vote
0 answers

node.js redis server, what happens when there are multiple messages to the subscribed channel?

Here's a puzzling problem for me. this node.js server subscribe and gets messages. Here's the code var subscriber = redis.createClient(port, host); var client = redis.createClient(port, host); var domain = require('domain'); var requirejs =…
eugene
  • 39,839
  • 68
  • 255
  • 489
1
vote
1 answer

What is the best infrastructure for OTT channels like telegram?

We have a OTT application which deliver message to users over XMPP protocol. we using eJabberd to deliver messages. also we have group chats that user can use them with maximum of 200 users. Now we want to build channels. some think like Telegram…
M.Movaffagh
  • 1,284
  • 5
  • 20
  • 33
1
vote
1 answer

Pubnub on android: class not found

I have imported the jar files. I placed a copy in the libs folder too (just in case). I am just trying to subscribe to a channel. And I get the error: Could not find class 'com.pubnub.api.Pubnub', referenced from method…
searcot jabali
  • 438
  • 6
  • 16
1
vote
2 answers

How to Display fast all product category and sub category in meteor js

I am working on my meteorjs project. I want to publish and display around 4000 category and subcategory from mongodb collection. But it takes too much time to load Data. I want to develop similar functionality as Alibaba all category page. because…
Dharmik
  • 369
  • 4
  • 11
1
vote
1 answer

in-memory database with publish subscribe and query filter?

I am looking for a trading UI solution for my work. I require an in-memory database that can store table pattern data (rows and columns) with indexing capability. Provide publish and subscribe mechanism. There will be multiple subscribers to the…
Gouri
  • 347
  • 1
  • 5
1
vote
2 answers

How to build a namespace-like string using chained variables

This is a strange one, but I'm exploring it to see if it's possible. Let's say that I have a .NET application where I am using PubSub. I want a way to define the topic string using chained objects (not functions). The goal is to allow me a way of…
Travis Wilson
  • 130
  • 1
  • 8
1
vote
1 answer

Meteor subscription issue

I have a collection of Messages on my mongodb. I have created two publish functions: Meteor.publish("messages", function (self, buddy) { check(self, String); check(buddy, String); return Messages.find({participants: {$all : [self, buddy]…
Xon
  • 55
  • 1
  • 1
  • 5