Questions tagged [messaging]

Messaging refers to the design pattern whereby discrete messages are used for communication between objects or processes. Messages can be simple data, complex data structures, or even code. This pattern is often used for asynchronous or parallel computing.

2583 questions
9
votes
3 answers

chrome extension `sendResponse` does not work

I am writing a chrome extension but the sendResponse method does not work. chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if(!request.method){ return false; } …
user2922204
  • 199
  • 1
  • 2
  • 7
9
votes
5 answers

Design Patterns with Actors

The actor based paradigm is pretty cool. Its ability to scale effectively makes it a paradigm to must-evaluate for any concurrent system. I have done some reading about it, and have a decent idea about the core intent: drive your expensive operation…
vishr
  • 985
  • 10
  • 28
9
votes
1 answer

In a FIFO Qeueing system, what's the best way the to implement priority messaging

For message-oriented middleware that does not consistently support priority messages (such as AMQP) what is the best way to implement priority consumption when queues have only FIFO semantics? The general use case would be a system in which…
quaternion
  • 103
  • 1
  • 4
9
votes
1 answer

Is ZeroMQ ready for production use?

The same question was asked 1 year ago here. I'm looking for a status update for today. How are the error messages, documentation, etc? Are there frequent bugs which cause development problems? How is the performance?
stevenl
  • 6,736
  • 26
  • 33
9
votes
3 answers

How to use message queueing in a real-life scenario?

Ok, so I'm interested in message queueing. I really did loads of research on this subject already. I read 'programming windows azure' (about Azure Queues), I read loads of tutorials and information about the Azure service bus, I watched channel 9…
Leon Cullens
  • 12,276
  • 10
  • 51
  • 85
8
votes
3 answers

Local vs. remote queues in pub/sub messaging

If I was building a system with dozens of publishers/subscribers using message queues, it seems I have a few network configuration options: I could have one clustered broker that all machines use - each machine would not have a local queue I could…
Paul Stovell
  • 32,377
  • 16
  • 80
  • 108
8
votes
2 answers

Caliburn.Micro. Automatically call eventaggregator.Subscribe() for IHandle implementors with Autofac

In Caliburn.Micro documentation the authors mention such possibility: documentation link IHandle inherits from a marker interface IHandle. This allows the use of casting to determine if an object instance subscribes to any events. This enables…
Alec
  • 1,486
  • 2
  • 14
  • 30
8
votes
2 answers

Flutter: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId

SDK: Flutter We are using Flutter with Firebase messaging in our app. Along with it, we are using plain_notification_token to get the FCM Token for Android and APNS Token for iOS. Getting this error when upgrading Gradle to…
Krutarth Dave
  • 521
  • 5
  • 10
8
votes
2 answers

Python: OpenMPI Vs. RabbitMQ

Suppose that one is interested to write a python app where there should be communication between different processes. The communications will be done by sending strings and/or numpy arrays. What are the considerations to prefer OpenMPI vs. a tool…
user3262424
  • 7,223
  • 16
  • 54
  • 84
8
votes
1 answer

KafkaMessageListenerContainer vs ConcurrentMessageListenerContainer

If I use listener.concurrency property, would this use KafkaMessageListenerContainer or ConcurrentMessageListenerContainer? Note I have not defined any beans explicitly and I leave the required bean creation to spring boot. I wanted to know if my…
mac
  • 543
  • 1
  • 6
  • 17
8
votes
5 answers

How to refresh firebase token on Flutter?

I have a Flutter app that uses Firebase messaging to delivery notifications. This is the base code, it does nothing special, besides saving the token on my DB. FirebaseMessaging _firebaseMessaging = new FirebaseMessaging(); …
Notheros
  • 2,137
  • 9
  • 23
  • 34
8
votes
4 answers

In a publish/subscribe model in microservices, how to receive/consume a message only once per service type

We are designing for a microservices architecture model where service A publishes a message and services B, and C would like to receive/consume the message. However, for high availability multiple instances of services B and C are running at the…
8
votes
1 answer

Compare: JMX vs JMS

I thought JMX was a specification and JMS was more like an implementation. I was asked the difference between the two and the questioner disagreed with this. I read about it and understood both are specifications. And saw "JMX is a monitoring spec,…
RBz
  • 896
  • 3
  • 17
  • 34
8
votes
3 answers

How to enforce the order of messages passed to an IoT device over MQTT via a cloud-based system (API design issue)

Suppose I have an IoT device which I'm about to control (lets say switch on/off) and monitor (e.g. collect temperature readings). It seems MQTT could be the right fit. I could publish messages to the device to control it and the device could publish…
Adam Romanek
  • 1,809
  • 1
  • 19
  • 36
8
votes
4 answers

Logical Clocks: Lamport Timestamps

I am currently trying to understand Lamport timestamps. Consider two processes P1 (producing events a1, a2,...) and P2 (producing events b1, b2,...). Let C(e) denote the Lamport timestamp associated with event an e. I created timestamps for each…
typeduke
  • 6,494
  • 6
  • 25
  • 34