Questions tagged [message-queue]

"Message queue" is a design pattern or software engineering component that defines discipline or API for communication between two or more interrelated processes or systems. The message queue enforces asynchronous processing and loose coupling. Depending on the implementation they may also provide delivery and order guarantees of the messages. Message processing guarantees are explicitly excluded from the design.

Message queue design pattern introduces an intermediary between the producer of messages and its consumer(s). This intermediary - the queue - accepts the messages and stores them until a consumer retrieves them or until some other event (e.g. expiration time). In general the producer does not know or care where, how, and when the messages in the queue will be consumed.

Software components such as MSMQ or IBM MQ or Tibco (usually called Queue Managers) provide queue storage and features for manipulation of messages in queues. These manipulations include: expiration, persistence, notification of expired messages (dead-letter queues), message cloning, queue security, distribution (between multiple Queue Managers).

This tag is best used for cross-platform message queuing questions. For questions about specific products, use or include the tag for that product:

3929 questions
1
vote
1 answer

Unauthorized access to the RabbitMQ API

I am trying to accomplish each time when I start my app, to get from the RabbitMQ API, all the queues and exchanges that exist. But unfortunately I get the following error: org.springframework.web.client.HttpClientErrorException$Unauthorized: 401…
user20598130
1
vote
1 answer

Delete all the pending KubeMQ messages

I have an integration tests set up which use KubeMQ, and sometimes, when one of them fails to digest all the messages sent in it's test suite the messages can get to the next test and make them fail. I wan't to know if is there a way to force KubeMQ…
Rob Minasyan
  • 390
  • 2
  • 14
1
vote
0 answers

How to avoid waiting of a worker

I have a scenario to implement to trigger the auth token for 3rd party server using open id connect flow. For authentication I'll be using headless browser to mimic the human interaction of adding credentials and clicking buttons etc. I have created…
Adnan Ali
  • 2,890
  • 5
  • 29
  • 50
1
vote
2 answers

How does a microservice return data to the caller when using a message broker? or a message queue?

I am prettty new to microservices, and I am trying to figure out how to set a micro-service architecture in which my publisher that emits an event, can receive a response with data from the consumer within the publisher? From what i have read about…
xunux
  • 1,531
  • 5
  • 20
  • 33
1
vote
1 answer

The purpose of MassTransit request/response

I'm just getting started to implement the event messages in the microservices with MassTransit. The message publish makes a lot of sense to me that beneficial to the responsiveness of the microservice. However the request and response does seems…
santi
  • 651
  • 1
  • 6
  • 6
1
vote
1 answer

When to use one queue vs multiple?

Say I want to send emails to users. When users sign up for an account they get an email. When they complete an order they get an email. When they receive a message they get an email. My hunch is that a event Fanout is a good approach to use here.…
1
vote
1 answer

My code receives the message from the queue multiple time, I want to receive it only one time. How can I do it?

I am new, so my question is relatively easy, I guess. I am using Websphere Application Server platform and default JMS provider to send and receive message from queue. This is how my app looks like: Saytime is my main servlet which reroute my code…
yigibm
  • 13
  • 3
1
vote
1 answer

Message queue that delivers delayed messages and checks for uniqness

I have an online service that receives incoming events (few every second). Service needs to process a job when there were no events for 30 seconds or more. Service is distributed across several PCs and uses Amazon webservices (SQS and SimpleDB) as a…
Alex Uslontsev
  • 543
  • 8
  • 19
1
vote
1 answer

How to use sql table row items (or other alternatives) as a queue for multiple servers

I have 10 ubuntu servers running on aws as ec2 instance and a list of arguments which I need to run in each server. Outputs are saved to a PSQL database. The arguments is a list of 1000 items which looks like this. args…
anarchy
  • 3,709
  • 2
  • 16
  • 48
1
vote
2 answers

Apache Camel and Ruby

I'm developing a solution that uses Ruby, Stomp and ActiveMQ. As I wish to implement some message routing patterns (as in Enterprise Integration Patterns), I'm wondering if there is a gem to interface Ruby and Apache Camel, or other message…
Ecil
  • 1,009
  • 1
  • 13
  • 28
1
vote
0 answers

JavaScript Event Loop Queues Terminology

I've been reading a lot of tutorials as well as posts in StackOverflow regarding Event Loop in Javascript (Browser/NodeJS) and i'm currently a bit consfused on the terminology used when referring to the Event Loop Queues. So my questions are the…
1
vote
1 answer

Architecture and interaction of the client, NestJS backend, and Python microservice

As the title says, I have a question about the architecture and interaction of the client, NestJS backend, and Python microservice. I need to develop a recognition service. I have a client application that needs to send an HTTP request with an image…
monotype
  • 217
  • 2
  • 10
1
vote
1 answer

Rabbit consumer connected, but after a while cannot receive message from queue

I have a code which is successfully connected and consume messages from RabbitMQ. But after a while, consumers cannot receive messages however its connected while this issue happen. package rabbitmq import ( "context" "fmt" "os" …
GurbaniX
  • 187
  • 2
  • 12
1
vote
0 answers

Can I create multiple queues of same type in RabbitMQ in a way that publishing message on channel is not duplicated on other queue of same type?

I am looking for two queues with same binding key , but not getting duplicate messages (i.e. the message goes to any one queue, but not both). Ultimate goal of not duplicating messages is to achieve the load balancing such that if queue one has…
Osman
  • 11
  • 1
1
vote
0 answers

ActiveMQ/C# multiplied queue items

I have a strange/critical problem on our production system with ActiveMQ Artemis. It occurs approximately every 1-2 months, and when it occurs it will (re)generate queue items exponentially. We use ActiveMQ Artemis 2.18.0 with .NET Core 3.1…
Tettsuan
  • 11
  • 2