I’d like to know if there is any technology to control communications between the client and the server in a web application (ASP.NET)
Example:
- Number of requests
- Check that no repeat a request
- Check that an operation was performed
WorkFlow
- The client sends the request “A”
- The server receives the request “A”, and responds
- The server marks the request “A” as answered
- The client resends the request “A”
- The server answers that the request “A” was answered
In any ASP.NET application you can use the HttpApplication events to track the needed changes. For example, you could track it using the BeginRequest and/or EndRequest events:
By personal opinion, I would use a globlal flag that I could turn off easily if I wanted.
If you are talking about an ASP.NET MVC application, I would also recommend using ActionFilters in the actions you want to track. You could implement your own ActionFilter class and track those changes OnActionExecuted and/or OnResultExecuted. I would still use the global flag to turn off the tracking without changing code.
As a note, I wouldn’t try to do heavy stuff in these events. If the track requires heavy database manipulation that can run in parallel, I recommend you to use a queue system while using the thread pool.