WO2020024709A1 - Method and apparatus for classifying and acquiring cache pages, and electronic device - Google Patents

Method and apparatus for classifying and acquiring cache pages, and electronic device Download PDF

Info

Publication number
WO2020024709A1
WO2020024709A1 PCT/CN2019/091521 CN2019091521W WO2020024709A1 WO 2020024709 A1 WO2020024709 A1 WO 2020024709A1 CN 2019091521 W CN2019091521 W CN 2019091521W WO 2020024709 A1 WO2020024709 A1 WO 2020024709A1
Authority
WO
WIPO (PCT)
Prior art keywords
field
classification
user
page
header
Prior art date
Application number
PCT/CN2019/091521
Other languages
French (fr)
Chinese (zh)
Inventor
马静
茅晓锋
方凯
Original Assignee
阿里巴巴集团控股有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020024709A1 publication Critical patent/WO2020024709A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Definitions

  • the embodiments of the present specification relate to the field of Internet technologies, and in particular, to a method and device for classifying and acquiring cached pages, and an electronic device.
  • a cache server for caching pages is proposed.
  • the user accesses the target page, the user first accesses the cache server through the CDN.
  • the cache server has the target page cached, the cached target page is returned directly to the client.
  • the cache server can classify cached pages in advance.
  • the cache server may perform classification based on a fixed number of fields for classification.
  • these fields are fixed and have a fixed meaning, that is, the cached pages can only be classified according to a limited dimension.
  • a method, an apparatus, and an electronic device for classifying a cache page, and a method, an apparatus, and an electronic device for acquiring a cache page provided in the embodiments of the present specification:
  • a method for classifying a cache page includes:
  • the cache server sends a page cache request message to the source server
  • a method for acquiring a cached page includes:
  • the client intercepts the request message of the page acquisition initiated by the user
  • the marking information includes a classification field and a field value
  • a device for classifying a cache page includes:
  • a sending unit the cache server sends a page cache request message to the source server;
  • the obtaining unit receives a response message returned by the source server, and obtains a classification field in a message header of the response message, where the classification field is written by the source server in a message header of the response message Enter the custom field under the header field;
  • the classification unit buffers the content of the response message according to the classification field.
  • an apparatus for acquiring a cached page includes:
  • Interception unit the client intercepts the request message of the page acquisition initiated by the user
  • a writing unit that writes the user's marking information into a header of the request message;
  • the marking information includes a classification field and a field value;
  • a forwarding unit which forwards the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
  • the receiving unit accepts the page content returned by the cache server.
  • an electronic device including:
  • Memory for storing processor-executable instructions
  • the processor is configured as any one of the above-mentioned cache page classification methods.
  • an electronic device including:
  • Memory for storing processor-executable instructions
  • the processor is configured as any one of the foregoing methods for acquiring a cached page.
  • the embodiments of the present specification provide a classification and retrieval scheme for cached pages.
  • a custom classification field is provided for users to use; thus, when the cache server performs classification caching, it can be based on more classification basis and more flexible. The classification effect achieved is better.
  • the same classification rules can be used to achieve the classification of cached pages and the acquisition of cached pages; including the client's user information based on classification rules in advance. After intercepting a user request, the tag information is written into the message header; and the same classification rule is written in the response message returned by the source server to the cache server, so that the cache server performs cache classification based on the same classification rule.
  • FIG. 1 is a flowchart of a method for classifying and acquiring a cache page provided by an embodiment of the present specification
  • FIG. 2 is a flowchart of a method for classifying a cache page according to an embodiment of the present specification
  • FIG. 3 is a flowchart of a method for acquiring a cached page provided by an embodiment of the present specification
  • FIG. 4 is a hardware structural diagram of a device for classifying a cache page provided by an embodiment of the present specification
  • FIG. 5 is a schematic block diagram of a device for classifying a cache page according to an embodiment of the present specification
  • FIG. 6 is a hardware structural diagram of an apparatus for acquiring a cache page provided by an embodiment of the present specification
  • FIG. 7 is a module schematic diagram of an apparatus for acquiring a cached page provided by an embodiment of the present specification.
  • first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
  • word "if” as used herein can be interpreted as “at " or "when ! or "in response to a determination”.
  • this specification provides a classification and acquisition scheme for cached pages.
  • the following can be introduced with reference to the example shown in FIG. 1.
  • the method can include the following steps:
  • Step 101 The cache server sends a classification rule to the client, where the classification rule is a classification field used by the cache server to classify the cached page.
  • the classification rule is provided by the cache server to the client.
  • the conversion can be performed according to different semantics, for example, it can be a push, that is, the cache server pushes the classification rule to the client; and the other can be that the client actively obtains the classification rule from the cache server, and then the cache The server sends classification rules to the client and so on.
  • Step 103 The client receives a classification rule issued by the cache server, where the classification rule is a classification field used by the cache server when classifying a cache page.
  • the classification field is a custom field written by the source server under a header field written in a response packet.
  • Step 105 The client marks the current user in advance according to the classification rule to obtain the user's marking information.
  • the current user may refer to a user currently using a client.
  • the client in this specification may refer to an application client on the software, such as an electronic wallet APP, an instant messaging APP, and the like.
  • an application client on the software such as an electronic wallet APP, an instant messaging APP, and the like.
  • a user needs to log in to an account when using the client, so when the user logs in, the client can mark the currently logged in user.
  • the client may determine the specific value of the classification field according to the user information; and use the classification field and the specific value as the marking information.
  • the classification field includes a percentage uniquely identified by the user
  • the percentage is used as the value of the classification field.
  • the classification field is userID-level (representing the percentage of user ID).
  • the percentage range of the user is 3%, that is, the user ID is in the top 3% of the total user group.
  • the marking information can be userID-level: 3.
  • Step 107 The client intercepts a page acquisition request initiated by a user, writes the user's marking information into a header of the request, and initiates a page to the cache server according to the processed request message. Get request.
  • a cache server for caching pages is proposed.
  • the CDN Content Delivery Network
  • a cache server can be placed at each node of the network to form a layer of intelligent virtual network based on the existing Internet.
  • the cache server may cache page content.
  • the CDN system can redirect the user's request to the cache server closest to the user based on comprehensive information such as network traffic and the connection, load status of each node, and the response time to the user. Crowded conditions improve the response speed of users accessing the website.
  • the DNS Domain Name System
  • the DNS Domain Name System of the CDN system can parse the page acquisition request, find an optimal cache server, and forward the page acquisition request to the optimal cache server.
  • the optimal may refer to a cache server closest to the user.
  • the writing the user's marking information into a header of the request specifically includes:
  • the Vary field is usually the header information of an HTTP request / response message.
  • the Vary field can decide whether to allow the response to be retrieved by selecting the historical response from the cache, or to request a new response from the origin server.
  • the original Vary is allowed to obtain the page content from the cache page of the cache server, and a custom classification field is also provided for users to use; thus the cache server classifies When caching, it can be based on more classification basis, more flexible, and better classification effect.
  • Step 201 The cache server queries the content of the corresponding category from the locally cached page according to the classification field and the field value in the page acquisition request sent by the client.
  • step 203 is performed.
  • Step 203 When the page content of the corresponding category cannot be queried, the cache server sends a page cache request message to the source server.
  • the source server may mean that a client needs to query a target page.
  • the page acquisition request sent by the client also carries the page address; according to the page address, it can be routed to the source server.
  • the source server After receiving the page cache request sent by the cache server, the source server obtains the corresponding page content based on the page address; adds a classification field to the header of the response message; and is used by the cache server to perform the page content according to the classification field. Classification; further, a response message containing the content of the page may be returned to the cache server.
  • Step 205 The cache server receives a response message returned by the source server, and obtains a classification field in a packet header of the response message; wherein the classification field is the response of the source server in the response message.
  • the header is written into the custom field under the header field.
  • Step 207 The cache server caches the content of the response message according to the classification field.
  • the step 207 may include:
  • the cache server may send the classification field to the client as a classification rule, that is, the foregoing step 101.
  • Step 209 The cache server returns the message content of the response message to the client.
  • the cache server can obtain the target page from the source server and classify and cache the target page. In this way, when a request to access the target page is encountered again, only the Steps 107 and 201 are repeated. Because the classified target page already exists in the cache page at this time, the page content of the corresponding category can be queried according to the classification field and field value in the page acquisition request. Repeat steps 203, 205, and 207 for queries not found in the cached page.
  • a custom classification field is provided for users to use; thus, when the cache server performs classification caching, it can be based on more classification basis, more flexible, and achieve better classification results.
  • the same classification rules can be used to achieve the classification of cached pages and the acquisition of cached pages; including the client's user information based on classification rules in advance.
  • the tag information is written into the message header; and the same classification rule is written in the response message returned by the source server to the cache server, so that the cache server performs cache classification based on the same classification rule.
  • a cache server classification method shown in FIG. 2 is described below with the cache server as an execution subject.
  • the method may include the following steps:
  • Step 310 The cache server sends a page cache request message to the source server.
  • Step 320 Receive a response packet returned by the source server, and obtain a classification field in a packet header of the response packet; wherein the classification field is written by the source server in a packet header of the response packet Enter the custom field under the header field;
  • Step 330 Classify and cache the message content of the response message according to the classification field.
  • the performing a class buffer in the response message according to the classification field specifically includes:
  • the method further includes:
  • the classification field is sent to the client as a classification rule.
  • the header field includes a Vary field
  • the custom field is a user information field.
  • the user information field includes a percentage uniquely identified by the user
  • the percentage is used as the field value of the classification field.
  • the method may include the following steps:
  • Step 410 The client intercepts a request message for page acquisition initiated by the user;
  • Step 420 Write the marking information of the user into a header of the request message; the marking information includes a classification field and a field value;
  • Step 430 Forward the processed request message to a cache server, so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
  • Step 440 Accept the page content returned by the cache server.
  • the method further includes:
  • the classification field in the marking information includes a percentage uniquely identified by the user
  • the method of marking the user according to the classification rule to obtain the marking information of the user specifically includes:
  • the writing the user's marking information into a header of the request message specifically includes:
  • this specification also provides an embodiment of a device for classifying a cache page.
  • the device embodiments may be implemented by software, or may be implemented by hardware or a combination of software and hardware.
  • software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer business program instructions in the non-volatile memory into the memory through the processor of the device in which it is located.
  • hardware as shown in FIG. 4, it is a hardware structure diagram of the device where the classification device of the cache page of this specification is located, except for the processor, network interface, memory, and non-volatile memory shown in FIG. 4.
  • the device where the device is located usually includes actual functions according to the classification of the cache page, and may also include other hardware, which will not be described again.
  • FIG. 5 is a block diagram of a device for classifying a cache page according to an embodiment of the specification.
  • the device corresponds to the embodiment shown in FIG. 2.
  • a sending unit 510 the cache server sends a page cache request message to the source server;
  • the obtaining unit 520 receives a response packet returned by the source server, and obtains a classification field in a packet header of the response packet; wherein the classification field is a packet header of the response packet of the source server Write a custom field under the header field;
  • the classification unit 530 performs classification buffering on the message content of the response message according to the classification field.
  • the classification unit 530 specifically includes:
  • a cache subunit which caches the page content corresponding to the message content of the response message
  • a calculation subunit calculating a field value of the classification field under the page content according to the page content
  • the classification subunit classifies the cached page into a corresponding category according to a field value of the classification field.
  • the apparatus further includes:
  • the issuing unit sends the classification field to the client as a classification rule.
  • the header field includes a Vary field
  • the custom field is a user information field.
  • the user information field includes a percentage uniquely identified by the user
  • the calculation subunit specifically includes:
  • the percentage is used as the field value of the classification field.
  • this specification also provides an embodiment of an apparatus for acquiring a cached page.
  • the device embodiments may be implemented by software, or may be implemented by hardware or a combination of software and hardware.
  • software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer business program instructions in the non-volatile memory into the memory through the processor of the device in which it is located.
  • hardware as shown in FIG. 6, it is a hardware structure diagram of the device where the obtaining device of the cache page of this specification is located, except for the processor, network interface, memory, and non-volatile memory shown in FIG. 6.
  • the device where the device is located usually acquires actual functions according to the cached page, and may also include other hardware, which will not be described again.
  • FIG. 7 is a block diagram of an apparatus for acquiring a cache page according to an embodiment of the present specification.
  • the apparatus corresponds to the embodiment shown in FIG. 3.
  • the apparatus includes:
  • the intercepting unit 610 the client intercepts a request message for page acquisition initiated by a user
  • the writing unit 620 writes the marking information of the user into a header of the request message; the marking information includes a classification field and a field value;
  • a forwarding unit 630 which forwards the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
  • the receiving unit 640 accepts the page content returned by the cache server.
  • the apparatus further includes:
  • a receiving subunit receiving a classification rule issued by a cache server, where the classification rule is a classification field used by the cache server when classifying a cache page;
  • the marking subunit marks the user according to the classification rule to obtain the user's marking information.
  • the classification field in the marking information includes a percentage uniquely identified by the user
  • the marking subunit specifically includes:
  • the writing unit 620 specifically includes:
  • the system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or a combination of any of these devices.
  • the relevant part may refer to the description of the method embodiment.
  • the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located One place, or it can be distributed across multiple network elements. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
  • the above Figure 5 describes the internal functional modules and structure of the data aggregation device.
  • the substantial execution body may be an electronic device, including:
  • Memory for storing processor-executable instructions
  • the processor is configured to:
  • the cache server sends a page cache request message to the source server
  • the classifying and buffering the message of the response message according to the classification field specifically includes:
  • Optional also includes:
  • the classification field is sent to the client as a classification rule.
  • the header field includes a Vary field
  • the custom field is a user information field.
  • the user information field includes a percentage uniquely identified by the user
  • the percentage is used as the field value of the classification field.
  • the above Figure 7 describes the internal functional modules and structure of the data aggregation device.
  • the substantial execution body can be an electronic device, including:
  • Memory for storing processor-executable instructions
  • the processor is configured to:
  • the client intercepts the request message of the page acquisition initiated by the user
  • the marking information includes a classification field and a field value
  • the preprocessing phase it also includes:
  • the classification field in the marking information includes a percentage uniquely identified by the user
  • the method of marking the user according to the classification rule to obtain the marking information of the user specifically includes:
  • the writing the user's marking information into a header of the request message specifically includes:
  • the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processors, digital signal processors (English: Digital Signal Processor) , Referred to as DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as ASIC), etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the foregoing memory may be a read-only memory (English: read-only memory (abbreviation: ROM)), a random access memory (English : Random access memory (abbreviation: RAM), flash memory, hard disk or solid state hard disk.
  • the steps of the method disclosed in combination with the embodiments of the present invention may be directly implemented by a hardware processor, or may be performed by a combination of hardware and software modules in the processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the present description provide a method and apparatus for classifying cache pages, and an electronic device. The method comprises: a cache server sending a request message for a page cache to a source server; receiving a response message returned by the source server, and acquiring a classification field in a message header of the response message, wherein the classification field is a customized field written by the source server into a header field in the message header of the response message; and classifying and caching message content of the response message according to the classification field.

Description

缓存页面的分类、获取方法及装置和电子设备Classification and acquisition method and device of cached page, and electronic equipment 技术领域Technical field
本说明书实施例涉及互联网技术领域,尤其涉及一种缓存页面的分类、获取方法及装置和电子设备。The embodiments of the present specification relate to the field of Internet technologies, and in particular, to a method and device for classifying and acquiring cached pages, and an electronic device.
背景技术Background technique
为了提供互联网访问速度,降低用户访问页面的时间,提出了一种用于缓存页面的缓存服务器。用户访问目标页面时,通过CDN首先访问缓存服务器,当缓存服务器中缓存有目标页面时,直接将缓存的目标页面返回给客户端。In order to provide Internet access speed and reduce the time for users to access pages, a cache server for caching pages is proposed. When the user accesses the target page, the user first accesses the cache server through the CDN. When the cache server has the target page cached, the cached target page is returned directly to the client.
通常,缓存服务器为了提升查询效率,可以预先对缓存页面进行分类。在相关技术中,缓存服务器可以基于固定的几个用于分类的字段进行分类。然而,由于这些个字段是固定的,具有固定的含义,也就是说只能按照有限的维度对缓存页面进行分类。Generally, in order to improve query efficiency, the cache server can classify cached pages in advance. In the related art, the cache server may perform classification based on a fixed number of fields for classification. However, because these fields are fixed and have a fixed meaning, that is, the cached pages can only be classified according to a limited dimension.
需要提供一种更为灵活更有效率的缓存页面的分类方案。There is a need to provide a more flexible and efficient classification scheme for cached pages.
发明内容Summary of the invention
本说明书实施例提供的一种缓存页面的分类方法及装置和电子设备,以及缓存页面的获取方法及装置和电子设备:A method, an apparatus, and an electronic device for classifying a cache page, and a method, an apparatus, and an electronic device for acquiring a cache page provided in the embodiments of the present specification:
根据本说明书实施例的第一方面,提供一种缓存页面的分类方法,所述方法包括:According to a first aspect of the embodiments of the present specification, a method for classifying a cache page is provided. The method includes:
缓存服务器向源服务器发送页面缓存的请求报文;The cache server sends a page cache request message to the source server;
接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;Receive a response message returned by the source server, and obtain a classification field in a message header of the response message; wherein the classification field is a header written by the source server in a message header of the response message Custom fields under fields;
根据所述分类字段对所述响应报文的报文内容做分类缓存。Classify and buffer the message content of the response message according to the classification field.
根据本说明书实施例的第二方面,提供一种缓存页面的获取方法,所述方法包括:According to a second aspect of the embodiments of the present specification, a method for acquiring a cached page is provided. The method includes:
客户端拦截用户发起的页面获取的请求报文;The client intercepts the request message of the page acquisition initiated by the user;
将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;Write the user's marking information into the header of the request message; the marking information includes a classification field and a field value;
将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;Forward the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and field value;
接受所述缓存服务器返回的页面内容。Accept the page content returned by the cache server.
根据本说明书实施例的第三方面,提供一种缓存页面的分类装置,所述装置包括:According to a third aspect of the embodiments of the present specification, a device for classifying a cache page is provided, and the device includes:
发送单元,缓存服务器向源服务器发送页面缓存的请求报文;A sending unit, the cache server sends a page cache request message to the source server;
获取单元,接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;The obtaining unit receives a response message returned by the source server, and obtains a classification field in a message header of the response message, where the classification field is written by the source server in a message header of the response message Enter the custom field under the header field;
分类单元,根据所述分类字段对所述响应报文的报文内容做分类缓存。The classification unit buffers the content of the response message according to the classification field.
根据本说明书实施例的第四方面,提供一种缓存页面的获取装置,所述装置包括:According to a fourth aspect of the embodiments of the present specification, an apparatus for acquiring a cached page is provided. The apparatus includes:
拦截单元,客户端拦截用户发起的页面获取的请求报文;Interception unit, the client intercepts the request message of the page acquisition initiated by the user;
写入单元,将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;A writing unit that writes the user's marking information into a header of the request message; the marking information includes a classification field and a field value;
转发单元,将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;A forwarding unit, which forwards the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
接收单元,接受所述缓存服务器返回的页面内容。The receiving unit accepts the page content returned by the cache server.
根据本说明书实施例的第五方面,提供一种电子设备,包括:According to a fifth aspect of the embodiments of the present specification, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor-executable instructions;
其中,所述处理器被配置为上述任一项缓存页面的分类方法。Wherein, the processor is configured as any one of the above-mentioned cache page classification methods.
根据本说明书实施例的第六方面,提供一种电子设备,包括:According to a sixth aspect of the embodiments of the present specification, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor-executable instructions;
其中,所述处理器被配置为上述任一项缓存页面的获取方法。The processor is configured as any one of the foregoing methods for acquiring a cached page.
本说明书实施例,提供了一种缓存页面的分类、获取方案,一方面,提供自定义的分类字段供用户使用;从而使得缓存服务器做分类缓存时,可以基于更多分类依据,更 为灵活,实现的分类效果更佳。另一方面,通过客户端、缓存服务器、源服务器等多方配合,采用相同分类规则,即可以实现缓存页面的分类,也可以实现缓存页面的获取;包括客户端基于分类规则提前对用户信息进行打标,拦截用户请求后,将打标信息写入报文头;以及源服务器返回给缓存服务器的响应报文中写入有同样的分类规则,使得缓存服务器基于同样的分类规则进行缓存分类。The embodiments of the present specification provide a classification and retrieval scheme for cached pages. On the one hand, a custom classification field is provided for users to use; thus, when the cache server performs classification caching, it can be based on more classification basis and more flexible. The classification effect achieved is better. On the other hand, through the cooperation of multiple parties such as the client, cache server, and source server, the same classification rules can be used to achieve the classification of cached pages and the acquisition of cached pages; including the client's user information based on classification rules in advance. After intercepting a user request, the tag information is written into the message header; and the same classification rule is written in the response message returned by the source server to the cache server, so that the cache server performs cache classification based on the same classification rule.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本说明书一实施例提供的缓存页面的分类和获取方法的流程图;FIG. 1 is a flowchart of a method for classifying and acquiring a cache page provided by an embodiment of the present specification; FIG.
图2是本说明书一实施例提供的缓存页面的分类方法的流程图;FIG. 2 is a flowchart of a method for classifying a cache page according to an embodiment of the present specification; FIG.
图3是本说明书一实施例提供的缓存页面的获取方法的流程图;3 is a flowchart of a method for acquiring a cached page provided by an embodiment of the present specification;
图4是本说明书一实施例提供的缓存页面的分类装置的硬件结构图;4 is a hardware structural diagram of a device for classifying a cache page provided by an embodiment of the present specification;
图5是本说明书一实施例提供的缓存页面的分类装置的模块示意图;5 is a schematic block diagram of a device for classifying a cache page according to an embodiment of the present specification;
图6是本说明书一实施例提供的缓存页面的获取装置的硬件结构图;FIG. 6 is a hardware structural diagram of an apparatus for acquiring a cache page provided by an embodiment of the present specification; FIG.
图7是本说明书一实施例提供的缓存页面的获取装置的模块示意图。FIG. 7 is a module schematic diagram of an apparatus for acquiring a cached page provided by an embodiment of the present specification.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Rather, they are merely examples of devices and methods consistent with certain aspects of the specification, as detailed in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the specification. As used in this specification and the appended claims, the singular forms "a", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在…… 时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at ..." or "when ..." or "in response to a determination".
为了解决上述问题,本说明书提供给了一种缓存页面的分类以及获取方案,以下可以参考图1所示的例子介绍,所述方法可以包括以下步骤:In order to solve the above problem, this specification provides a classification and acquisition scheme for cached pages. The following can be introduced with reference to the example shown in FIG. 1. The method can include the following steps:
步骤101:缓存服务器向客户端下发分类规则,所述分类规则为所述缓存服务器对缓存页面进行分类时用的分类字段。Step 101: The cache server sends a classification rule to the client, where the classification rule is a classification field used by the cache server to classify the cached page.
这里的分类规则具体可以按照后续步骤203-207获取。The classification rules here can be specifically obtained according to subsequent steps 203-207.
本说明中的下发动作,只是为了说明分类规则由缓存服务器提供给客户端。在有的实施例中,可以根据不同的语义进行转换,例如可以为推送,即缓存服务器将分类规则推送给客户端;还有的可以是由客户端主动向缓存服务器获取分类规则,进而由缓存服务器将分类规则发送给客户端等等。The issuing action in this description is only to explain that the classification rule is provided by the cache server to the client. In some embodiments, the conversion can be performed according to different semantics, for example, it can be a push, that is, the cache server pushes the classification rule to the client; and the other can be that the client actively obtains the classification rule from the cache server, and then the cache The server sends classification rules to the client and so on.
步骤103:所述客户端接收所述缓存服务器下发的分类规则,所述分类规则为所述缓存服务器进行缓存页面分类时用的分类字段。Step 103: The client receives a classification rule issued by the cache server, where the classification rule is a classification field used by the cache server when classifying a cache page.
在一实施例中,所述分类字段是所述源服务器在响应报文的头部写入头部字段下的自定义字段。In an embodiment, the classification field is a custom field written by the source server under a header field written in a response packet.
步骤105:所述客户端根据所述分类规则预先对当前用户打标,得到所述用户的打标信息。Step 105: The client marks the current user in advance according to the classification rule to obtain the user's marking information.
所述当前用户可以是指当前使用客户端的用户。本说明书中的客户端可以是指软件上的应用客户端,例如电子钱包APP、即时通讯APP等。一般的,用户使用客户端时需要进行账户登录,因此在用户登录的情况下,客户端就可以对当前登录的用户打标。The current user may refer to a user currently using a client. The client in this specification may refer to an application client on the software, such as an electronic wallet APP, an instant messaging APP, and the like. Generally, a user needs to log in to an account when using the client, so when the user logs in, the client can mark the currently logged in user.
具体地,所述客户端可以根据用户信息确定所述分类字段的具体数值;将所述分类字段以及具体数值作为打标信息。Specifically, the client may determine the specific value of the classification field according to the user information; and use the classification field and the specific value as the marking information.
在一实施例中,所述分类字段包括用户唯一标识的百分比;In an embodiment, the classification field includes a percentage uniquely identified by the user;
所述客户端根据用户数据确定所述分类字段的具体数值;将所述分类字段以及具体数值作为打标信息Determining, by the client, specific values of the classification fields according to user data; and using the classification fields and specific values as marking information
根据所述用户唯一标识,计算所在的比分比;Calculating the score ratio according to the unique identifier of the user;
将所述百分比作为分类字段的值。The percentage is used as the value of the classification field.
举例说明,假设分类字段为userID-level(表示用户ID百分比),根据用户ID计算 用户所处的百分比区段为3%,即该用户ID位于总用户群体的前3%。那么,打标信息可以为userID-level:3。As an example, suppose the classification field is userID-level (representing the percentage of user ID). According to the user ID, the percentage range of the user is 3%, that is, the user ID is in the top 3% of the total user group. Then, the marking information can be userID-level: 3.
步骤107:所述客户端拦截用户发起的页面获取请求,将所述用户的打标信息写入到所述请求的报文头中;并且根据所述处理后的请求报文向缓存服务器发起页面获取请求。Step 107: The client intercepts a page acquisition request initiated by a user, writes the user's marking information into a header of the request, and initiates a page to the cache server according to the processed request message. Get request.
如前所述,为了提供互联网访问速度,降低用户访问页面的时间,提出了一种用于缓存页面的缓存服务器。具体地,通过CDN(Content Delivery Network,内容分发网络)尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。通常,可以在网络各节点处放置缓存服务器,从而构成在现有互联网基础之上的一层智能虚拟网络。所述缓存服务器上可以缓存有页面内容。CDN系统能够根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的缓存服务器,从而实现就近获取用户所需内容,解决Internet网络拥挤的状况,提高用户访问网站的响应速度。As mentioned earlier, in order to provide Internet access speed and reduce the time for users to access pages, a cache server for caching pages is proposed. Specifically, the CDN (Content Delivery Network) is used to avoid as much as possible bottlenecks and links on the Internet that may affect data transmission speed and stability, and make content transmission faster and more stable. Generally, a cache server can be placed at each node of the network to form a layer of intelligent virtual network based on the existing Internet. The cache server may cache page content. The CDN system can redirect the user's request to the cache server closest to the user based on comprehensive information such as network traffic and the connection, load status of each node, and the response time to the user. Crowded conditions improve the response speed of users accessing the website.
在本说明书中,同样地,CDN系统的DNS(Domain Name System,域名系统)可以解析所述页面获取请求,并找到最优的缓存服务器,向所述最优的缓存服务器转发该页面获取请求。通常所述最优可以是指是距离用户最近的缓存服务器。In this specification, similarly, the DNS (Domain Name System) of the CDN system can parse the page acquisition request, find an optimal cache server, and forward the page acquisition request to the optimal cache server. Generally, the optimal may refer to a cache server closest to the user.
值得一提的是,在实际应用中,多个域名可以同时指向一个服务器IP,为了进行区别,可以对域名配置别名,如CNAME规范名字。举例说明,有一台计算机名为“r0WSPFSx58.”(A记录),其同时提供WWW和MAIL服务,为了便于用户访问服务,可以为该计算机设置两个CNAME:WWW和MAIL。如此,在访问时,CDN系统可以根据CNAME,查询到对应的CDN加速域名;进一步的,可以根据CDN系统的DNS解析所述页面获取请求,并找到最优的缓存服务器,向所述最优的缓存服务器转发该页面获取请求。It is worth mentioning that, in practical applications, multiple domain names can point to a server IP at the same time. In order to distinguish, you can configure aliases for the domain names, such as CNAME canonical names. For example, there is a computer named "r0WSPFSx58." (A record), which provides both WWW and MAIL services. In order to facilitate user access to the service, two CNAMEs can be set for the computer: WWW and MAIL. In this way, during access, the CDN system can query the corresponding CDN accelerated domain name according to the CNAME; further, it can resolve the page acquisition request according to the DNS of the CDN system, and find the optimal cache server to the optimal The cache server forwards the page fetch request.
在一实施例中,所述将所述用户的打标信息写入到所述请求的报文头中,具体包括:In an embodiment, the writing the user's marking information into a header of the request specifically includes:
将所述用户的打标信息作为Vary字段写入到所述请求的报文头。Write the user's marking information as a Vary field into the request message header.
Vary字段通常是一种HTTP请求/响应报文的头部信息。一般的,对于一个请求,Vary字段可以决定是允许用从缓存中选择历史响应进行回复(respinse),还是向源服务器请求一个新的响应。现有技术中,常见的Vary字段只有固定的几个。The Vary field is usually the header information of an HTTP request / response message. In general, for a request, the Vary field can decide whether to allow the response to be retrieved by selecting the historical response from the cache, or to request a new response from the origin server. In the prior art, there are only a few fixed Vary fields.
本说明书中,将分类字段以Vary字段形式加入报文头后,即具备原本Vary允许从 缓存服务器的缓存页面中获取页面内容,还提供自定义的分类字段供用户使用;从而使得缓存服务器做分类缓存时,可以基于更多分类依据,更为灵活,实现的分类效果更佳。In this specification, after adding the classification field to the message header in the form of a Vary field, the original Vary is allowed to obtain the page content from the cache page of the cache server, and a custom classification field is also provided for users to use; thus the cache server classifies When caching, it can be based on more classification basis, more flexible, and better classification effect.
步骤201:所述缓存服务器根据所述客户端发送的页面获取请求中的分类字段以及字段值,从本地缓存的页面中查询对应类别的页面内容。Step 201: The cache server queries the content of the corresponding category from the locally cached page according to the classification field and the field value in the page acquisition request sent by the client.
所述从本地缓存的页面中查询对应类别的页面内容,可能存在两种情况。There may be two cases in the querying the page content of the corresponding category from the locally cached page.
第一种,可以查询到,则直接将查询到的页面内容返回给客户端。First, if it can be queried, it will directly return the queried page content to the client.
第二种,查询不到,则说明没有缓存客户端需要的页面内容;则执行步骤203。Second, if the query is not available, it indicates that the page content required by the client is not cached; then step 203 is performed.
步骤203:当查询不到对应类别的页面内容时,所述缓存服务器向源服务器发送页面缓存的请求报文。Step 203: When the page content of the corresponding category cannot be queried, the cache server sends a page cache request message to the source server.
所述源服务器可以是指客户端需要查询目标页面。通常,客户端发送的页面获取请求中还携带有页面地址;根据页面地址就可以路由到源服务器。The source server may mean that a client needs to query a target page. Generally, the page acquisition request sent by the client also carries the page address; according to the page address, it can be routed to the source server.
源服务器在接收到缓存服务器发送的页面缓存请求后,基于所述页面地址获取对应的页面内容;在响应报文的报文头中加入分类字段;用于供缓存服务器按照分类字段对页面内容进行分类;进而可以将包含所述页面内容的响应报文返回给缓存服务器。After receiving the page cache request sent by the cache server, the source server obtains the corresponding page content based on the page address; adds a classification field to the header of the response message; and is used by the cache server to perform the page content according to the classification field. Classification; further, a response message containing the content of the page may be returned to the cache server.
步骤205:所述缓存服务器接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的头部写入头部字段下的自定义字段。Step 205: The cache server receives a response message returned by the source server, and obtains a classification field in a packet header of the response message; wherein the classification field is the response of the source server in the response message. The header is written into the custom field under the header field.
步骤207:所述缓存服务器根据所述分类字段对所述响应报文的报文内容做分类缓存。Step 207: The cache server caches the content of the response message according to the classification field.
具体地,所述步骤207,可以包括:Specifically, the step 207 may include:
缓存所述响应报文的报文内容对应的页面内容;Buffering the page content corresponding to the message content of the response message;
根据所述页面内容,计算该页面内容下所述分类字段的值;Calculating the value of the classification field under the page content according to the page content;
根据所述分类字段的值,将该缓存的页面分类到对应的类别中。Classify the cached page into a corresponding category according to the value of the classification field.
值得一提的是,缓存服务器可以将所述分类字段作为分类规则下发给客户端,即前述步骤101。It is worth mentioning that the cache server may send the classification field to the client as a classification rule, that is, the foregoing step 101.
步骤209:所述缓存服务器将所述响应报文的报文内容返回给所述客户端。Step 209: The cache server returns the message content of the response message to the client.
如上所述的实施例,在缓存服务器中不存在目标页面时,缓存服务器就可以向源服 务器获取目标页面,并对目标页面进行分类缓存,如此,当再次遇见访问目标页面的请求时,只需要重复步骤107以及201由于此时缓存页面中已经存在分类的目标页面了,因此可以根据页面获取请求中的分类字段以及字段值查询到对应类别的页面内容。对于缓存页面中查询不到则重复步骤203、205和207。In the embodiment described above, when the target server does not exist in the cache server, the cache server can obtain the target page from the source server and classify and cache the target page. In this way, when a request to access the target page is encountered again, only the Steps 107 and 201 are repeated. Because the classified target page already exists in the cache page at this time, the page content of the corresponding category can be queried according to the classification field and field value in the page acquisition request. Repeat steps 203, 205, and 207 for queries not found in the cached page.
通过上述方式,一方面,提供自定义的分类字段供用户使用;从而使得缓存服务器做分类缓存时,可以基于更多分类依据,更为灵活,实现的分类效果更佳。另一方面,通过客户端、缓存服务器、源服务器等多方配合,采用相同分类规则,即可以实现缓存页面的分类,也可以实现缓存页面的获取;包括客户端基于分类规则提前对用户信息进行打标,拦截用户请求后,将打标信息写入报文头;以及源服务器返回给缓存服务器的响应报文中写入有同样的分类规则,使得缓存服务器基于同样的分类规则进行缓存分类。In the foregoing manner, on the one hand, a custom classification field is provided for users to use; thus, when the cache server performs classification caching, it can be based on more classification basis, more flexible, and achieve better classification results. On the other hand, through the cooperation of multiple parties such as the client, cache server, and source server, the same classification rules can be used to achieve the classification of cached pages and the acquisition of cached pages; including the client's user information based on classification rules in advance. After intercepting a user request, the tag information is written into the message header; and the same classification rule is written in the response message returned by the source server to the cache server, so that the cache server performs cache classification based on the same classification rule.
在图1的基础上,以下以缓存服务器为执行主体介绍图2所示的一种缓存页面的分类方法,所述方法可以包括以下步骤:Based on FIG. 1, a cache server classification method shown in FIG. 2 is described below with the cache server as an execution subject. The method may include the following steps:
步骤310:缓存服务器向源服务器发送页面缓存的请求报文;Step 310: The cache server sends a page cache request message to the source server.
步骤320:接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;Step 320: Receive a response packet returned by the source server, and obtain a classification field in a packet header of the response packet; wherein the classification field is written by the source server in a packet header of the response packet Enter the custom field under the header field;
步骤330:根据所述分类字段对所述响应报文的报文内容做分类缓存。Step 330: Classify and cache the message content of the response message according to the classification field.
在一实施例中,所述根据所述分类字段对所述响应报文的报文内做分类缓存,具体包括:In an embodiment, the performing a class buffer in the response message according to the classification field specifically includes:
缓存所述响应报文的报文内容对应的页面内容;Buffering the page content corresponding to the message content of the response message;
根据所述页面内容,计算该页面内容下所述分类字段的字段值;Calculating a field value of the classification field under the page content according to the page content;
根据所述分类字段的字段值,将该缓存的页面分类到对应的类别中。Classify the cached page into a corresponding category according to the field value of the classification field.
在一实施例中,所述方法还包括:In an embodiment, the method further includes:
将所述分类字段作为分类规则下发至客户端。The classification field is sent to the client as a classification rule.
在一实施例中,所述头部字段包括Vary字段;In an embodiment, the header field includes a Vary field;
所述在响应报文的报文头写入头部字段下的自定义字段,具体包括:The custom field written in the header of the response packet under the header field specifically includes:
在响应报文的报文头写入Vary字段下的自定义字段。Write a custom field under the Vary field in the header of the response message.
在一实施例中,所述自定义字段为用户信息字段。In one embodiment, the custom field is a user information field.
在一实施例中,所述用户信息字段包括用户唯一标识的百分比;In an embodiment, the user information field includes a percentage uniquely identified by the user;
所述根据所述页面内容,计算该页面内容下所述分类字段的值,具体包括:The calculating the value of the classification field under the page content according to the page content specifically includes:
根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
将所述百分比作为分类字段的字段值。The percentage is used as the field value of the classification field.
在图1的基础上,以下以客户端为执行主体介绍图3所示的一种缓存页面的获取方法,所述方法可以包括以下步骤:Based on FIG. 1, the following describes a method for obtaining a cached page shown in FIG. 3 with a client as an execution subject. The method may include the following steps:
步骤410:客户端拦截用户发起的页面获取的请求报文;Step 410: The client intercepts a request message for page acquisition initiated by the user;
步骤420:将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;Step 420: Write the marking information of the user into a header of the request message; the marking information includes a classification field and a field value;
步骤430:将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;Step 430: Forward the processed request message to a cache server, so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
步骤440:接受所述缓存服务器返回的页面内容。Step 440: Accept the page content returned by the cache server.
在一实施例中,在预处理阶段,所述方法还包括:In an embodiment, in the pre-processing stage, the method further includes:
所述客户端接收缓存服务器下发的分类规则,所述分类规则为缓存服务器进行缓存页面分类时用的分类字段;Receiving, by the client, a classification rule issued by a cache server, where the classification rule is a classification field used by the cache server to classify cache pages;
根据所述分类规则对用户打标,得到所述用户的打标信息。Mark the user according to the classification rule to obtain the user's marking information.
在一实施例中,所述打标信息中的分类字段包括用户唯一标识的百分比;In an embodiment, the classification field in the marking information includes a percentage uniquely identified by the user;
所述根据所述分类规则对用户打标,得到所述用户的打标信息,具体包括:The method of marking the user according to the classification rule to obtain the marking information of the user specifically includes:
根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
将所述百分比作为打标信息中的字段值。Use the percentage as the field value in the marking information.
在一实施例中,所述将所述用户的打标信息写入到所述请求报文的报文头中,具体包括:In an embodiment, the writing the user's marking information into a header of the request message specifically includes:
将所述用户的打标信息以Vary字段形式写入到所述请求报文的报文头中。And writing the user's marking information into a header of the request message in the form of a Vary field.
值得一提的是,在缓存服务器查询不到对应页面内容时,执行前述步骤310-330,并将响应报文的报文内容返回给客户端。It is worth mentioning that when the cache server cannot query the corresponding page content, the foregoing steps 310-330 are performed, and the content of the response message is returned to the client.
与前述缓存页面的分类方法实施例相对应,本说明书还提供了缓存页面的分类装置的实施例。所述装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机业务程序指令读取到内存中运行形成的。从硬件层面而言,如图4所示,为本说明书缓存页面的分类装置所在设备的一种硬件结构图,除了图4所示的处理器、网络接口、内存以及非易失性存储器之外,实施例中装置所在的设备通常根据缓存页面的分类实际功能,还可以包括其他硬件,对此不再赘述。Corresponding to the foregoing embodiment of a method for classifying a cache page, this specification also provides an embodiment of a device for classifying a cache page. The device embodiments may be implemented by software, or may be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer business program instructions in the non-volatile memory into the memory through the processor of the device in which it is located. In terms of hardware, as shown in FIG. 4, it is a hardware structure diagram of the device where the classification device of the cache page of this specification is located, except for the processor, network interface, memory, and non-volatile memory shown in FIG. 4. In the embodiment, the device where the device is located usually includes actual functions according to the classification of the cache page, and may also include other hardware, which will not be described again.
请参见图5,为本说明书一实施例提供的缓存页面的分类装置的模块图,所述装置对应了图2所示实施例,所述装置包括:Please refer to FIG. 5, which is a block diagram of a device for classifying a cache page according to an embodiment of the specification. The device corresponds to the embodiment shown in FIG. 2.
发送单元510,缓存服务器向源服务器发送页面缓存的请求报文;A sending unit 510, the cache server sends a page cache request message to the source server;
获取单元520,接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;The obtaining unit 520 receives a response packet returned by the source server, and obtains a classification field in a packet header of the response packet; wherein the classification field is a packet header of the response packet of the source server Write a custom field under the header field;
分类单元530,根据所述分类字段对所述响应报文的报文内容做分类缓存。The classification unit 530 performs classification buffering on the message content of the response message according to the classification field.
在一实施例中,所述分类单元530,具体包括:In an embodiment, the classification unit 530 specifically includes:
缓存子单元,缓存所述响应报文的报文内容对应的页面内容;A cache subunit, which caches the page content corresponding to the message content of the response message;
计算子单元,根据所述页面内容,计算该页面内容下所述分类字段的字段值;A calculation subunit, calculating a field value of the classification field under the page content according to the page content;
分类子单元,根据所述分类字段的字段值,将该缓存的页面分类到对应的类别中。The classification subunit classifies the cached page into a corresponding category according to a field value of the classification field.
在一实施例中,所述装置还包括:In an embodiment, the apparatus further includes:
下发单元,将所述分类字段作为分类规则下发至客户端。The issuing unit sends the classification field to the client as a classification rule.
在一实施例中,所述头部字段包括Vary字段;In an embodiment, the header field includes a Vary field;
所述在响应报文的报文头写入头部字段下的自定义字段,具体包括:The custom field written in the header of the response packet under the header field specifically includes:
在响应报文的报文头写入Vary字段下的自定义字段。Write a custom field under the Vary field in the header of the response message.
在一实施例中,所述自定义字段为用户信息字段。In one embodiment, the custom field is a user information field.
在一实施例中,所述用户信息字段包括用户唯一标识的百分比;In an embodiment, the user information field includes a percentage uniquely identified by the user;
所述计算子单元,具体包括:The calculation subunit specifically includes:
根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
将所述百分比作为分类字段的字段值。The percentage is used as the field value of the classification field.
与前述缓存页面的获取方法实施例相对应,本说明书还提供了缓存页面的获取装置的实施例。所述装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器将非易失性存储器中对应的计算机业务程序指令读取到内存中运行形成的。从硬件层面而言,如图6所示,为本说明书缓存页面的获取装置所在设备的一种硬件结构图,除了图6所示的处理器、网络接口、内存以及非易失性存储器之外,实施例中装置所在的设备通常根据缓存页面的获取实际功能,还可以包括其他硬件,对此不再赘述。Corresponding to the foregoing embodiment of the method for acquiring a cached page, this specification also provides an embodiment of an apparatus for acquiring a cached page. The device embodiments may be implemented by software, or may be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by reading the corresponding computer business program instructions in the non-volatile memory into the memory through the processor of the device in which it is located. In terms of hardware, as shown in FIG. 6, it is a hardware structure diagram of the device where the obtaining device of the cache page of this specification is located, except for the processor, network interface, memory, and non-volatile memory shown in FIG. 6. In the embodiment, the device where the device is located usually acquires actual functions according to the cached page, and may also include other hardware, which will not be described again.
请参见图7,为本说明书一实施例提供的缓存页面的获取装置的模块图,所述装置对应了图3所示实施例,所述装置包括:Please refer to FIG. 7, which is a block diagram of an apparatus for acquiring a cache page according to an embodiment of the present specification. The apparatus corresponds to the embodiment shown in FIG. 3. The apparatus includes:
拦截单元610,客户端拦截用户发起的页面获取的请求报文;The intercepting unit 610, the client intercepts a request message for page acquisition initiated by a user;
写入单元620,将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;The writing unit 620 writes the marking information of the user into a header of the request message; the marking information includes a classification field and a field value;
转发单元630,将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;A forwarding unit 630, which forwards the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
接收单元640,接受所述缓存服务器返回的页面内容。The receiving unit 640 accepts the page content returned by the cache server.
在一实施例中,在预处理阶段,所述装置还包括:In an embodiment, in the pre-processing stage, the apparatus further includes:
接收子单元,接收缓存服务器下发的分类规则,所述分类规则为缓存服务器进行缓存页面分类时用的分类字段;A receiving subunit, receiving a classification rule issued by a cache server, where the classification rule is a classification field used by the cache server when classifying a cache page;
打标子单元,根据所述分类规则对用户打标,得到所述用户的打标信息。The marking subunit marks the user according to the classification rule to obtain the user's marking information.
在一实施例中,所述打标信息中的分类字段包括用户唯一标识的百分比;In an embodiment, the classification field in the marking information includes a percentage uniquely identified by the user;
所述打标子单元,具体包括:The marking subunit specifically includes:
根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
将所述百分比作为打标信息中的字段值。Use the percentage as the field value in the marking information.
在一实施例中,所述写入单元620,具体包括:In an embodiment, the writing unit 620 specifically includes:
将所述用户的打标信息以Vary字段形式写入到所述请求报文的报文头中。And writing the user's marking information into a header of the request message in the form of a Vary field.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or a combination of any of these devices.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For details about the implementation process of the functions and functions of the units in the foregoing device, see the implementation process of the corresponding steps in the foregoing method for details, and details are not described herein again.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本说明书方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, the relevant part may refer to the description of the method embodiment. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, may be located One place, or it can be distributed across multiple network elements. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art can understand and implement without creative efforts.
以上图5描述了数据汇总装置的内部功能模块和结构示意,其实质上的执行主体可以为一种电子设备,包括:The above Figure 5 describes the internal functional modules and structure of the data aggregation device. The substantial execution body may be an electronic device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor-executable instructions;
其中,所述处理器被配置为:The processor is configured to:
缓存服务器向源服务器发送页面缓存的请求报文;The cache server sends a page cache request message to the source server;
接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;Receive a response message returned by the source server, and obtain a classification field in a message header of the response message; wherein the classification field is a header written by the source server in a message header of the response message Custom fields under fields;
根据所述分类字段对所述响应报文的报文内容做分类缓存。Classify and buffer the message content of the response message according to the classification field.
可选的,所述根据所述分类字段对所述响应报文的报文内做分类缓存,具体包括:Optionally, the classifying and buffering the message of the response message according to the classification field specifically includes:
缓存所述响应报文的报文内容对应的页面内容;Buffering the page content corresponding to the message content of the response message;
根据所述页面内容,计算该页面内容下所述分类字段的字段值;Calculating a field value of the classification field under the page content according to the page content;
根据所述分类字段的字段值,将该缓存的页面分类到对应的类别中。Classify the cached page into a corresponding category according to the field value of the classification field.
可选的,还包括:Optional, also includes:
将所述分类字段作为分类规则下发至客户端。The classification field is sent to the client as a classification rule.
可选的,所述头部字段包括Vary字段;Optionally, the header field includes a Vary field;
所述在响应报文的报文头写入头部字段下的自定义字段,具体包括:The custom field written in the header of the response packet under the header field specifically includes:
在响应报文的报文头写入Vary字段下的自定义字段。Write a custom field under the Vary field in the header of the response message.
可选的,所述自定义字段为用户信息字段。Optionally, the custom field is a user information field.
可选的,所述用户信息字段包括用户唯一标识的百分比;Optionally, the user information field includes a percentage uniquely identified by the user;
所述根据所述页面内容,计算该页面内容下所述分类字段的值,具体包括:The calculating the value of the classification field under the page content according to the page content specifically includes:
根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
将所述百分比作为分类字段的字段值。The percentage is used as the field value of the classification field.
以上图7描述了数据汇总装置的内部功能模块和结构示意,其实质上的执行主体可以为一种电子设备,包括:The above Figure 7 describes the internal functional modules and structure of the data aggregation device. The substantial execution body can be an electronic device, including:
处理器;processor;
用于存储处理器可执行指令的存储器;Memory for storing processor-executable instructions;
其中,所述处理器被配置为:The processor is configured to:
客户端拦截用户发起的页面获取的请求报文;The client intercepts the request message of the page acquisition initiated by the user;
将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;Write the user's marking information into the header of the request message; the marking information includes a classification field and a field value;
将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;Forward the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and field value;
接受所述缓存服务器返回的页面内容。Accept the page content returned by the cache server.
可选的,在预处理阶段,还包括:Optionally, during the preprocessing phase, it also includes:
接收缓存服务器下发的分类规则,所述分类规则为缓存服务器进行缓存页面分类时用的分类字段;Receiving a classification rule issued by a cache server, where the classification rule is a classification field used by the cache server when classifying cache pages;
根据所述分类规则对用户打标,得到所述用户的打标信息。Mark the user according to the classification rule to obtain the user's marking information.
可选的,所述打标信息中的分类字段包括用户唯一标识的百分比;Optionally, the classification field in the marking information includes a percentage uniquely identified by the user;
所述根据所述分类规则对用户打标,得到所述用户的打标信息,具体包括:The method of marking the user according to the classification rule to obtain the marking information of the user specifically includes:
根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
将所述百分比作为打标信息中的字段值。Use the percentage as the field value in the marking information.
可选的,所述将所述用户的打标信息写入到所述请求报文的报文头中,具体包括:Optionally, the writing the user's marking information into a header of the request message specifically includes:
将所述用户的打标信息以Vary字段形式写入到所述请求报文的报文头中。And writing the user's marking information into a header of the request message in the form of a Vary field.
在上述电子设备的实施例中,应理解,该处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above embodiment of the electronic device, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, CPU for short), or other general-purpose processors, digital signal processors (English: Digital Signal Processor) , Referred to as DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as ASIC), etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the foregoing memory may be a read-only memory (English: read-only memory (abbreviation: ROM)), a random access memory (English : Random access memory (abbreviation: RAM), flash memory, hard disk or solid state hard disk. The steps of the method disclosed in combination with the embodiments of the present invention may be directly implemented by a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于电子设备实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the electronic device, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, refer to the description of the method embodiment.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本说明书的其它实施方案。本说明书旨在涵盖本说明书的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本说明书的一般性原理并包括本说明书未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本说明书的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily contemplate other embodiments of the present specification after considering the specification and practicing the invention disclosed herein. This description is intended to cover any variations, uses, or adaptations of this specification. These modifications, uses, or adaptations follow the general principles of this specification and include the common general knowledge or conventional technical means in the technical field not disclosed in this specification. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
应当理解的是,本说明书并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本说明书的范围仅由所附的权利要求来限制。It should be understood that this description is not limited to the precise structure that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of this description is limited only by the following claims.

Claims (14)

  1. 一种缓存页面的分类方法,所述方法包括:A method for classifying cached pages, the method includes:
    缓存服务器向源服务器发送页面缓存的请求报文;The cache server sends a page cache request message to the source server;
    接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;Receive a response message returned by the source server, and obtain a classification field in a message header of the response message; wherein the classification field is a header written by the source server in a message header of the response message Custom fields under fields;
    根据所述分类字段对所述响应报文的报文内容做分类缓存。Classify and buffer the message content of the response message according to the classification field.
  2. 根据权利要求1所述的方法,所述根据所述分类字段对所述响应报文的报文内做分类缓存,具体包括:The method according to claim 1, wherein the classifying and buffering the message of the response message according to the classification field comprises:
    缓存所述响应报文的报文内容对应的页面内容;Buffering the page content corresponding to the message content of the response message;
    根据所述页面内容,计算该页面内容下所述分类字段的字段值;Calculating a field value of the classification field under the page content according to the page content;
    根据所述分类字段的字段值,将该缓存的页面分类到对应的类别中。Classify the cached page into a corresponding category according to the field value of the classification field.
  3. 根据权利要求1所述的方法,所述方法还包括:The method according to claim 1, further comprising:
    将所述分类字段作为分类规则下发至客户端。The classification field is sent to the client as a classification rule.
  4. 根据权利要求1所述的方法,所述头部字段包括Vary字段;The method according to claim 1, wherein the header field comprises a Vary field;
    所述在响应报文的报文头写入头部字段下的自定义字段,具体包括:The custom field written in the header of the response packet under the header field specifically includes:
    在响应报文的报文头写入Vary字段下的自定义字段。Write a custom field under the Vary field in the header of the response message.
  5. 根据权利要求1或2所述的方法,所述自定义字段为用户信息字段。The method according to claim 1 or 2, wherein the custom field is a user information field.
  6. 根据权利要求5所述的方法,所述用户信息字段包括用户唯一标识的百分比;The method according to claim 5, wherein the user information field comprises a percentage uniquely identified by the user;
    所述根据所述页面内容,计算该页面内容下所述分类字段的值,具体包括:The calculating the value of the classification field under the page content according to the page content specifically includes:
    根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
    将所述百分比作为分类字段的字段值。The percentage is used as the field value of the classification field.
  7. 一种缓存页面的获取方法,所述方法包括:A method for acquiring a cached page, the method includes:
    客户端拦截用户发起的页面获取的请求报文;The client intercepts the request message of the page acquisition initiated by the user;
    将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;Write the user's marking information into the header of the request message; the marking information includes a classification field and a field value;
    将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;Forward the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and field value;
    接受所述缓存服务器返回的页面内容。Accept the page content returned by the cache server.
  8. 根据权利要求7所述的方法,在预处理阶段,所述方法还包括:The method according to claim 7, further comprising:
    接收缓存服务器下发的分类规则,所述分类规则为缓存服务器进行缓存页面分类时用的分类字段;Receiving a classification rule issued by a cache server, where the classification rule is a classification field used by the cache server to classify cache pages;
    根据所述分类规则对用户打标,得到所述用户的打标信息。Mark the user according to the classification rule to obtain the user's marking information.
  9. 根据权利要求8所述的方法,所述打标信息中的分类字段包括用户唯一标识的百分比;The method according to claim 8, wherein the classification field in the marking information comprises a percentage uniquely identified by the user;
    所述根据所述分类规则对用户打标,得到所述用户的打标信息,具体包括:The method of marking the user according to the classification rule to obtain the marking information of the user specifically includes:
    根据所述用户唯一标识,计算该用户唯一标识位于总用户群体中的百分比;Calculating, according to the unique identifier of the user, a percentage of the unique identifier of the user in the total user group;
    将所述百分比作为打标信息中的字段值。Use the percentage as the field value in the marking information.
  10. 根据权利要求7所述的方法,所述将所述用户的打标信息写入到所述请求报文的报文头中,具体包括:The method according to claim 7, wherein the writing the user's marking information into a header of the request message specifically comprises:
    将所述用户的打标信息以Vary字段形式写入到所述请求报文的报文头中。And writing the user's marking information into a header of the request message in the form of a Vary field.
  11. 一种缓存页面的分类装置,所述装置包括:A device for classifying cache pages, the device includes:
    发送单元,缓存服务器向源服务器发送页面缓存的请求报文;A sending unit, the cache server sends a page cache request message to the source server;
    获取单元,接收所述源服务器返回的响应报文,并获取所述响应报文的报文头中的分类字段;其中,所述分类字段是所述源服务器在响应报文的报文头写入头部字段下的自定义字段;The obtaining unit receives a response message returned by the source server, and obtains a classification field in a message header of the response message, where the classification field is written by the source server in a message header of the response message Enter the custom field under the header field;
    分类单元,根据所述分类字段对所述响应报文的报文内容做分类缓存。The classification unit buffers the content of the response message according to the classification field.
  12. 一种缓存页面的获取装置,所述装置包括:An apparatus for acquiring a cached page, the apparatus includes:
    拦截单元,客户端拦截用户发起的页面获取的请求报文;Interception unit, the client intercepts the request message of the page acquisition initiated by the user;
    写入单元,将所述用户的打标信息写入到所述请求报文的报文头中;所述打标信息包括分类字段以及字段值;A writing unit that writes the user's marking information into a header of the request message; the marking information includes a classification field and a field value;
    转发单元,将所述处理后的请求报文转发给缓存服务器;以使所述缓存服务器根据所述分类字段以及字段值,查询对应类别的页面内容;A forwarding unit, which forwards the processed request message to a cache server; so that the cache server queries the page content of the corresponding category according to the classification field and the field value;
    接收单元,接受所述缓存服务器返回的页面内容。The receiving unit accepts the page content returned by the cache server.
  13. 一种电子设备,包括:An electronic device includes:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory for storing processor-executable instructions;
    其中,所述处理器被配置为上述权利要求1-6中任一项所述的方法。Wherein, the processor is configured as the method according to any one of claims 1-6.
  14. 一种电子设备,包括:An electronic device includes:
    处理器;processor;
    用于存储处理器可执行指令的存储器;Memory for storing processor-executable instructions;
    其中,所述处理器被配置为上述权利要求7-10中任一项所述的方法。Wherein, the processor is configured as the method according to any one of claims 7-10.
PCT/CN2019/091521 2018-08-01 2019-06-17 Method and apparatus for classifying and acquiring cache pages, and electronic device WO2020024709A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810866690.7A CN109218395B (en) 2018-08-01 2018-08-01 Cache page classification and acquisition method and device and electronic equipment
CN201810866690.7 2018-08-01

Publications (1)

Publication Number Publication Date
WO2020024709A1 true WO2020024709A1 (en) 2020-02-06

Family

ID=64988433

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091521 WO2020024709A1 (en) 2018-08-01 2019-06-17 Method and apparatus for classifying and acquiring cache pages, and electronic device

Country Status (3)

Country Link
CN (1) CN109218395B (en)
TW (1) TWI743487B (en)
WO (1) WO2020024709A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938393A (en) * 2022-05-06 2022-08-23 中富通集团股份有限公司 Computer room data interaction method and system and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218395B (en) * 2018-08-01 2020-05-12 阿里巴巴集团控股有限公司 Cache page classification and acquisition method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1059598A2 (en) * 1999-06-11 2000-12-13 Solectron Corporation Web-based document exchange
US20070266113A1 (en) * 2006-05-12 2007-11-15 Chris Koopmans Method for cache object aggregation
CN106446055A (en) * 2016-08-31 2017-02-22 陶德龙 Webpage generation method and system
US20180124109A1 (en) * 2016-11-02 2018-05-03 RiskIQ, Inc. Techniques for classifying a web page based upon functions used to render the web page
CN108062311A (en) * 2016-11-07 2018-05-22 天脉聚源(北京)科技有限公司 A kind of method and system of access service device web data
CN109218395A (en) * 2018-08-01 2019-01-15 阿里巴巴集团控股有限公司 Cache classification, acquisition methods and the device and electronic equipment of the page

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509393B2 (en) * 2001-12-19 2009-03-24 International Business Machines Corporation Method and system for caching role-specific fragments
US7765196B2 (en) * 2003-06-23 2010-07-27 Dell Products L.P. Method and apparatus for web cache using database triggers
CN104077397A (en) * 2014-07-01 2014-10-01 成都康赛信息技术有限公司 Response method for distributed big data classification retrieval webpage
CN106464605B (en) * 2014-07-14 2019-11-29 华为技术有限公司 The method and relevant device of processing message applied to the network equipment
CN105991564A (en) * 2015-02-05 2016-10-05 阿里巴巴集团控股有限公司 Message processing method and device
CN105162722B (en) * 2015-08-17 2018-05-04 浪潮(北京)电子信息产业有限公司 A kind of message classification dispatching method and device
CN106534243B (en) * 2015-09-14 2020-02-18 阿里巴巴集团控股有限公司 Caching, requesting and responding method based on HTTP protocol and corresponding device
CN106888113B (en) * 2017-01-21 2019-10-29 国网浙江省电力公司绍兴供电公司 A kind of method and device for intelligent substation business configuration
CN107749898B (en) * 2017-08-24 2021-08-13 深圳市大讯永新科技有限公司 DNS access data classification and intranet access ratio improvement method and system
CN107483631B (en) * 2017-09-19 2020-04-07 山东大学 Method for controlling cache to realize mobile internet service access

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1059598A2 (en) * 1999-06-11 2000-12-13 Solectron Corporation Web-based document exchange
US20070266113A1 (en) * 2006-05-12 2007-11-15 Chris Koopmans Method for cache object aggregation
CN106446055A (en) * 2016-08-31 2017-02-22 陶德龙 Webpage generation method and system
US20180124109A1 (en) * 2016-11-02 2018-05-03 RiskIQ, Inc. Techniques for classifying a web page based upon functions used to render the web page
CN108062311A (en) * 2016-11-07 2018-05-22 天脉聚源(北京)科技有限公司 A kind of method and system of access service device web data
CN109218395A (en) * 2018-08-01 2019-01-15 阿里巴巴集团控股有限公司 Cache classification, acquisition methods and the device and electronic equipment of the page

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938393A (en) * 2022-05-06 2022-08-23 中富通集团股份有限公司 Computer room data interaction method and system and storage medium
CN114938393B (en) * 2022-05-06 2024-04-19 中富通集团股份有限公司 Computer room data interaction method and system and storage medium

Also Published As

Publication number Publication date
CN109218395A (en) 2019-01-15
TW202008187A (en) 2020-02-16
CN109218395B (en) 2020-05-12
TWI743487B (en) 2021-10-21

Similar Documents

Publication Publication Date Title
US9148332B2 (en) Content delivery network
US9703885B2 (en) Systems and methods for managing content variations in content delivery cache
WO2019165665A1 (en) Domain name resolution method, server and system
EP2266043B1 (en) Cache optimzation
US7809819B2 (en) Policy-based packet classification
EP3146698B1 (en) Method and system for acquiring web pages
US6587928B1 (en) Scheme for segregating cacheable and non-cacheable by port designation
US9900341B2 (en) Web redirection for caching
JP5974079B2 (en) Global traffic management using changed hostnames
KR100532337B1 (en) N-source in-kernel cache for high performance in computer operating systems
TWI663518B (en) Search cache update method and device
WO2021253889A1 (en) Load balancing method and apparatus, proxy device, cache device and serving node
JP2004303211A (en) System and method for invalidation of cached database result and derived object
WO2021007752A1 (en) Return-to-source method and related device in content delivery network
US10567540B2 (en) Cache key based request routing
WO2020024709A1 (en) Method and apparatus for classifying and acquiring cache pages, and electronic device
US8914542B1 (en) Content caching
US11843650B2 (en) Two-level cache architecture for live video streaming through hybrid ICN
US7636769B2 (en) Managing network response buffering behavior
CN110266799B (en) Method for realizing idempotency based on cache
US10122630B1 (en) Methods for network traffic presteering and devices thereof
Peng et al. Design and performance studies of an adaptive cache retrieval scheme in a mobile computing environment
US20180295094A1 (en) Reducing latency during domain name resolution in networks
CN113596194A (en) Method for DNS traffic classification calibration and DNS server
CN112468583A (en) Information processing method and terminal of API gateway

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19844832

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19844832

Country of ref document: EP

Kind code of ref document: A1