CN106789615A - A kind of raising web processes the method for concurrent request and uses its service station - Google Patents

A kind of raising web processes the method for concurrent request and uses its service station Download PDF

Info

Publication number
CN106789615A
CN106789615A CN201710064471.2A CN201710064471A CN106789615A CN 106789615 A CN106789615 A CN 106789615A CN 201710064471 A CN201710064471 A CN 201710064471A CN 106789615 A CN106789615 A CN 106789615A
Authority
CN
China
Prior art keywords
gateway
service server
request
service
cache pool
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710064471.2A
Other languages
Chinese (zh)
Inventor
闻祖东
郝杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Excellent Technology Co Ltd
Original Assignee
Chongqing Excellent Technology Co Ltd
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 Chongqing Excellent Technology Co Ltd filed Critical Chongqing Excellent Technology Co Ltd
Priority to CN201710064471.2A priority Critical patent/CN106789615A/en
Publication of CN106789615A publication Critical patent/CN106789615A/en
Pending legal-status Critical Current

Links

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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

Abstract

The invention provides a kind of method that raising web processes concurrent request, including:Step one, gateway obtain the concurrent request serial data that client sends;Concurrent request serial data is separated individually request and randomly distributed by step 2, gateway;Step 3, each service server are carried out according to following:A, service server inquire public cache pool, judge whether public cache pool has the corresponding demand data of this feature value, if so, then performing B;If nothing, step C is performed;B, service server call demand data corresponding with this feature value from public cache pool and the demand data are returned into gateway;C, service server obtain demand data according to this feature value from underlying database.Beneficial effects of the present invention:Service station when there are up to ten thousand requests to be simultaneously emitted by 1 second has been avoided to occur when machine phenomenon.

Description

