简体   繁体   中英

Webapp able to work offline !

I have to design an webapp that has the capability of working offline.

So there are many working points that in normal mode work online, connected to a central server.

Now there are moments when for different reasons, the central server might not be available. (no internet,server crash etc) so then is needed to enter in offline work mode. Is not required to work fully just to do some work because clients should not wait, so invoicing should be possible (concrete case).

A custom solution I already have in mind but I am wondering if you know a framework or something that does such things already.

Thank you !

We wrote a desktop app for hundreds of employees to use on their laptops. It used database replication to merge the data from the laptop copy of the database to the server copy of the database. The amount of data contained in the database was significant -- product information, customer contact information, and so on. That was all needed for the rep to be able to create sales orders and invoices and the like. It was crucial that the rep be able to use the software all the time, not just once in a while when they had connectivity. However, this approach does have its challenges -- if the local databases don't get synched up frequently, data at both ends becomes stale, plus you have to deal with conflicing updates.

If the amount of database information needed locally for working disconnected isn't huge, you definitely can take advantage of the new HTML5 offline storage and use a website.

I think that the critical factors here are how much data the user needs when they are working offline, how fresh the data needs to be, and what percentage of time they will be working online vs. offline.

If your app is html/javascript, use the HTML5 application manifest. See the following resources

http://www.w3.org/TR/offline-webapps/ http://www.webreference.com/authoring/languages/html/HTML5-Application-Caching/

You can use Google Gears .

Here is another link: http://www.scriptol.com/ajax/google-gears.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM