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 197985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:53:59+00:00 2026-05-11T16:53:59+00:00

I am wondering if there is a best practice in regards to concurrency between

  • 0

I am wondering if there is a best practice in regards to concurrency between asp.net and a windows app using the same db?
I have a db with items their quantity, any of these items can be sold with different quantities from a website shopping cart or store location. updating the item quantity when user adds the item to their shopping cart seems to be a problematic approach.

Thanks

  • 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-11T16:53:59+00:00Added an answer on May 11, 2026 at 4:53 pm

    I would suggest introducing a Gateway into your system. The Gateway would be a single application (or part of one of your existing applications: the winforms app or the web app) that acts as the intermediary to the DB for both the windows app and the web app. This way, you only have one point of failure between db requests and the db itself. Design that Gateway to manage concurrency and then you dont have to worry about other processes writing to your db.

    If i was in your position i might select the web app to be the gateway. Create a set of services/repositories to interface with the db and have the UI layer of the web app access those services. Then expose those services via web services (or WCF services) to your windows app for it to access the db instead of it accessing the db directly. This way you have decoupled your system and created a single point of entry to the data store. You’ll probably solve a whole lot more problems other than concurrency with this approach.

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

Sidebar

Related Questions

I was wondering if there is the best practice on where to store global
I'm wondering if there's a best practice for this, I'm building a site that's
I was wondering if there was a plugin or best practice for pushing the
Just wondering if there's a preferred method or Best Practice for storing Updated By
I was wondering, is there a best practice to write an OSX programm that
I'm wondering if there is some recommended reading, best practice or opinion on how
I am wondering if there is a best coding practice in regard to dealing
I'm just wondering if there is a best case to write this code: $('#set_duration_30').click(function(event)
I was wondering which of these two scenario's works best for swapping between 2
I'm using the Entity Framework as my ORM for an ASP.Net (webforms) application. Suppose

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.