WO2018112685A1 - Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée - Google Patents

Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée Download PDF

Info

Publication number
WO2018112685A1
WO2018112685A1 PCT/CN2016/110693 CN2016110693W WO2018112685A1 WO 2018112685 A1 WO2018112685 A1 WO 2018112685A1 CN 2016110693 W CN2016110693 W CN 2016110693W WO 2018112685 A1 WO2018112685 A1 WO 2018112685A1
Authority
WO
WIPO (PCT)
Prior art keywords
transfer protocol
hypertext transfer
key value
protocol request
cache
Prior art date
Application number
PCT/CN2016/110693
Other languages
English (en)
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 深圳中兴力维技术有限公司
Priority to PCT/CN2016/110693 priority Critical patent/WO2018112685A1/fr
Publication of WO2018112685A1 publication Critical patent/WO2018112685A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a processing method, apparatus, and system for a high concurrent hypertext transfer protocol request.
  • the main purpose of the present invention is to provide a processing method, device and system for high-concurrency hypertext transfer protocol request, aiming at solving the high burden of servers and databases caused by high concurrent request sending, and slow loading and lowering of webpage data. User experience issues.
  • a first aspect of the embodiments of the present invention provides a processing method for a high concurrent hypertext transfer protocol request, where the method includes the following steps:
  • a second aspect of the embodiments of the present invention provides a processing apparatus for a high concurrent hypertext transfer protocol request, where the apparatus includes: a receiving module, a parsing module, a generating module, an encryption module, and a response module. ;
  • the receiving module is configured to receive a hypertext transfer protocol request
  • the parsing module is configured to parse a hypertext transfer protocol request parameter received by the receiving module
  • the generating module is configured to process, according to the hypertext transfer protocol request and the parsed hypertext transfer protocol request parameter, to generate a string sequence
  • the encryption module is configured to encrypt a string sequence generated by the generating module to generate a key value;
  • the response module is configured to encrypt, according to the key value generated by the encryption module, When the same key value is queried in the cache, the hypertext transfer protocol request data corresponding to the key value in the cache is used to respond to the hypertext transfer protocol request.
  • a third aspect of the embodiments of the present invention provides a processing system for a high concurrent hypertext transmission protocol request, where the system includes: a web browser and a web server;
  • the web browser is configured to send a hypertext transfer protocol request to the web server; and receive data requested by the hypertext transfer protocol responded by the web server;
  • the web server is configured to receive a hypertext transfer protocol request sent by the web browser; parse the received hypertext transfer protocol request parameter, and generate a parsed hypertext transfer protocol request parameter; according to the hypertext
  • the transport protocol request and the parsed hypertext transfer protocol request parameter are processed to generate a string sequence; the generated string sequence is encrypted to generate a key value; and according to the key value generated by the encryption, if the same is found in the cache
  • the key value is used to respond to the hypertext transfer protocol request with the hypertext transfer protocol request data corresponding to the key value in the cache.
  • the processing method, device and system for requesting a high concurrent hypertext transfer protocol provided by the embodiment of the present invention generate a key value according to a request of a hypertext transfer protocol, and generate a key value according to the key value.
  • the key value, the effective time of the key value, and the effective time of the key value are stored in the cache; when the next request is made, the corresponding page can be obtained directly from the cache, thereby eliminating a large number of servers and servers. Interaction between databases; Reduces server load when web pages are high concurrency, speeds up user access, and improves user experience.
  • FIG. 1 is a schematic flowchart of a processing method of a high concurrent hypertext transfer protocol request according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a processing apparatus for a high concurrent hypertext transfer protocol request according to an embodiment of the present invention
  • [0022] 3 is another schematic diagram of a structure of a processing device for a high concurrent hypertext transfer protocol request according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a processing system for requesting a high-concurrency hypertext transfer protocol according to an embodiment of the present invention
  • FIG. 5 is a structure of a correspondence between a key value failure period and a number of access times per second according to an embodiment of the present invention
  • a first embodiment of the present invention provides a processing method for a high concurrent hypertext transfer protocol request, the method comprising the steps of:
  • the web server can calculate the average number of page visits every 5 seconds. When the number of page visits reaches a preset value, for example, 100 times/second, it is considered that there is a high and the image is found. Qi Gao and Hair is off. After receiving high-level concurrent calls, you can receive high-concurrency Hypertext Transfer Protocol requests and process them.
  • the sorting process may be performed in alphabetical order, which ensures that the same request generates a unique string sequence.
  • the user name may be processed together with the hypertext transfer protocol request parameter as an intrinsic parameter to avoid page faults caused by different users and the same request parameter.
  • a key value may be generated by an irreversible encryption algorithm, such as a SHA-3 encryption algorithm, which is a unique key value.
  • the hypertext transfer protocol request data corresponding to the cached key value is used to respond to the hypertext transfer protocol request.
  • the same key value is queried in the cache, it indicates that there is a duplicate request in the valid time of the key value, so that the cache may be in the cache.
  • the hypertext transfer protocol request data corresponding to the key value is used to respond to the hypertext transfer protocol request.
  • the method may further include the step of: according to the key value generated by the encryption, if If the same key value is not queried in the cache, it responds to the Hypertext Transfer Protocol request and responds to the data requested by the Hypertext Transfer Protocol, the key value, the effective time of the key value, and the key value. Stored in the cache for subsequent Hypertext Transfer Protocol requests.
  • the data requested by the Hypertext Transfer Protocol can be referred to the following table:
  • the effective time of the key value may be a fixed value or may be dynamically set according to requirements.
  • the web server can detect the number of user visits, or the click rate, and dynamically generate the effective dice value of the key value according to the curve of the user access times. When the number of user visits is small, the high concurrency is not required. Text transmission protocol static caching mechanism; When the number of user accesses reaches 100 times/second, the effective time of the key value can be 4.6s as the preset minimum value, and the logarithmic curve rises as the number of user accesses increases.
  • the effective time of the key value reaches the preset maximum value and no longer grows, thus ensuring the validity and consistency of the data in order to cope with the high concurrent situation.
  • the relationship between the effective time of the key value and the number of accesses can be referred to FIG. 5, and is summarized as follows:
  • the method may further include: determining, according to the effective time of the key value and the valid time of the key value, whether the key value is invalid, if the key value has expired, The hypertext transfer protocol request data corresponding to the key value in the cache is cleared, and the clearing ensures the authenticity and validity of the user each request.
  • the processing method of the high concurrent hypertext transfer protocol request provided by the embodiment of the present invention generates a key value according to the hypertext transfer protocol request, after the parsing and encryption process, and reads the hypertext transfer protocol from the cache according to the key value.
  • the request data is used to respond to the hypertext transfer protocol request; if the same key value is not queried in the cache, the hypertext transfer protocol request is responded to and the data, key value, and key value requested by the hypertext transfer protocol are responded to.
  • the effective time of the key period and the key value are stored in the cache; when the next request is made, the corresponding page can be obtained directly from the cache, thereby eliminating a large number of interactions between servers and between the server and the database; Reduce the burden on the server in the case of high page concurrency, speed up user access, and enhance the user experience.
  • the invention further provides an apparatus.
  • FIG. 2 is a processing apparatus for a high concurrent hypertext transfer protocol request according to a second embodiment of the present invention.
  • the device includes: a receiving module 20, a parsing module 21, a generating module 22, and an encryption module 23. And response module 24.
  • the receiving module 20 is configured to receive a hypertext transfer protocol request.
  • the apparatus may further include an activation module 26.
  • the ⁇ ⁇ module 26 is used for ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ .
  • the web server can calculate the average number of page visits every 5 seconds. When the number of page visits reaches a preset value, for example, 100 times/second, it is considered that there is a high and the image is found.
  • the ⁇ ⁇ module 26 ⁇ ⁇ ⁇ concurrently ⁇ . After the high-key concurrently, the receiving module 20 can receive and process the high-concurrency hypertext transfer protocol request.
  • the parsing module 21 is configured to parse the hypertext transfer protocol request parameters received by the receiving module 20 to generate parsed hypertext transfer protocol request parameters.
  • the generating module 22 is configured to process the hypertext transfer protocol request and the parsed hypertext transfer protocol request parameter to generate a string sequence.
  • the generating module 22 may perform the sorting processing according to the hypertext transfer protocol request and the parsed hypertext transfer protocol request parameter in alphabetical order, and the processing manner ensures that the same request generates a unique string. sequence.
  • the user name may be processed together with the hypertext transfer protocol request parameter as an intrinsic parameter to avoid different users and the same request parameter.
  • the resulting page fault may be processed together with the hypertext transfer protocol request parameter as an intrinsic parameter to avoid different users and the same request parameter.
  • the encryption module 23 is configured to encrypt the string sequence generated by the generating module 22 to generate a key value.
  • the encryption module 23 may generate a key value by an irreversible encryption algorithm, such as a SHA-3 encryption algorithm, and the key value is a unique key value.
  • an irreversible encryption algorithm such as a SHA-3 encryption algorithm
  • the response module 24 is configured to encrypt the generated key value according to the encryption module 23, and if the same key value is queried in the cache, the hypertext transfer protocol request data corresponding to the key value in the cache is used for Respond to a hypertext transfer protocol request.
  • the response module 24 may, according to the key value generated by the encryption, if the same key value is queried in the cache, indicating that the valid request of the key value exists in a duplicate request.
  • the hypertext transfer protocol request data corresponding to the key value in the cache may be used to respond to the hypertext transfer protocol request.
  • the response module 24 is further configured to encrypt the generated key value according to the encryption module 23, and if the same key value is not queried in the cache, respond to the hypertext transfer protocol. Requesting, and storing the data requested in response to the Hypertext Transfer Protocol, the key value, the effective time of the key value, and the valid time of the key value in the cache for subsequent Hypertext Transfer Protocol requests.
  • the data requested by the Hypertext Transfer Protocol can be found in the following table:
  • the effective time of the key value may be a fixed value, or may be dynamically updated according to requirements. Settings.
  • the web server can detect the number of user visits, or the click rate, and dynamically generate the effective dice value of the key value according to the curve of the user access times. When the number of user visits is small, the high concurrency is not required. Text transmission protocol static caching mechanism; When the number of user accesses reaches 100 times/second, the effective time of the key value can be 4.6s as the preset minimum value, and the logarithmic curve rises as the number of user accesses increases.
  • the effective time of the key value reaches the preset maximum value and no longer grows, thus ensuring the validity and consistency of the data in order to cope with the high concurrent situation.
  • the relationship between the effective time of the key value and the number of accesses can be referred to FIG. 5, and is summarized as follows:
  • the device may further include a clearing module 25, and the clearing module 25 is configured to determine whether the key value is invalid according to the effective time of the key value and the valid time of the key value. If the key value has expired, the hypertext transfer protocol request data corresponding to the key value in the cache is cleared, and the clearing ensures the authenticity and validity of the user each request.
  • the processing device of the high concurrent hypertext transfer protocol request provided by the embodiment of the present invention generates a key value after parsing and encrypting according to the hypertext transfer protocol request, and reads the hypertext transfer protocol from the cache according to the key value.
  • the request data is used to respond to the hypertext transfer protocol request; if the same key value is not queried in the cache, the hypertext transfer protocol request is responded to and the data, key value, and key value requested by the hypertext transfer protocol are responded to.
  • the effective time of the key period and the key value are stored in the cache; when the next request is made, the corresponding page can be obtained directly from the cache, thereby eliminating a large number of interactions between servers and between the server and the database; Reduce the burden on the server in the case of high page concurrency, speed up user access, and enhance the user experience.
  • the invention further provides a system.
  • the system includes: a web browser 30 and a web server 31; [0070] a web browser 30, configured to send a hypertext transfer protocol request to the web server 31; receive data requested by the hypertext transfer protocol responded by the web server 31;
  • a web server 31 configured to receive a hypertext transfer protocol request sent by the web browser 30; parse the received hypertext transfer protocol request parameter, and generate a parsed hypertext transfer protocol request parameter; according to the hypertext transfer protocol
  • the request and the parsed hypertext transfer protocol request parameters are processed to generate a string sequence; the generated string sequence is encrypted to generate a key value; and according to the key value generated by the encryption, if the same secret is queried in the cache
  • the key value is used to respond to the hypertext transfer protocol request with the hypertext transfer protocol request data corresponding to the key value in the cache.
  • the web server 31 is further configured to respond to the hypertext transfer protocol request and exceed the response according to the key value generated by the encryption if the same key value is not queried in the cache.
  • the data requested by the text transfer protocol, the key value, the effective time of the key value, and the valid time of the key value are stored in the cache.
  • the web server 31 is further configured to determine whether the key value is invalid according to the effective time of the key value and the valid time of the key value, and if the key value has expired, the cache is in the cache.
  • the hypertext transfer protocol corresponding to the key value requests data clearing.
  • the web server 31 is configured to perform sorting processing in alphabetical order according to the hypertext transfer protocol request and the parsed hypertext transfer protocol request parameter.
  • the web server 31 is also used to perform high-level concurrent signaling.
  • the processing system for the high concurrent hypertext transfer protocol request provided by the embodiment of the present invention generates a key value according to the hypertext transfer protocol request, and generates a key value according to the key value, and reads the hypertext transfer protocol from the cache according to the key value.
  • the request data is used to respond to the hypertext transfer protocol request; if the same key value is not queried in the cache, the hypertext transfer protocol request is responded to and the data, key value, and key value requested by the hypertext transfer protocol are responded to.
  • the effective time of the key period and the key value are stored in the cache; when the next request is made, the corresponding page can be obtained directly from the cache, thereby eliminating a large number of interactions between servers and between the server and the database; Reduce the burden on the server in the case of high page concurrency, speed up user access, and enhance the user experience.
  • the processing method, device and system for requesting a high concurrent hypertext transfer protocol provided by an embodiment of the present invention generate a key value according to a hypertext transfer protocol request, and generate a key value according to the key value, and read from the cache according to the key value.
  • the hypertext transfer protocol request data is used to respond to the hypertext transfer protocol request; if the same key value is not queried in the cache, the hypertext transfer protocol request is responded to and the data and key value requested by the hypertext transfer protocol are responded to.
  • the effective time of the key value and the effective time of the key value are stored in the cache; when the next request is made, the corresponding page can be obtained directly from the cache, thereby eliminating a large number of servers and between the server and the database.
  • the interaction achieves a reduction in server load in the case of high web page concurrency, speeds up user access, and improves user experience. It has industrial applicability.

