CN104767772A - Method and device for processing request information - Google Patents

Method and device for processing request information Download PDF

Info

Publication number
CN104767772A
CN104767772A CN201410003426.2A CN201410003426A CN104767772A CN 104767772 A CN104767772 A CN 104767772A CN 201410003426 A CN201410003426 A CN 201410003426A CN 104767772 A CN104767772 A CN 104767772A
Authority
CN
China
Prior art keywords
operation system
request information
solicited message
service
service system
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.)
Granted
Application number
CN201410003426.2A
Other languages
Chinese (zh)
Other versions
CN104767772B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410003426.2A priority Critical patent/CN104767772B/en
Publication of CN104767772A publication Critical patent/CN104767772A/en
Application granted granted Critical
Publication of CN104767772B publication Critical patent/CN104767772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for processing request information, relating to the field of internet information technology. The method and device can solve the problem of flooding of a service system, save hardware cost and improve resource use ratio. According to an embodiment, the request information from a service requester is received; the request information is sent to a first business system in the service system, wherein the first business system is any one business system in the service system; when reject information from the first business system is received, the request information is sequentially sent to all the other business systems except the first business system in the service system until the business system which is to process the request information is determined. The embodiment of the invention is applicable to processing of the request information.

Description

A kind of method and device processing solicited message
Technical field
The present invention relates to technical field of Internet information, particularly relate to a kind of method and the device that process solicited message.
Background technology
At present, in Internet service, each service system has oneself maximum service throughput.When the quantity of solicited message exceedes the maximum throughput of service, service system can be caused unstable, even occur the situation of the unavailable or service system collapse of service system.Changeable and fast-developing due to Internet service, and business demand increases gradually, occurs that request amount inundation situation can be more and more frequent.
In prior art, deal with Internet service system inundation situation by carrying out machine dilatation to service system, namely by the more solicited message of jumbo service system process.
But when adopting prior art process service system inundation situation, cause hardware to be wasted, resource utilization is low.
Summary of the invention
Embodiments of the invention provide a kind of method and the device that process solicited message, can solve service system inundation situation, and save hardware cost, improve resource utilization.
First aspect, the invention provides a kind of method processing solicited message, comprising:
Receive the solicited message that service requester sends;
Described request information is sent to the first operation system in service system, described first operation system is any one operation system in described service system;
When receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
Second aspect, the invention provides a kind of device processing solicited message, comprising:
Receiving element, for receiving the solicited message that service requester sends;
Transmitting element, for described request information is sent to the first operation system in service system, described first operation system is any one operation system in described service system;
Described transmitting element, also for when receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
The embodiment of the present invention provides a kind of method and the device that process solicited message, and by the solicited message received is sent to the first operation system in service system, described first operation system is any one operation system in described service system; When receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information.With when processing service system inundation situation in prior art, hardware is caused to be wasted, resource utilization is low to be compared, the embodiment of the present invention carries out transfer buffer memory by proxy server to solicited message, and pass through the load feedback dynamic distribution solicited message of service system, thus service system inundation situation can be solved, and save hardware cost, improve resource utilization.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of flow chart processing the method for solicited message that Fig. 1 provides for the embodiment of the present invention;
The flow chart of the method for the another kind process solicited message that Fig. 2 provides for the embodiment of the present invention;
A kind of schematic diagram processing the system of solicited message that Fig. 3 provides for the embodiment of the present invention;
A kind of block diagram processing the device of solicited message that Fig. 4 provides for the embodiment of the present invention;
The block diagram of the device of the another kind process solicited message that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method processing solicited message, and the executive agent of the method can be proxy server, and as shown in Figure 1, the method comprises:.
Step 101, receives the solicited message that service requester sends.
Optionally, in the present embodiment, when the solicited message receiving service requester transmission is 1, then can directly process this solicited message, service system is sent in real time, when the solicited message receiving service requester transmission is at least two, then by advanced for this solicited message row cache by this solicited message, to avoid instantaneous a large amount of solicited message to the impact of service system, thus stability and the availability of service system can be improved.
Step 102, sends to the first operation system in service system by described request information, described first operation system is any one operation system in described service system.
Optionally, service system comprises multiple operation system, and each operation system can process solicited message individually.
Step 103, when receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
When the first operation system receives the solicited message of proxy server transmission, check the load of self, when the load of self exceeds default load, when namely load is higher, then refuse the information that accepts request, when the load of self does not exceed default load, then can accept request information, and process solicited message, there will not be an operation system load high like this, another operation system without the accessible situation of task, thus can improve the resource utilization of service system.
Optionally, when proxy server receives the refuse information of the first operation system transmission, other operation systems then in Polling system, until determine an operation system that can process solicited message, thus can make each operation system load balancing in service system.Make service system stability higher.
The embodiment of the present invention provides a kind of method processing solicited message, by sending to each operation system in service system successively to the solicited message received, until the operation system processing this solicited message can be determined, reach the object of inundation peak clipping, make it possible to solve service system inundation situation, and save hardware cost, improve resource utilization.
The embodiment of the present invention provides the method for another kind of process solicited message, and as shown in Figure 2, the method comprises:
Step 201, service request direction proxy server transmission request information.
Optionally, in prior art, solicited message is directly sent to service system by service requester, when solicited message quantity is larger, service system then can be caused unstable, even there is the situations such as the unavailable or service system snowslide of service system, solicited message is sent to proxy server by the present embodiment service requester, thus when solicited message quantity is larger, solicited message can be carried out and carry out transfer storage, and then processed by service system, make it possible to the object reaching inundation peak clipping, when making service system process solicited message, stability is higher.
Inundation refers to service system within a short period of time, and the solicited message received is greater than system nominal load requests amount.When peak clipping refers to service system process inundation state, in nominal load situation, still can each solicited message of normal process.
Step 202, proxy server receives the solicited message that service requester sends.
Step 203, solicited message is carried out buffer memory by proxy server.
Optionally, when the quantity of solicited message is at least two, described request information is carried out buffer memory.Optionally, solicited message is buffered in internal memory.
When the quantity of solicited message is 1, then can not carries out buffer memory to solicited message, directly send to service system to process this solicited message.
Step 204, solicited message is distributed to the first operation system in described service system by proxy server at random.
Optionally, the first operation system can be any one operation system in service system.
Schematic diagram as shown in Figure 3, the first operation system can be operation system 1 in service system, or the first operation system can be the operation system 2 in service system, or the first operation system can be other operation systems in service system.Such as, the solicited message received can be sent to operation system 1 by proxy server, or the solicited message be buffered in internal memory is sent to operation system 1 by proxy server.
Step 205, the first operation system receives the solicited message that proxy server sends, and judges whether own load is less than default load.
First operation system is after receiving solicited message, first judge whether to process this solicited message, when own load is less than default load, then can process this solicited message, when own load is more than or equal to default load, then the load of the first operation system is higher, then can refuse to accept this solicited message, in order to avoid cause the first operation system process solicited message too much, cause the first operation system unstable, or occur the situation of the first operation system collapse.
Optionally, load can think the task that the first operation system is processing.Default load can for the load rule of thumb arranged.
Step 206, when own load is greater than or equal to default load, then sends refuse information to proxy server.
Described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
Step 207, when own load is less than default load, then processes said request information, and result is sent to proxy server.
Step 208, proxy server receives the refuse information that the first operation system sends, and solicited message is sent the operation system except described first operation system sent to successively in described service system, until determine the operation system of processes said request information.
Optionally, when the load of the first operation system is higher, then other operation systems of proxy server poll, when other operation systems receive the solicited message of proxy server transmission, judge whether to be less than default load according to own load, when own load is less than default load, then solicited message is processed, and result is returned to proxy server, when own load is greater than or equal to default load, then send refuse information, so that solicited message is continued the operation system sending to other by proxy server to proxy server.There will not be an operation system load high like this, another operation system without the accessible situation of task, thus can improve the resource utilization of service system.
Step 209, proxy server receives result, and described result is returned to described service requester.
Optionally, proxy server receives the result that the first operation system sends, or the result that the operation system of processes said request information returns is determined in reception.
The embodiment of the present invention provides a kind of method processing solicited message, by carrying out transfer buffer memory to solicited message, and according to the loading condition of each operation system in service system, solicited message dynamic realtime is distributed to operation system in service system, make it possible to the object reaching inundation peak clipping, load balancing, and compared with prior art, cost is lower, and can improve the resource utilization of service system.
The embodiment of the present invention provides a kind of device processing solicited message, and this device can be proxy server, and as shown in Figure 4, this device comprises: receiving element 401, transmitting element 402.
Receiving element 401, for receiving the solicited message that service requester sends.
Transmitting element 402, for described request information is sent to the first operation system in service system, described first operation system is any one operation system in described service system.
Optionally, service system comprises multiple operation system, and each operation system can process solicited message individually.
Described transmitting element 402, also for when receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
Further alternative, as shown in Figure 5, described device, also comprises: buffer unit 403.
When receiving at least two described request information, buffer unit 403, for buffer memory described request information, to avoid instantaneous a large amount of solicited message to the impact of service system, thus can improve stability and the availability of service system.
When the solicited message receiving service requester transmission is 1, then can directly process this solicited message, namely described request information is sent to the first operation system in service system by transmitting element 402.
Optionally, described buffer unit 403 for: by described request information cache in internal memory.
Further alternative, when described request information is sent to the first operation system in service system by described transmitting element 402, for:
The described request information be buffered in internal memory is distributed to successively at random described first operation system in described service system.
Further alternative, when receiving the refuse information that described first operation system sends, after described request information is sent to the operation system except described first operation system in described service system by described transmitting element 402 successively, at described receiving element 401, also for: receive determine the result that the operation system of processes said request information returns;
Described transmitting element 402, also for described result is returned to described service requester.
It should be noted that, in accompanying drawing 4 or accompanying drawing 5 shown device, the content such as information interaction between the specific implementation process of its modules and modules, due to the inventive method embodiment based on same inventive concept, see embodiment of the method, can not repeat one by one at this.
The embodiment of the present invention provides a kind of device processing solicited message, and by transmitting element, information required by receiving is sent to the first operation system in service system, described first operation system is any one operation system in described service system; When receiving the refuse information that described first operation system sends, described transmitting element, also for described request information being sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, make it possible to solve service system inundation situation, and save hardware cost, improve resource utilization.
The embodiment of the present invention provides a kind of system processing solicited message, and as shown in Figure 3, described system comprises service requester 301, proxy server 302, service system 303, and described service system 303 comprises operation system 1, operation system 2, operation system 3.
Service requester 301 is to proxy server 302 transmission request information.Proxy server 302 receives the solicited message that service requester 301 sends, and solicited message is carried out buffer memory.Solicited message is distributed to the operation system 1 in described service system 303 by proxy server 302 at random.Operation system 1 receives the solicited message that proxy server 302 sends, and judges whether own load is less than default load.When own load is greater than or equal to default load, then send refuse information to proxy server 302.Proxy server 302 receives the refuse information that operation system 1 sends, and solicited message is sent to the operation system 2 in described service system, and operation system 2 receives the solicited message that proxy server 302 sends, and judges whether own load is less than default load.When own load is greater than or equal to default load, then send refuse information to proxy server 302.When own load is less than default load, then to proxy server 302 transmission processing result.Proxy server 302 continues to other operation system transmission request information after receiving the refuse information of operation system 2 transmission, when receiving the result that operation system 2 sends, described result is sent to service requester 301.
The embodiment of the present invention provides a kind of system processing solicited message, by carrying out transfer buffer memory to solicited message, and according to the loading condition of each operation system in service system, solicited message dynamic realtime is distributed to operation system in service system, make it possible to the object reaching inundation peak clipping, load balancing, and compared with prior art, cost is lower.
It should be noted that, device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, can certainly comprise application-specific integrated circuit (ASIC), dedicated cpu, private memory, special components and parts etc. by specialized hardware to realize, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computer, USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in the present invention each embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device and system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (10)

