database - c# asp.net waiting for state in db to change -
I am creating a web application where a job presented by a user is controlled by the background service and the web app and background Between the communication service is done on the database so when a search begins, the web application inserts a record in the DB and waits until the status area of record changes. As I understand, if I apply it to the request thread, then I am unnecessarily blocking one of the pool threads, but it can not do my head asynchronously. What is the best practice in this case ?
If you use SQL Server as your DB then you can call a SQLDependency Use the ADO.NET utility,
When a properly set up occurs, then what is the dose, whenever there is a change in the table (which you will configure) a C # event will be picked up
Note: You have to setup your SQL Server to enable it.
Comments
Post a Comment