Landscapes

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

Abstract

L'invention concerne un procédé, un dispositif et un système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée. Le procédé consiste à : recevoir une demande de protocole de transfert hypertexte ; analyser un paramètre de la demande de protocole de transfert hypertexte reçue de façon à générer un paramètre de demande de protocole de transfert hypertexte analysé ; en fonction de la demande de protocole de transfert hypertexte et du paramètre de demande de protocole de transfert hypertexte analysé, effectuer un traitement de façon à générer une séquence de chaînes de caractères ; chiffrer la séquence de chaînes de caractères générée de façon à générer une valeur de clé ; et en fonction de la valeur de clé générée par chiffrement, si la même valeur de clé est interrogée dans une mémoire cache, utiliser des données de demande de protocole de transfert hypertexte correspondant à la valeur de clé dans la mémoire cache pour répondre à la demande de protocole de transfert hypertexte. Dans les modes de réalisation divulgués dans la présente invention, une grande quantité d'interactions entre serveurs et entre les serveurs et une base de données peut être omise ; et dans le cas d'une simultanéité élevée de pages Web, la charge du serveur est réduite, et une vitesse d'accès utilisateur est accélérée, ce qui permet d'améliorer l'expérience utilisateur.
PCT/CN2016/110693 2016-12-19 2016-12-19 Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée WO2018112685A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/110693 WO2018112685A1 (fr) 2016-12-19 2016-12-19 Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/110693 WO2018112685A1 (fr) 2016-12-19 2016-12-19 Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée

