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

  • Home
  • SEARCH
  • 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 161313
In Process

The Archive Base Latest Questions

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

We are using messaging in a project of ours to implement pessimistic concurrency. This

  • 0

We are using messaging in a project of ours to implement pessimistic concurrency. This means that if messaging goes down (channel goes down), concurrency goes down.

  • Is this done in other business applications?
  • Do you close the application (log out the user) if messaging goes down?

I’m thinking more of combining the optimistic and pessimistic concurrency. Then if pessimistic concurrency goes down, there’s still a backup optimistic concurrency…

thx, Lieven Cardoen

  • 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. 2026-05-11T11:11:28+00:00Added an answer on May 11, 2026 at 11:11 am

    As usual, I think the answer depends on the nature of the business application that you are building. What are the SLAs for your application? How mission critical is it?

    If your messaging infrastructure faults, does the application continue to function aside from the lock service? If so, then you probably have an obligation to make sure your concurrency control mechanism isn’t the single point of failure.

    Furthermore, the topic of achieving a truly distributed, fault-tolerant pessimistic locking mechanism requires one to address the problem of consensus. Most pessimistic locking algorithms rely on there being a single, serialized authority that can respond to requests for locks (i.e. there’s a ‘lock’ table or perhaps there’s a singleton lock server).

    Such a design has single point of failure written all over it. To answer your first question–Yes, I’ve seen business applications use messaging to provide pessimistic locking. However, fully solving the fault tolerance problem seems like overkill for most business applications I’ve encountered.

    Optimistic concurrency control does not have this problem by its nature which is why it’s generally preferred in distributed, fault-tolerant applications. However, I realize that business requirements frequently win out over ease-of-implementation.

    If the topic interests you, Google has published an article on their Chubby Lock Service which leverages the Paxos consensus protocol.

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

Sidebar

Related Questions

I decided to implement a simple messaging system into my project. I'm using this
I'm trying to setup the application server part of C2DM push messaging using this
I am creating an input system (using the windows messaging system) that I would
I need to use messaging using MSMQ in a project at work and my
We're using a messaging queue (JMS / ActiveMQ) in an application that is facilitating
Currently I'm busy on a project using XML messaging. I have one general schema,
We're starting a new project that has some messaging and queueing requirements that are
Possible Duplicate: JSON pretty print using JavaScript I'm working on a project that will
I'm developing a project using Node.js at the backed, with that I'm also using
I am using JMS Messaging in my java program. My messages are coming from

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.