摘要 |
Disclosed are a data resource acquisition method, device and system. The method comprises: acquiring preconfigured query path information and cache configuration information, wherein the query path information comprises a distributed cache path for accessing a distributed cache server and a remote access path for accessing a remote server; and after a service request is received, choosing to access the distributed cache server or the remote server through the query path information, and making a query to obtain a resource corresponding to the service request according to the cache configuration information, and under the condition of failing to acquire the resource from the distributed cache server, choosing to invoke the remote access path to switch to access the remote server so as to acquire the resource. The present invention solves the technical problem in the prior art that the way to request a resource cannot be flexibly controlled according to a demand of a client. |