Publications (1)

Publication Number Publication Date
WO2018112685A1 true WO2018112685A1 (fr) 2018-06-28

Family

ID=62624186

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110693 WO2018112685A1 (fr) 2016-12-19 2016-12-19 Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée

Country Status (1)

Country Link
WO (1) WO2018112685A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522836A (zh) * 2020-04-22 2020-08-11 杭州海康威视系统技术有限公司 一种数据查询方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100281178A1 (en) * 2009-04-29 2010-11-04 Terence Sean Sullivan Network Audio Distribution System and Method
US20130007164A1 (en) * 2005-09-27 2013-01-03 Research In Motion Limited Email server with proxy caching of unique identifiers
CN102984223A (zh) * 2012-11-14 2013-03-20 华为技术有限公司 一种消息发送方法、网络设备及系统
CN105187389A (zh) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 一种基于数字混淆加密的网页访问方法及系统
CN105302801A (zh) * 2014-05-27 2016-02-03 腾讯科技(深圳)有限公司 一种资源缓存方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130007164A1 (en) * 2005-09-27 2013-01-03 Research In Motion Limited Email server with proxy caching of unique identifiers
US20100281178A1 (en) * 2009-04-29 2010-11-04 Terence Sean Sullivan Network Audio Distribution System and Method
CN102984223A (zh) * 2012-11-14 2013-03-20 华为技术有限公司 一种消息发送方法、网络设备及系统
CN105302801A (zh) * 2014-05-27 2016-02-03 腾讯科技(深圳)有限公司 一种资源缓存方法及装置
CN105187389A (zh) * 2015-08-07 2015-12-23 北京思特奇信息技术股份有限公司 一种基于数字混淆加密的网页访问方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522836A (zh) * 2020-04-22 2020-08-11 杭州海康威视系统技术有限公司 一种数据查询方法、装置、电子设备及存储介质
CN111522836B (zh) * 2020-04-22 2023-10-10 杭州海康威视系统技术有限公司 一种数据查询方法、装置、电子设备及存储介质

