Data acquisition method and system
A data acquisition and data technology, applied in the information field, can solve the problems affecting the cache hit rate and increase the pressure of real-time database search, so as to improve the cache hit rate, reduce the pressure of back-to-source database search, and ensure the cache time.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] figure 1 It is a flow chart of the data acquisition method provided by Embodiment 1 of the present invention, such as figure 1 As shown, the data acquisition method includes the following steps:
[0042] 101. The front end sends the user data request to the proxy server.
[0043] Specifically, the user sends a user data request from the front end, and then the front end sends the user data request to the proxy server of the reverse proxy layer. The front end here only refers to the user's local page, and only needs to initiate a data request, that is, local cache. The cache data layer can use varnish, Memcache, redis or any possible technical solution in other existing technologies. The embodiment of the present invention is not correct. It is specifically limited. The proxy server of the reverse proxy layer can also use other web servers, such as Apache, IIS, Nginx, Resin, Tomcat, etc., except nginx, or use any other possible proxy servers in the prior art, and the ...
Embodiment 2
[0055] figure 2 It is a flow chart of the data acquisition method provided by Embodiment 2 of the present invention, such as figure 2 As shown, the data acquisition method includes the following steps:
[0056] 201. The front end sends the user data request to the proxy server.
[0057] Specifically, the user sends a user data request from the front end, and then the front end sends the user data request to the proxy server of the reverse proxy layer. Here, the front end includes a cache server, that is, a local cache, and the cache data layer can adopt varnish, Memcache, redis or any other possible technical solution in the prior art, which is not particularly limited in the embodiments of the present invention. The proxy server of the reverse proxy layer can also use other web servers, such as Apache, IIS, Nginx, Resin, Tomcat, etc., except nginx, or use any other possible proxy servers in the prior art, and the embodiment of the present invention is not particularly lim...
Embodiment 3
[0068] image 3 It is a schematic diagram of the composition of the data acquisition system provided by Embodiment 3 of the present invention, such as image 3 As shown, the data acquisition system provided by the embodiment of the present invention includes a front end 31, a proxy server 32, a cache server 33 and a back end 34. The front end 31 sends the user data request to the proxy server 32; Request the current data version number of the corresponding data, preferably splicing the current data version number and the user data request to generate a new data acquisition request, wherein the current data version number is generated after updating the data according to the backend 33; preferably, the cache server 33 parse the data acquisition request, obtain the current data version number, judge whether there is data corresponding to the current data version number, if the judgment result is yes, directly obtain the corresponding data from the cache server 33 .
[0069] In ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


