The invention discloses an optimization method and
system for frequent Rpc pulling of non-real-
time data. The optimization method comprises the steps that a
server cache version number is configured for first data obtained by a
server according to a
timestamp; when the
client side obtains data from the
server side through the Rpc for the first time, first data and a
server side cache version number are obtained and cached to the local of the
client side, and interface calling time is updated; when the
client requests required data later and the interval between the interface calling time and the
current time exceeds a preset time interval, the server cache version number is pulled from the server through the Rpc interface; when the cache version number of the
server side is inconsistent with the cache version number of the
client side, pulling required data from first data of the
server side through the Rpc; and otherwise, pulling the required data from the second data of the client. According to the method and the device, the frequency of calling the data from the server through the Rpc and the loss of interface performance can be reduced, the acquisition efficiency of the non-real-
time data is improved, and the method and the device can be applied to the technical field of computers.