Similar Documents

Publication Publication Date Title
US20220006878A1 (en) Method and apparatus for reducing loading time of web pages
US10225255B1 (en) Count-based challenge-response credential pairs for client/server request validation
US8806029B2 (en) Session-cache-based HTTP acceleration
US7765275B2 (en) Caching of private data for a configurable time period
US8959336B1 (en) Securing locally stored web-based database data
US8589484B2 (en) Method for optimizing a web content proxy server and devices thereof
US11126749B2 (en) Apparatus and method for securing web application server source code
US8302169B1 (en) Privacy enhancements for server-side cookies
JP2005512247A (ja) ネットワークユーザ認証システムおよび方法
WO2012034518A1 (fr) Procédé et système de production de message incluant une adresse universelle
WO2008045756A1 (fr) Stockage local de données d'une base de données web
US9473592B2 (en) Methods for optimizing a web content proxy server and devices thereof
JP5347429B2 (ja) ユニフォームリソースロケータ書換方法及び装置
WO2015196442A1 (fr) Dispositif et procédé d'optimisation de page web
US7539776B1 (en) Dynamic uniform resource locator compression
EP2787454A1 (fr) Procédé d'optimisation d'un serveur proxy à contenu Web et dispositifs associés
US11075922B2 (en) Decentralized method of tracking user login status
WO2017020597A1 (fr) Procédé et appareil pour mémoire cache de ressources
US8032923B1 (en) Cache techniques for URL rating
WO2018112685A1 (fr) Procédé, dispositif et système de traitement d'une demande de protocole de transfert hypertexte à simultanéité élevée
JP2007219619A (ja) 情報管理プログラムおよび装置並びに方法
CN107343028B (zh) 一种基于http协议的通信方法及系统
KR101490516B1 (ko) 객체 및 속성 정보를 이용한 컨텐츠 제공 방법 및 이를 이용한 http 프록시 서버
US7904574B1 (en) Managing locally stored web-based database data
US20210357465A1 (en) Method and System for High Speed Serving of Webpages

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: 16924249

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: 16924249

Country of ref document: EP

Kind code of ref document: A1