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
28
votes
2 answers

Why does Redis have Pub/Sub capabilities?

Why does Redis, a datastore, have Pub/Sub features? My first thought is that it's the wrong layer to implement such a thing. But maybe I need to think outside the box.
John Bachir
  • 22,495
  • 29
  • 154
  • 227
26
votes
1 answer

Performance Cost of PubSub / Excessive Events and Event Handlers in JavaScript?

Pub Sub / Event Driven architecture is a common practice in the world of Client & Server side JavaScript. I have been tasked to architect a very large Web Application using Dojo as Front End and node.js as backend. Pub / Sub seems very appealing as…
Gaurav Ramanan
  • 3,655
  • 2
  • 21
  • 29
25
votes
3 answers

Publish/Subscribe reliable messaging: Redis VS RabbitMQ

Background I am making a publish/subscribe typical application where a publisher sends messages to a consumer. The publisher and the consumer are on different machines and the connection between them can break occasionally. Objective The goal here…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
24
votes
8 answers

Publish multiple messages to RabbitMQ from a file

Publishing single messages to a RabbitMQ queue can be easily done with the UI, by simply putting the message in the UI and clicking the "Publish Message" button. How do you publish a batch of messages? I have a file with messages to be sent to…
summerbulb
  • 5,709
  • 8
  • 37
  • 83
23
votes
2 answers

Is it possible to receive an Amazon SNS message on a JS script?

I know some options using ruby on rails and/or node.js and PubNuB, a service that has many APIs so you can send/receive notifications between (almost) any platform. I now how to send messages from PHP and how to receive them there using Amazon SNS,…
tvdias
  • 821
  • 2
  • 10
  • 25
23
votes
4 answers

Understanding mqtt subscriber qos

I am new to MQTT and I just learned about the meaning of the QOS level that is decided when a message is published: 0 when we prefer that the message will not arrive at all rather than arrive twice 1 when we want the message to arrive at least…
Oren
  • 2,767
  • 3
  • 25
  • 37
23
votes
2 answers

Redis publish-subscribe: Is Redis guaranteed to deliver the message even under massive stress?

Provided that both the client subscribed and the server publishing the message retain the connection, is Redis guaranteed to always deliver the published message to the subscribed client eventually, even under situations where the client and/or…
Mahn
  • 16,261
  • 16
  • 62
  • 78
22
votes
1 answer

is latency and throughput in AWS SNS good enough to replace dedicated MQ for pub/sub?

For a sake of HA I'm considering switching from self hosted solution (ZeroMQ) to AWS Simple Notification Service for pub/sub in an application. Which is a backend for an app, thus should be reasonably real-time. What are latency and throughput I…
vartec
  • 131,205
  • 36
  • 218
  • 244
22
votes
1 answer

Point-to-point vs publish/subscribe models in JMS

I am new to JMS. I have started with "hello world" where I am publishing the message from java application on Topic and listening it from client (node.js Javascript). I have gone through this wikipedia entry, but I have some questions based on my…
M Sach
  • 33,416
  • 76
  • 221
  • 314
21
votes
2 answers

How do I find out who is connected to ActionCable?

I have seen ActionCable.server.open_connections_statistics, ActionCable.server.connections.length, ActionCable.server.connections.map(&:statistics), ActionCable.server.connections.select(&:beat).count and the like, however this is only "per process"…
21
votes
1 answer

Creating a realtime push notification system for desktop/mobile/web apps using kafka as message broker

I have a use case where there needs to be a real-time communication between servers and clients following a pub/sub messaging pattern. Producers will be server in java, node etc and clients will be - java desktop apps, mobile apps…
21
votes
2 answers

does redis pub sub persist historical messages in a channel?

I haven't been able to find in the documentation on how the messages in a channel get stored in redis publish/subscribe. When you publish to a redis channel, is that message stored or persisted? If so, how long is it stored and how do you get…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
20
votes
1 answer

Azure event hubs and multiple consumer groups

Need help on using Azure event hubs in the following scenario. I think consumer groups might be the right option for this scenario, but I was not able to find a concrete example online. Here is the rough description of the problem and the proposed…
infinity
  • 1,900
  • 4
  • 29
  • 48
20
votes
1 answer

Mongo tailable cursors vs Redis pub/sub

I'm backing a real-time websocket server application with MongoDB. The client base is growing, and single-threaded performance is no longer enough. I need a pub/sub layer to distribute messages across threads. I would normally go for Redis, but…
salezica
  • 74,081
  • 25
  • 105
  • 166
20
votes
2 answers

Redis keyspace notifications with StackExchange.Redis

I've looking around and I'm unable to find how to perform a subscription to keyspace notifications on Redis using StackExchange.Redis library. Checking available tests I've found pubsub using channels, but this is more to work like a service…
Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206