Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7067385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:11:45+00:00 2026-05-28T05:11:45+00:00

Is that possible to have mutex in RabbitMQ queue, i.e. If a client is

  • 0

Is that possible to have mutex in RabbitMQ queue, i.e. If a client is reading from the queue, no other client should read from the queue. is that possible?

Let me explain my scenario:

Two application running in two different servers. reading the same queue. But, if one application is running and reading the messages from the Queue, the other application should not do anything. if the Main application fails or stopped, then the other application should
start reading from this queue.

This is kind of a fail over mechanism. Have anyone tried this before. Any help is much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:11:46+00:00Added an answer on May 28, 2026 at 5:11 am

    As long as i have searched, no solutions found…A simple solution is

    • create a queue call it as Lock Queue.

    • Have only one message make the application to read it from the queue.

    • When ever the application starts in a another server, it will wait for the message in the Queue. so, if the first one fails second

    • one will read the message and start processing the message in desired queue from which it should read.

    A Mutex in Queue, that’s it.
    Note: This approach will work only if there is only message in the lock queue. make sure you handle it in your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have multiple has_many :through relationships that pass through each other
Is that possible to have a single PHP SOAP server which will handle requests
I was surprised recently to find that it's possible to have a return statement
http://mydomain.com/ => 127.0.0.1:4567 but http://mydomain.com/FOO => 127.0.0.1:3000 Is that possible? So far I have:
Is it possible that when you have a webpage, when you open the PDF,
Is it possible to have multiple classes that inherit/extends same class in Google AppEngine
is it possible to have a url that has a param with an &
Is it possible to have a UITableView that has a fixed height for all
It is quite possible that I may not have got the point, but I
In SQL its possible to have fields that cannot contain duplicate data. How is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.