Client Data Storage Overview

Over the past decade, the browser has become a powerful tool. This is a slow process, with many growing pains.
Now, enhanced layout controls, 3D graphics and games, and even music can be achieved in a small and ancient browser. Client data storage is a more exciting features.

Browsing the Web "classic" process from the outset, it has not changed: the browser requests a URL, Web server returns the requested content, then the browser requests more content, more content returned by the server.
The browser seems to be very forgetful, it knows everything must be obtained from the server.

Although generally true, but it overlooks a powerful alternative: the browser, you can skip the process of requesting information to the server data storage, but only get data from a user's local machine. It can even manipulate those data, for any reasonable purpose. Data can later be used to update the server to play.

In conclusion, the browser has the following capabilities:

  • Direct access to data. Although the use of AJAX to obtain data speed is usually already a lot faster, but will make data storage and faster data access on the local machine.
  • Saving network traffic. Browser data acquisition time, is useful as long as it has been preserved, without having to constantly get data from the server. This can reduce the pressure on the server.
  • Reduce the pressure on the server. If the server is constantly responding to requests, and get data from the database server, the server will be overburdened. Reduce the number of requests, you can reduce the workload of the server.
  • Finally, the data is stored locally, which enables applications to create a complete off-line becomes more feasible.

However, not everything is so beautiful. The transfer of data to the browser also has the following shortcomings.

  • No synchronization support.
  • Storage limit blurred.
  • Not a substitute for pure database server.

Guess you like

Origin www.cnblogs.com/jlfw/p/12031828.html