首页>
外国专利>
METHOD AND APPARATUS FOR ACCELERATING DYNAMIC RESOURCE ACCESS BASED ON API REQUEST, MEDIUM, AND DEVICE
METHOD AND APPARATUS FOR ACCELERATING DYNAMIC RESOURCE ACCESS BASED ON API REQUEST, MEDIUM, AND DEVICE
展开▼
机译:基于API请求,介质和设备的动态资源访问加速方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
Disclosed are a method and apparatus for accelerating dynamic resource access based on an API request, a medium, and a device. The method comprises: receiving an application programming interface (API) request; extracting a request target for a target website from the API request; when it is determined that a request result corresponding to the request target is stored and a time length in which the request result is stored is less than or equal to a preset time length, extracting the stored request result, and sending the request result to a sender of the API request; and presetting a value indicating a preset time length ranging from 1 millisecond to 1000 milliseconds. In the present invention, dynamic resource access based on an API request can be effectively accelerated, and the present invention is especially applicable to a recommended hot application and a hot breaking news event, and accordingly, the response speed for an API request of a user can be effectively improved, and user experience improved. In addition, by means of accurate cache control, the user is prevented from seeing stale data, a burst traffic is handled, and the service capability of a back end can be improved in a case in which resources of the back end are not expanded.
展开▼