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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -