Good day!
I have a question, on the server through API the request from the client comes.
On the ASP NET MVC server, it is processed and returns a response.
But the processing can be very long. There are at first a lot of checks, calls to a DB. Then the main transaction with several records to the database and at the end a few more actions.
There is a desire to speed up this, return the response to the client immediately after the transaction, and then complete the tail section using a separate method.
Is there a solution for such a task?
That is, after the transaction of the main method is completed, call the additional method separately, and the main method is completed without waiting for the additional one.
I have a question, on the server through API the request from the client comes.
On the ASP NET MVC server, it is processed and returns a response.
But the processing can be very long. There are at first a lot of checks, calls to a DB. Then the main transaction with several records to the database and at the end a few more actions.
There is a desire to speed up this, return the response to the client immediately after the transaction, and then complete the tail section using a separate method.
Is there a solution for such a task?
That is, after the transaction of the main method is completed, call the additional method separately, and the main method is completed without waiting for the additional one.