1. process a method for solicited message, it is characterized in that, comprising:
Receive the solicited message that service requester sends;
Described request information is sent to the first operation system in service system, described first operation system is any one operation system in described service system;
When receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
2. method according to claim 1, is characterized in that, when receiving at least two described request information, after the solicited message that described reception service requester sends, also comprises:
Buffer memory described request information.
3. method according to claim 2, is characterized in that, described buffer memory described request information, comprising:
By described request information cache in internal memory.
4. method according to claim 3, is characterized in that, described described request information is sent to the first operation system in service system, comprising:
The described request information be buffered in internal memory is distributed to successively at random described first operation system in described service system.
5. method according to claim 1, it is characterized in that, described when receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, also comprise:
Receive and determine the result that the operation system of processes said request information returns, and described result is returned to described service requester.
6. process a device for solicited message, it is characterized in that, comprising:
Receiving element, for receiving the solicited message that service requester sends;
Transmitting element, for described request information is sent to the first operation system in service system, described first operation system is any one operation system in described service system;
Described transmitting element, also for when receiving the refuse information that described first operation system sends, described request information is sent to successively the operation system except described first operation system in described service system, until determine the operation system of processes said request information, described refuse information is because the load of described first operation system is greater than or equal to the message that refusal that default load sends accepts described request information.
7. device according to claim 6, is characterized in that, when receiving at least two described request information, described device, also comprises:
Buffer unit, for buffer memory described request information.
8. device according to claim 7, is characterized in that, described buffer unit, for:
By described request information cache in internal memory.
9. device according to claim 8, is characterized in that, described transmitting element, for:
The described request information be buffered in internal memory is distributed to successively at random described first operation system in described service system.
10. device according to claim 6, is characterized in that, described receiving element, also for:
Receive and determine the result that the operation system of processes said request information returns;
Described transmitting element, also for described result is returned to described service requester.
CN201410003426.2A 2014-01-03 2014-01-03 Method and device for processing request information Active CN104767772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410003426.2A CN104767772B (en) 2014-01-03 2014-01-03 Method and device for processing request information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410003426.2A CN104767772B (en) 2014-01-03 2014-01-03 Method and device for processing request information

