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
10
votes
5 answers

How to broadcast in gRPC from server to client?

I'm creating a small chat application in gRPC right now and I've run into the issue where if a user wants to connect to the gRPC server as a client, I'd like to broadcast that the event has occurred to all other connected clients. I'm thinking of…
Somnium
  • 363
  • 1
  • 8
  • 17
10
votes
1 answer

How to manage PubSub notifications send while offline in XMPP?

How to get offline message in PubSub? Using the Smack library. after searching I found an answer which looks like this: // Create a pubsub manager using an existing XMPPConnection PubSubManager mgr = PubSubManager.getInstanceFor(con); // Get the…
Tushar Kotecha
  • 764
  • 2
  • 7
  • 27
10
votes
2 answers

gcloud beta pubsub subscriptions pull format

Quick question: When I pull message from pubsub subscription via command line tool gcloud beta pubsub subscriptions pull MY_SUB I am getting a table with (all details and) data as string (already decoded) But i want to use it so i did: gcloud beta…
10
votes
1 answer

Using blocking REST requests to implement publish/subscribe

I've recently been asked to investigate the feasibility of integrating with a phone system vendor who wants to make phone events (e.g. line ringing, extension answered, call cleared) available using a RESTful web service. I pointed out that REST is…
Mike Scott
  • 12,274
  • 8
  • 40
  • 53
10
votes
5 answers

Query from minimongo of large number of records stucks and hangs browser

I am building a page for admin in angular-meteor. I have published all the records from a collection: "posts" and have taken the subscription of all the records on front end. $meteor.subscribe('posts'); In the controller, if I select the cursors of…
StormTrooper
  • 1,731
  • 4
  • 23
  • 37
10
votes
1 answer

Laravel Job Queue not processing using Redis driver

I'm creating a job, pushing it on to a custom queue, and trying to use the Redis driver to then handle the job when it hits the queue, without success: class MyController extends Controller { public function method() { $job = (new…
marked-down
  • 9,958
  • 22
  • 87
  • 150
10
votes
1 answer

No search results while publish and subscribe from single collection

Im using Easy-Search package and would like to search posts (or comments to those posts). The problem: Nothing gets shown when search is typed in. No error messages shown on both console.log and server. Updates: I did console.log on both the…
Thinkerer
  • 1,606
  • 6
  • 23
  • 43
10
votes
1 answer

JMS and Spring batch

Our project is to integrate two applications, using rest api of each, using JMS(to provide asynchronous nature) and spring batch to read bulk data from the JMS queue and process it and then post it to the receiving application. I am a newbie to…
10
votes
3 answers

global communication in angular module: event bus or mediator pattern/service

So far I have seen many solutions of the problem. The simplest one is, of course, to $emit an event in $rootScope as an event bus e.g. ( https://github.com/btilford/anti-patterns/blob/master/angular/Angular.md )…
10
votes
2 answers

How to set up a minimal CKSubscription?

I want to set up a simple CKSubscription that notifies me a recordType was created, how?
János
  • 32,867
  • 38
  • 193
  • 353
10
votes
1 answer

Redis Pub Sub channel memory

What mechanism(s) does Redis use to keep messages in memory in case of pub-sub ? If no client is subscribed what happens to the messages? Will Redis buffer them ? Is there a way to configure the min. and max. memory allocated per channel ?
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
10
votes
2 answers

One time event handling using promises?

Pretty much usual scenario. I want to have some decoupled piece of code, that is triggering event when something is ready. This will happen only once for the whole application run. On other side, there is another piece of code, where I want…
FredyC
  • 3,999
  • 4
  • 30
  • 38
10
votes
2 answers

Meteor: difference between names for collections, variables, publications, and subscriptions?

In the Discover Meteor examples, what's the diff between "posts" and "Posts"? Why is it that when we do an insert from the server we use "posts" but when querying from the browser we use "Posts"? Wouldn't the system be confused by the case…
thetrystero
  • 5,622
  • 5
  • 23
  • 34
9
votes
4 answers

Scalable Pub/Sub engine for realtime

I'm looking for a pub/sub engine, with the following requirements: Very low latency < 0.5 sec Scalable Shardable (based on geo localisation) I'd like to be able to have multiple pub/sub servers and be able to publish or subscribe to channels from…
Vinc
  • 91
  • 1
  • 2
9
votes
4 answers

Erlang: simple pubsub for processes — is my approach okay?

Disclaimer: I'm pretty new to Erlang and OTP. I want a simple pubsub in Erlang/OTP, where processes could subscribe at some "hub" and receive a copy of messages that were sent to that hub. I know about gen_event, but it processes events in one…
drdaeman
  • 11,159
  • 7
  • 59
  • 104