I used Retrofit for the REST part. Retrofit allows to perform a REST-call asynchronously. Do develop the one-at-a-time synchronization approach for the tables I packed every asynchronous call into an Executor Service, which supports the detection of finished threads. As a result I could detect for every local table if the synchronization succeeded.

Keeping a process/thread alive in an ASP.NET website

Actually I need a worker thread to do a specific job repeatedly after a particular amount of time. In fact I tried to run a new Thread and put it into ThreadPool. but after a short time when user leaves the page, the thread is terminated.
Subscribe to Thread