Concurrency between windows and Web app C# asp.net -
I'm thinking that ASP.NET Between is the best practice in relation to concurrency and using a single DB, a windows app? I have a db with the quantity of items, any of these items can be sold in different quantities from the website shopping cart or store location. When updating the item's volume, the user adds items to their shopping cart, then seems to have a problematic approach.
Thanks
I would recommend starting a gateway in your system. Gateway will be a single application (or part of one of your existing applications: a winforms app or web app) that acts as an intermediary for both the Windows app and the web app, in this way, you only have DB requests and One point of failure among DB is to designate Gateway to manage concurrency, and then you do not have to worry about other procedures to be written to your DB Is.
If I was in your situation, I could choose the web app to be a gateway. To interface with DB, create a set of services / repositories and the UI layer of the web app accesses those services, then instead of accessing those services through web services (or WCF services) to your DB, Uncover directly to reach DB. This way you have decoded your system and created a point of entry into the data store. You probably will solve a lot of problems other than concurrency with this approach.
Comments
Post a Comment