Publications (2)

Publication Number Publication Date
CN104767772A true CN104767772A (en) 2015-07-08
CN104767772B CN104767772B (en) 2020-03-10

Family

ID=53649377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410003426.2A Active CN104767772B (en) 2014-01-03 2014-01-03 Method and device for processing request information

Country Status (1)

Country Link
CN (1) CN104767772B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442432A (en) * 2019-08-22 2019-11-12 北京三快在线科技有限公司 Method for processing business, system, device, equipment and storage medium
CN112559189A (en) * 2020-12-21 2021-03-26 厦门亿联网络技术股份有限公司 Service request processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN101552716A (en) * 2008-04-03 2009-10-07 华为技术有限公司 Method, device and system for calculating service path
CN102056267A (en) * 2009-11-06 2011-05-11 中兴通讯股份有限公司 Network load controlling method, network media gateway and network control network element
CN102111815A (en) * 2011-02-28 2011-06-29 华为技术有限公司 Method and device for controlling load balance
JP2011135470A (en) * 2009-12-25 2011-07-07 Mitsubishi Electric Corp Terminal, and mobile communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552716A (en) * 2008-04-03 2009-10-07 华为技术有限公司 Method, device and system for calculating service path
CN101364930A (en) * 2008-09-24 2009-02-11 深圳市金蝶中间件有限公司 Session control method, apparatus and system
CN102056267A (en) * 2009-11-06 2011-05-11 中兴通讯股份有限公司 Network load controlling method, network media gateway and network control network element
JP2011135470A (en) * 2009-12-25 2011-07-07 Mitsubishi Electric Corp Terminal, and mobile communication system
CN102111815A (en) * 2011-02-28 2011-06-29 华为技术有限公司 Method and device for controlling load balance

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442432A (en) * 2019-08-22 2019-11-12 北京三快在线科技有限公司 Method for processing business, system, device, equipment and storage medium
CN112559189A (en) * 2020-12-21 2021-03-26 厦门亿联网络技术股份有限公司 Service request processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104767772B (en) 2020-03-10

