Dan
Dan

Reputation: 63

Solution for Web Application with Unreliable Internet Connection

We've developed a web application which is hosted on premises available for people in the shop floor via Wifi. However, the wifi signal is not reliable and it's not possible to use wired network or improve the signal.

I am looking for a solution to handle this issue. Is there a way to put the http requests into a local queue and process it asynchronously at the background? If so, how to do it? Or is there any other alternative approach?

Any thoughts are greatly appreciated.

Upvotes: 0

Views: 359

Answers (2)

Enrique Zavaleta
Enrique Zavaleta

Reputation: 2108

I have the same problem in the company where I work, there are certain places where the WiFi can not reach, and the system needs to get information from the DB in order to show that info to the user and then upload some new info.

Part of this system is done with iPads, so to solve the problem I use LocalStorage to store a JSON object that contains the info the user need to work, I store the info that is going to be uploaded in another JSON object, and when there is a connection available the info is Uploaded.

Hope it helps

Upvotes: 0

nipeco
nipeco

Reputation: 760

I would recommend to build the web app with angularjs or another javascript framework of your choice. Once the user has loaded the site you can perform asynchronous ajax/http requests to load the required data and the web app will never reload the entire page.

In case one http request fails you can implement that the web app should try one more time or whatever :)

Upvotes: 0

Related Questions