Method and device for determining caching strategy

A caching strategy and determination method technology, applied in the communication field, can solve problems such as error response and business impact, and achieve the effect of improving the accuracy rate and realizing automation

Active Publication Date: 2018-02-13
HONOR DEVICE CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in the above methods, the caching strategy is written by the API developer
If the cache policy is written incorrectly, it will directly cause the APP to receive a wrong response and affect the business

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for determining caching strategy
  • Method and device for determining caching strategy
  • Method and device for determining caching strategy

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The technical solutions in the embodiments of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention.

[0035] figure 1 A schematic diagram of an API application network scenario provided for an embodiment of the present invention may include a website server, a point of sale (Point Of Sate, POS), a mobile terminal, an API management cluster, a backend server (backend server) and an integrated system, and the integrated system It can include Enterprise Service Bus (Enterprise Service Bus, ESB), Service-Oriented Architecture (Service-Oriented Architecture, SOA), database (database) and App server (AppServer, AS), etc. Among them, the API management cluster acts as an API gateway, which is connected to the client (including website server, POS, mobile terminal) and server (including back...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides a method and device for determining a caching strategy, relates to the technical field of communication, and enables an API (Application Programming Interface)management cluster to automatically generate the caching strategy. The method comprises the steps that: the API management cluster carries out statistic analysis on a plurality of API request messages and a plurality of API response messages, which are received, and determining a caching time bucket according to a statistic analysis result; and the API management cluster determines the caching strategy, wherein the caching time bucket is a time bucket, corresponding to a first time bucket, in a period after a period in which the first time bucket is positioned, and in the first time bucket, the API response messages corresponding to all the API request messages with a first API identifier, which are received by the API management cluster, are the same in content.

Description

technical field [0001] The present invention relates to the field of communication technologies, in particular to a method and device for determining a cache policy. Background technique [0002] With the rapid development of applications (Application, App), more and more companies or website service providers provide App developers with open Application Programming Interface (Application Programming Interface, API), so that App developers can quickly Develop apps. [0003] In the process of using the App, by calling the corresponding API, it sends an API request message to the API management cluster, and the API management cluster sends the API request message to the corresponding server after processing. With the rapid growth of user demands, the API management cluster, as an API gateway, needs to process billions of API request messages every day, with an average of tens of thousands of API request messages per second, which poses a great test to the performance of the A...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L12/24
CPCH04L41/5016H04L67/51H04L67/568H04L65/40
Inventor 梁标
Owner HONOR DEVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products