Reputation: 4217
We have a website where the user can fill input form and submit his/her contact number to get loan approval. Once the user submits the form, we accept it on the server side and send an immediate response (while we relay this request to some third party API in the background). While we allow the user to browse other sections of the website, we want to show loan approval report based on his number as soon as we get it from the external API.
One way to do this is by:
Upvotes: 0
Views: 132
Reputation: 2038
SignalR would be useful in this scenario.
On your server you can have signalR connected to client with client side script ready to do fancy notifications. When you get response back from API you can then notify customer (call the client script with connection ID) if they have passed or failed credit check or loan has been approved, pending or take more time.
Upvotes: 1