I'm making an app in which the user uploads gps data which is saved into the database.
The file to be uploaded is big, and it takes a while for the server to finish all tasks..
I would like to know if there is a way for my program to return a view to the user immediately after the upload (so that he can continue with his user experience), and perform the subsequent calculations and DB operations afterwards (the user does not care about them, so why make him wait)...
Note that you have to look carefully at your design. Since things will be processed asynchroniously, your frontend code can no longer make assumptions on the state of your data, so you need to track that. The user may not care, but some application functions might...