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

How to publish message in Google Pub/Sub from Firebase Cloud Function?

I wrote a function that receive a http request and send a e-mail. But, I would like receive a http request and send a pub message. The problem is that the documentation is not clear. How I do that? This is my actual code. exports.weeklyEmail =…
12
votes
1 answer

Redis vs Service Bus for pub/sub scenario

I have several services in Azure and i would like to sync changes between them using some kind of pub/sub service. I am looking into Redis and Azure Service Bus. The data to be synced is very simple - mostly strings up to 100 characters I would like…
Haim Turjeman
  • 139
  • 1
  • 4
12
votes
2 answers

Scaling WebSockets with a Message Queue

I have built a WebSockets server that acts as a chat message router (i.e. receiving messages from clients and pushing them to other clients according to a client ID). It is a requirement that the service be able to scale to handle many millions of…
orcaman
  • 6,263
  • 8
  • 54
  • 69
12
votes
1 answer

ZeroMQ Pub-Sub + Dynamic Discovery without a Mediator

I am testing ZeroMQ as Pub-Sub (service bus style) infra for a medium system. We have about 50 nodes, all of them should be publishers and subscribers. The network is kind of a star topology, but the edges "talk" with each other. We require Dynamic…
dux2
  • 1,770
  • 1
  • 21
  • 27
12
votes
1 answer

How to filter a ServiceBus topic subscription based on a built-in property of the BrokeredMessage class?

Using the June 2012 Azure SDK, I have a service bus topic, and I am adding a subscription to it. I want to filter that subscription. If I do this based on one of the items that I have added to the BrokeredMessage Properties bag, then this works…
Jude Fisher
  • 11,138
  • 7
  • 48
  • 91
12
votes
2 answers

ZeroMQ Topic Filtering with Pub/Sub (Java binding)

How can I get ZeroMQ to support topics and pattern matching? e.g. stocks.* stocks.appl From my understanding ZeroMQ..the topic will be part of the message so I need someway of separating the topic from the actual message in the subscriber. Whats…
DD.
  • 21,498
  • 52
  • 157
  • 246
11
votes
5 answers

android publish/subscribe pattern

Is there a publish/subscribe pattern in android? What I want to achieve is I have this class that can notify interested party of an event. Then the interested party can do whatever it needs. Coming from a .net microsoft world, this sort of thing…
pdiddy
  • 6,217
  • 10
  • 50
  • 111
11
votes
1 answer

Redis / RabbitMQ - Pub / Sub - Performances

I wrote a little test for a simple scenario: One publisher and one subscriber Publisher send 1000000 messages Subscriber receive the 1000000 messages First test with RabbitMQ, fanout Exchange, RabbitMq node type Ram : 320 seconds Second test with…
Ovrz
  • 111
  • 1
  • 1
  • 3
11
votes
2 answers

How to recover from missed integration or notification events in event driven architecture?

The situation is as follows. There are three services, one service is event sourced and publishes integration or notification events (outbox pattern) to the other two services (subscribers) using an event bus (like Azure Service bus or…
annemartijn
  • 1,538
  • 1
  • 23
  • 45
11
votes
1 answer

Websockets Notification- / Chat- System

I've read a lot about websockets and already implemented them within my system. This question is about how to use them properly. I want to implement a notification and a chat system the right way. For notifications, I have the channel…
user3746259
  • 1,491
  • 2
  • 23
  • 46
11
votes
4 answers

meteorjs iron-router waitOn and using as data on rendered

I try to get the returned data in my Template.rendered function. The current code is: this.route('editCat', { layoutTemplate : 'layoutCol2Left', template : 'modCategoriesEdit', path : '/mod/categories/edit/:_id', yieldTemplates :…
TJR
  • 6,307
  • 10
  • 38
  • 64
11
votes
2 answers

How do I do multiple publishers with a single endpoint in ZeroMQ?

I'm attempting to do a pub/sub architecture where multiple publishers and multiple subscribers exist on the same bus. According to what I've read on the internet, only one socket should ever call bind(), and all others (whether pub or sub) should…
stix
  • 1,140
  • 13
  • 36
11
votes
2 answers

How does AMQP overcome the difficulties of using TCP directly?

How does AMQP overcome the difficulties of using TCP directly when sending messages? Or more specifically in a pub/sub scenario?
user1577433
  • 501
  • 1
  • 6
  • 12
11
votes
1 answer

Do WCF Callbacks TimeOut

I've written a system that uses a Duplex NetTcp Channel with a callback to function as a publish/subscribe server. Do I have to worry about the callback timing out if not connection is sent after a while or will the callback pipe be maintained…
Omar Kooheji
  • 54,530
  • 68
  • 182
  • 238
10
votes
1 answer

Difference between DDS and RTPS

I am looking for a framework for my image processing pipeline. During my search I see a lot of DDS and RTPS terms used interchangeably here and there. Are they the same thing? If yes then why 2 different terms, if no then what is the difference?
mihota
  • 325
  • 1
  • 4
  • 12