A kind of raising web processes the method for concurrent request and uses its service station
Technical field
The present invention relates to communication technical field, and in particular to a kind of raising web processes the method for concurrent request and uses it Service station.
Background technology
In the prior art, client sends concurrent request (number of requests sent in 1 second can send in general 1 second Up to ten thousand requests) after;Then, gateway receives concurrent request, and be randomly assigned to a certain service server for request by gateway;Again Afterwards, each server is processed one by one according to the solicited message of information group, directly in respective internal layer underlying database root during treatment Obtained according to solicited message and pass information back, then call the information of passing back to return to each server upper strata from underlying database;Most Afterwards, server upper strata sends and passes information back to gateway, and gateway passes client back.The shortcoming of the processing method is:Due in bottom Database root is calculated that the information amount of calculation of passing back is larger in itself according to solicited message, and the solicited message sent in the unit interval Excessively, easily occur working as machine phenomenon, cause normal request to respond, reduce the use interest of user.
The content of the invention
For the deficiency in the presence of prior art, the invention provides a kind of method that raising web processes concurrent request And use its service station, it is to avoid there is in 1 second service station when there are up to ten thousand requests to be simultaneously emitted by occur when machine phenomenon.
To achieve the above object, present invention employs following technical scheme:
A kind of method that raising web processes concurrent request, including:
Step one, gateway obtain the concurrent request serial data that client sends;
Step 2, the interface service of each service server randomly receive the concurrent request serial data from gateway, incite somebody to action Individually request is separated in concurrent request serial data and individually asks to find corresponding characteristic value for each;
Step 3, each service server are processed according to each characteristic value asked successively, and specific processing mode is equal Carry out according to the following steps:
A, service server inquire public cache pool, judge whether public cache pool has the corresponding demand number of this feature value According to if so, then performing B;If nothing, step C is performed;
B, service server call demand data corresponding with this feature value and by the demand data from public cache pool Interface service is returned to, step E is then performed;
C, service server inquire underlying database according to this feature value, to obtain the corresponding demand data of this feature value;
The demand data obtained from underlying database is returned to interface service by D, service server, while business service This pair of characteristic value and the demand data are buffered into public cache pool by device;
The demand data is returned to client by E, the interface service of service server by gateway.
The present invention also provides a kind of service station of the method that concurrent request is processed using above-mentioned raising web, including:
Network reception device, is provided with gateway in it, gateway is used to receive the concurrent request data for obtaining client transmission String;
Several servers, Servers-all is connected with gateway, and each server includes interface service, interface service For receive the concurrent request serial data from gateway, will be separated in concurrent request serial data individually request, be each list Only request finds corresponding characteristic value and each corresponding demand data of request is returned into client, Suo Youye by gateway Being shared between business server has public cache pool, and public cache pool is used to cache the characteristic value and this feature value correspondence of nearest treatment Demand data, also shared between Servers-all and be formed with underlying database, underlying database is used to store initial data.
Compared to prior art, the present invention has the advantages that:
Public cache pool, the solicited message that realization will have been processed in recent times are set up by each server front end And its it is corresponding pass information cache back, pass letter back with directly invoke when same request content is received that public cache pool caches Breath, makes full use of the memory space of server, is service server and underlying database decompression, it is to avoid because concurrent request is excessive Service server and underlying database is caused to work as machine;Public cache pool is set up simultaneously so that the spy of each server lookup in the recent period Shared between value indicative and demand information, it is to avoid having there is server that same request content has been processed in recent times, and The task again of server is caused, treatment effeciency is further improved, is further server decompression, and then reach and avoided 1 Service station occurs when machine phenomenon when having up to ten thousand requests to be simultaneously emitted by second, it is ensured that each request can be responded, and be improved The use interest of user.
Brief description of the drawings
Fig. 1 is the flow chart of the method for improving web treatment concurrent requests;
Fig. 2 is the block diagram in the service station using the method for improving web treatment concurrent requests.
Specific embodiment
As shown in figure 1, the present embodiment proposes a kind of method that raising web processes concurrent request first, including:
Step one, gateway obtain the concurrent request serial data that client sends;
Step 2, the interface service of each service server randomly receive the concurrent request serial data from gateway, incite somebody to action Individually request is separated in concurrent request serial data and individually asks to find corresponding characteristic value for each;
Step 3, each service server are processed according to each characteristic value asked successively, and specific processing mode is equal Carry out according to the following steps:
A, service server inquire public cache pool, judge whether public cache pool has the corresponding demand number of this feature value According to if so, then performing B;If nothing, step C is performed;
B, service server call demand data corresponding with this feature value and by the demand data from public cache pool Interface service is returned to, step E is then performed;
C, service server inquire underlying database according to this feature value, to obtain the corresponding demand data of this feature value;
The demand data obtained from underlying database is returned to interface service by D, service server, while business service This pair of characteristic value and the demand data are buffered into public cache pool by device;
The demand data is returned to client by E, the interface service of service server by gateway.
The present embodiment also provides a kind of service station of the method that concurrent request is processed using above-mentioned raising web, including:
Network reception device, is provided with gateway in it, gateway is used to receive the concurrent request data for obtaining client transmission String;
Several servers, Servers-all is connected with gateway, and each server includes interface service, interface service For receive the concurrent request serial data from gateway, will be separated in concurrent request serial data individually request, be each list Only request finds corresponding characteristic value and each corresponding demand data of request is returned into client, Suo Youye by gateway Being shared between business server has public cache pool, and public cache pool is used to cache the characteristic value and this feature value correspondence of nearest treatment Demand data, also shared between Servers-all and be formed with underlying database, underlying database is used to store initial data.
It is exemplified below, if gateway sends A solicited messages after shunting information to server 1, first, business clothes Business device 1 receives A requests;Then, service server 1 asks (link) to find its corresponding T characteristic value according to A;After again, business Whether server 1 is searched in public cache pool, to judge had the corresponding demand of the T characteristic values to believe in public cache pool Breath, corresponding demand information of T characteristic values in public cache pool being called with diameter if having, now just without arriving bottom again Demand information is looked in database, because the information of bottom data library storage is more, service server 1 looks for needing to take , easily there is the problem when machine, if demand information not corresponding with the T characteristic values in public cache pool in substantial amounts of computing resource Group needs to be found in the underlying database for enter into bottom, and subsequent service server 1 is sought according to T characteristic values in underlying database Demand information is looked for, and obtains demand information, after obtaining demand information, the demand information that service server 1 will be obtained returns to net Close, gateway returns to client, the response to asking is realized, while service server 1 is same by this pair of T characteristic value and demand information When be cached in public cache pool, with when having in the short time for by the request of T characteristic values directly from public cache pool Call, public cache pool is every the information that caching in it can be automatically removed after one section of scheduled time.Because gateway is will to appoint at random One request is sent into service server, therefore is very likely had correspondence in the short time between different business server The request of joint demand, but privately owned cache pool is shared into public cache pool and is just avoided that this defect, example is in the following example:Upper Stating A asks corresponding T characteristic values and demand information to be cached in public cache pool in the short time, and be distributed to for B requests by gateway In service server 2, according to B requests, find is also T characteristic values to service server 2, if at this moment privately owned cache pool is not altogether Enjoy, then service server 2 still can be looked for and calculated in underlying database, be calculated which results in service server 2 The waste of resource, increases the operating pressure of service server 2, and has been shared between privately owned cache pool in the present embodiment public Whether cache pool, service server 2 equally judges have the corresponding demand data of T characteristic values in public cache pool, due at it It is preceding to have had service server 1 by this pair of T characteristic value and demand information while being cached in public cache pool, so when business clothes Business device 1 returns to gateway after directly being called from public cache pool, realizes the response of B requests, and then greatly reduces business service Device accesses the consumption of the computing resource of underlying database.
Finally illustrate, the above embodiments are merely illustrative of the technical solutions of the present invention and it is unrestricted, although with reference to compared with Good embodiment has been described in detail to the present invention, it will be understood by those within the art that, can be to skill of the invention Art scheme is modified or equivalent, and without deviating from the objective and scope of technical solution of the present invention, it all should cover at this In the middle of the right of invention.