Similar Documents

Publication Publication Date Title
CN101815033B (en) Method, device and system for load balancing
CN102404229B (en) System, device and method for load balancing
CN108933829A (en) A kind of load-balancing method and device
CN107547623B (en) Application data transmission method and device, application server and application proxy server
CN109408243B (en) RDMA-based data processing method, device and medium
CN109672711B (en) Reverse proxy server Nginx-based http request processing method and system
CN107645540A (en) The load-balancing method of web application systems
CN103634224A (en) Method and system for transmitting data in network
CN107979539A (en) Message processing method and device
CN112148240A (en) File printing method and device
CN107689878A (en) TCP length connection SiteServer LBSs based on name scheduling
US8458702B1 (en) Method for implementing user space up-calls on java virtual machine before/after garbage collection
CN105978938A (en) Service processing equipment service status determining method and scheduling equipment
CN104793982A (en) Method and device for establishing virtual machine
CN116708450A (en) Load balancing method, load balancing device, electronic equipment and computer readable storage medium
CN104767772A (en) Method and device for processing request information
US10402103B2 (en) Dynamic parallelism
CN107896196B (en) Method and device for distributing messages
CN112612631B (en) Message queue accumulation detection method and related device
CN112054919B (en) Method, device, storage medium and system for generating ID (identity) of container cluster under stateless condition
CN106790610B (en) Cloud system message distribution method, device and system
CN111610942A (en) Method and system for generating printed file and readable storage medium
CN103428273B (en) The method and apparatus of response inquiry is carried out in asynchronous system is mutual
CN103002038A (en) Processing method and device for elastic load balancing
CN107689979B (en) method and equipment for processing download request

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant