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

Sending complex object via JMS in Java

Is it possible to send complex messages via JMS? I can send TextMessages, Messages etc .. but when I try to send my custom object type MyObject trough send() method of MessageProducer I get compile error. Then I tried to cast it, I get cast…
ant
  • 22,634
  • 36
  • 132
  • 182
14
votes
1 answer

ZeroMQ, Client<-> Server , bi-directional communication possible with only having the client connect to host?

I am facing the following problem: I have a client (ultimately n-clients) and like to connect to a server. Clients know the server/host address but the server does not know the address of the client(s). I like to be able to accomplish the following…
Matt
  • 7,004
  • 11
  • 71
  • 117
13
votes
3 answers

How to do a UDP multicast across the local network in c#?

I am trying to get some simple UDP communication working on my local network. All i want to do is do a multicast to all machines on the network Here is my sending code public void SendMessage(string message) { var data =…
Simon
  • 33,714
  • 21
  • 133
  • 202
13
votes
4 answers

Signal a rollback from a JMS MessageListener

I've been working with JMS and ActiveMQ. Everything is working wonders. I am not using spring, nor can I. The interface javax.jms.MessageListener has only one method, onMessage. From within a implementation, there is a chance an exception will be…
HMM
  • 2,987
  • 1
  • 20
  • 30
13
votes
1 answer

Exponential backoff with message order guarantee using spring-kafka

I'm trying to implement a Spring Boot-based Kafka consumer that has some very strong message delivery guarentees, even in a case of an error. messages from a partition must be processed in order, if message processing fails, the consumption of the…
13
votes
1 answer

Amazon SQS java sdk stops after consuming 500 messages

I'm consuming messages from amazon SQS queue. I have thousands of messages in the queue. When I start the application (written in Java with spring framework) It starts polling messages from the queue and after receiving 500 messages It stops. If I…
Piyush
  • 1,528
  • 2
  • 24
  • 39
13
votes
3 answers

How to ensure message idempotency with multiple competing consumers?

I have multiple distributed competing consumers each pulling messages off the same (transactional) queue. I want to implement each consumer as an Idempotent Receiver so I never process the same message more than once (across all consumers) even if a…
emertechie
  • 3,607
  • 2
  • 22
  • 22
13
votes
4 answers

High Performance JMS Messaging

I read slides from this year's UberConf and one of the speakers is making the argument that Spring JMS adds a performance overhead to your message queue system, however I don't see any evidence to support that in the slides. The speaker also makes…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
12
votes
3 answers

Getting the most recent message in a thread

I have a query that gets all the info I need for a messaging system's main page (including unread message count, etc)... but it currently retrieves the original threads message. I would like to augment the below query to grab the most recent message…
RANGER
  • 1,643
  • 2
  • 17
  • 31
12
votes
1 answer

NServiceBus Publish() vs. Send() in website context

I'm looking to gain a better understanding of why it is recommended to never Publish() messages from a website using NServiceBus (NServiceBus Documentation, scroll about two thirds of the way down). Doesn't it make semantic sense to Publish()…
Øyvind
  • 1,600
  • 1
  • 14
  • 33
12
votes
1 answer

RabbitMQ synchronous messaging pros and cons

as we all know message bus like rabbitMQ is mainly meant for asynchronous messaging so standard approch is to fire and forget like publish something on bus and don't worry about who will process published message or when. But i'm thinking about…
Macko
  • 906
  • 3
  • 11
  • 27
12
votes
2 answers

Integration between Node.js and ActiveMQ - how to use

Background I am studying ApacheMQ for a project where we need a message broker. Upon reading the official page I see some features that I am interested in: Access to messaging Enterprise Integration Patterns (EIPs) Support for the STOMP, AMQP, MQTT…
Flame_Phoenix
  • 16,489
  • 37
  • 131
  • 266
12
votes
8 answers

Cross-platform, cross-language messaging system?

I'm developing a set of applications that work together to create a system for processing metering data. There's several reasons I want to have them loosely coupled and the system should be extensible by third parties, so the apps will be tied…
Hanno Fietz
  • 30,799
  • 47
  • 148
  • 234
12
votes
3 answers

How to configure MessageEndpointMapping by namespace in NServiceBus

I am trying to configure my message endpoint mapping in my NServiceBus configuration by sending messages from different namespaces to different endpoints. As such, I have configured the following in my web.config:
SteveBering
  • 947
  • 1
  • 12
  • 30
12
votes
4 answers

Moving messages between queues rabbitMQ

I am looking to be able to move messages between queues (manually) in Rabbit. For example: first-queue has messages ['a','b','c','d','e','f'] second-queue has messages ['x','y'] I want to be able to move for example message 'a' to second-queue from…
Dax Durax
  • 1,607
  • 5
  • 23
  • 31