Claims (2)

1. a kind of method that raising web processes concurrent request, it is characterised in that including:
Step one, gateway obtain the concurrent request serial data that client sends;
Step 2, the interface service of each service server randomly receive the concurrent request serial data from gateway, incite somebody to action concurrent Individually request is separated in request data string and individually asks to find corresponding characteristic value for each;
Step 3, each service server are processed according to each characteristic value asked successively, specific processing mode press with Lower step is carried out:
A, service server inquire public cache pool, judge whether public cache pool has the corresponding demand data of this feature value, If so, then performing B;If nothing, step C is performed;
B, service server call demand data corresponding with this feature value from public cache pool and return to the demand data To interface service, step E is then performed;
C, service server inquire underlying database according to this feature value, to obtain the corresponding demand data of this feature value;
The demand data obtained from underlying database is returned to interface service by D, service server, while service server will This pair of characteristic value and the demand data buffer into public cache pool;
The demand data is returned to client by E, the interface service of service server by gateway.
It is 2. a kind of to improve the service station that web processes the method for concurrent request using as claimed in claim 1, it is characterised in that Including:
Network reception device, is provided with gateway in it, gateway is used to receive the concurrent request serial data for obtaining client transmission;
Several servers, Servers-all is connected with gateway, and each server includes interface service, and interface service is used for Receive the concurrent request serial data from gateway, will be separated in concurrent request serial data individually request, for each is single Request finds corresponding characteristic value and each corresponding demand data of request is returned into client, all business clothes by gateway Being shared between business device has public cache pool, and public cache pool is used to cache the characteristic value and the corresponding need of this feature value of nearest treatment Data are sought, also shares being formed with underlying database between Servers-all, underlying database is used to store initial data.
CN201710064471.2A 2017-02-04 2017-02-04 A kind of raising web processes the method for concurrent request and uses its service station Pending CN106789615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710064471.2A CN106789615A (en) 2017-02-04 2017-02-04 A kind of raising web processes the method for concurrent request and uses its service station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710064471.2A CN106789615A (en) 2017-02-04 2017-02-04 A kind of raising web processes the method for concurrent request and uses its service station

Publications (1)

Publication Number Publication Date
CN106789615A true CN106789615A (en) 2017-05-31

