Data acquisition method and system
A data acquisition and data technology, applied in the information field, can solve problems affecting the cache hit rate and increase the pressure of real-time query database, so as to improve the cache hit rate, reduce the pressure of back-to-source query database, and improve business performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] figure 1 is the flow chart of the data acquisition method provided in 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, which only needs to initiate a data request, that is, the local cache. The cache data layer can adopt varnish, Memcache, redis or any other possible technical solutions in the prior art. The embodiment of the present invention does not It is specifically limited. In addition to nginx, the proxy server of the reverse proxy layer can also use other web servers, such as Apache, IIS, Nginx, Resin, Tomcat, etc., or use any other possible proxy servers in the prior art, which a...
Embodiment 2
[0055] figure 2 is the flow chart of the data acquisition method provided in 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 may adopt varnish, Memcache, redis, or any possible technical solution in the prior art, which is not particularly limited in the embodiment of the present invention. In addition to nginx, the proxy server of the reverse proxy layer can also use other web servers, such as Apache, IIS, Nginx, Resin, Tomcat, etc., or use any other possible proxy servers in the prior art, which are not particularly limited in the embodiment of the presen...
Embodiment 3
[0068] image 3 It is a schematic diagram of the composition of the data acquisition system provided in 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 a 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 with the user data request to generate a new data acquisition request, wherein the current data version number is generated according to the backend 33 data update; preferably, the cache server 33 parses the data acquisition request, obtains the current data version number, determines whether there is data corresponding to the current data version number, and directly acquires the corresponding data from the cache server 33 if the determination result is yes.
[0069] ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


