web services - How to have meaningful transition on front end when REST API takes too much time to respond -
i want build 2 web pages . on first page , has 1 input field upload csv file. on next page there other general information being shown.
now question , if csv file large, take time upload data , put entries database successfully. during time , can't make user wait single successful response.
so should ideal way user can upload file (no matter how big file is) on first page , move next page smoothly.
i think seams perfect case asynchronous task or new thread.
i mean, user choose file upload, in webservice , launch asyncronous thread process file. in meantime send user other page can continue whatever doing.
but doing that, don't know how able notify user upload success except if check during user experience.
i'm not experienced in thread might wrong seams point start me.
Comments
Post a Comment