Family

ID=58955121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710064471.2A Pending CN106789615A (en) 2017-02-04 2017-02-04 A kind of raising web processes the method for concurrent request and uses its service station

Country Status (1)

Country Link
CN (1) CN106789615A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465743A (en) * 2017-08-03 2017-12-12 郑州云海信息技术有限公司 A kind of method and apparatus for handling request

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1576783A2 (en) * 2002-12-19 2005-09-21 Sonic Mobility Inc. Proxy method and system for secure wireless administration of managed entities
CN102088398A (en) * 2009-12-08 2011-06-08 华为技术有限公司 World wide web (WEB) concurrent event processing method and device
CN102291324A (en) * 2011-06-28 2011-12-21 北京神州泰岳软件股份有限公司 Highly concurrent service request processing method
CN102387206A (en) * 2011-10-20 2012-03-21 镇江睿泰信息科技有限公司 Synthesis method and system of concurrent request of Web service
CN103246696A (en) * 2013-03-21 2013-08-14 宁波公众信息产业有限公司 High-concurrency database access method and method applied to multi-server system
CN103473848A (en) * 2013-09-27 2013-12-25 浪潮齐鲁软件产业有限公司 Network invoice checking frame and method based on high concurrency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1576783A2 (en) * 2002-12-19 2005-09-21 Sonic Mobility Inc. Proxy method and system for secure wireless administration of managed entities
CN102088398A (en) * 2009-12-08 2011-06-08 华为技术有限公司 World wide web (WEB) concurrent event processing method and device
CN102291324A (en) * 2011-06-28 2011-12-21 北京神州泰岳软件股份有限公司 Highly concurrent service request processing method
CN102387206A (en) * 2011-10-20 2012-03-21 镇江睿泰信息科技有限公司 Synthesis method and system of concurrent request of Web service
CN103246696A (en) * 2013-03-21 2013-08-14 宁波公众信息产业有限公司 High-concurrency database access method and method applied to multi-server system
CN103473848A (en) * 2013-09-27 2013-12-25 浪潮齐鲁软件产业有限公司 Network invoice checking frame and method based on high concurrency

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465743A (en) * 2017-08-03 2017-12-12 郑州云海信息技术有限公司 A kind of method and apparatus for handling request
CN107465743B (en) * 2017-08-03 2020-10-16 苏州浪潮智能科技有限公司 Method and device for processing request

Similar Documents

Publication Publication Date Title
CN103812849B (en) A kind of local cache update method, system, client and server
US11122067B2 (en) Methods for detecting and mitigating malicious network behavior and devices thereof
CN108499100B (en) Cloud game error recovery method and system based on edge calculation
GB2413868A (en) Communicating between a server and browsing clients
CN106599239A (en) Webpage content data acquisition method and server
CN101605108A (en) A kind of method, system and device of instant messaging
TW201419809A (en) Remote management system with adaptive session management mechanism
CN109085999A (en) data processing method and processing system
CN101848137A (en) Load balancing method and system applied to three-layer network
CN106066877A (en) A kind of method and system of asynchronous refresh data
CN105208058A (en) Information exchange system based on web session sharing
CN110855424B (en) Method and device for synthesizing asymmetric flow xDR in DPI field
CN106921721A (en) A kind of server, conversation managing method and system
CN105592134B (en) A kind of method and apparatus of load balancing
WO2022111169A1 (en) User identity identification method, computing device and computer storage medium
CN107835095A (en) A kind of processing method and processing device of daily record
CN112543150B (en) Dynamic load balancing method based on server control
CN105939405A (en) DHCP service processing method and device
CN107911499A (en) Multi-line domain name analytic method and device
CN105893429A (en) Method and system for optimizing WEB cache
CN106789615A (en) A kind of raising web processes the method for concurrent request and uses its service station
CN109586937B (en) Operation and maintenance method, equipment and storage medium of cache system
CN105681266B (en) A kind of communication cluster method and device of mediaphone MMTel
CN113938464A (en) Access request method and terminal
CN104077381B (en) Web access requests processing method and distribution method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531