Describe me what is the asynchronous controller in asp.net MVC with a suitable example.
What is Asynchronous Controller and when to use it Asp.net MVC?
40803-Feb-2020
Updated on 03-Feb-2020
Home / DeveloperSection / Forums / What is Asynchronous Controller and when to use it Asp.net MVC?
Describe me what is the asynchronous controller in asp.net MVC with a suitable example.
Nishi Tiwari
03-Feb-2020Asynchronous Controller in Asp.Net MVC
In today’s world most of the application work based on Synchronous programming in which the client sent a request to the server and server process the request and send a response back to client. Synchronous controllers work well for the concept but it cannot handle long-running processes.
When the user sends a request to a server then ASP.NET will provide one of the threads from the thread pool to handle the request. If the request process is taking less time to complete then it provides faster output to the client but when the request takes more time for the process then it will block the thread and the thread will not be available to another request to handle.
The large requests are sent from users and all are long-running processes then the server will be blocked then there will be no thread to handle this request and the server will fire Error message “Server too Busy”. To handle this we all need to use Asynchronous Controllers in asp.net MVC.
When we Use Asynchronous Controllers