CN102571947A - Processing method proxy method, device and system - Google Patents

Processing method proxy method, device and system Download PDF

Info

Publication number
CN102571947A
CN102571947A CN2011104522990A CN201110452299A CN102571947A CN 102571947 A CN102571947 A CN 102571947A CN 2011104522990 A CN2011104522990 A CN 2011104522990A CN 201110452299 A CN201110452299 A CN 201110452299A CN 102571947 A CN102571947 A CN 102571947A
Authority
CN
China
Prior art keywords
server
processing logic
cluster
service
information
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
CN2011104522990A
Other languages
Chinese (zh)
Other versions
CN102571947B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Qizhi Software Beijing 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 Qizhi Software Beijing Co Ltd filed Critical Qizhi Software Beijing Co Ltd
Priority to CN201110452299.0A priority Critical patent/CN102571947B/en
Priority to CN201410617425.7A priority patent/CN104363275B/en
Publication of CN102571947A publication Critical patent/CN102571947A/en
Application granted granted Critical
Publication of CN102571947B publication Critical patent/CN102571947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a processing method proxy method, device and system, and relates to the technical field of network. The method provided by the invention comprises the following steps of: analyzing an access request transmitted by a front-end server of proxy to acquire request information including a business number and processing logic; searching configuration information of a business server cluster corresponding to the business number through the business number; transmitting a data packet to each server of the business server cluster corresponding to the business number according to the configuration information, wherein the data packet comprises a request for acquiring operation condition information of each server; analyzing the operation condition information in the data packet returned by each server; selecting a target server which normally operate from each server; and transmitting the processing logic to the target server. Through the invention, the logic architecture of the front-end server can be simplified, the problem of incapability of processing the request caused by network connection among multiple proxies is solved, and the machine cost and the maintenance cost are reduced.

Description

A kind of methods, devices and systems of agent processes data
Technical field
The application relates to networking technology area, particularly relates to a kind of methods, devices and systems of agent processes data.
Background technology
In the Internet, front-end server has a large amount of access request to send to back-end server, such as application server etc.In order to solve front-end server and back-end server because of the short visit that the causes problem slowly that is connected, between front-end server and back-end server, the agency is set, front-end server conducts interviews through agency and back-end server.The internet, applications more complicated is various; The program of service being provided accordingly or serving will be many; For front-end server, possibly need the server cluster of processing multiple business is that front-end server provides service, such as operational data storage; The complex logic computing service, third party's interactive service etc.
In the prior art, the agency generally just is exclusively used in own professional inner, and each agency's function is unique; Do certain partial service in this business inside, forwards, perhaps load is used; Handle different functions if desired; Need design a plurality of agencies so, and for each agency is provided with a separate server, and connect through network between the acting server.Such as; If there are 2 the service server cluster A, the B that handle different business in the rear end, act on behalf of with load if forwards merit agency is set in front-end server and professional cluster server, so prior art at cluster for service server cluster A; Will be provided with that forwards is acted on behalf of A and A is acted on behalf of in load; Equally, for service server cluster B, will be provided with that forwards is acted on behalf of B and B is acted on behalf of in load; Each agency is provided with a hardware device separately, and communicates through network between the agency.
Mode for prior art: at first; For each business an agency is set all; Perhaps for a plurality of agencies of same business setting, make front end logic too too fat to move, promptly front-end server logic that too fat to move complicacy need be set is mutual with back-end server through these agencies; Secondly,, cause machine cost and maintenance cost very high, be unfavorable for expanded application because each agency needs a hardware device; Once more; For a request; When the agency handled it, the result that need make a back agency inherit previous agency in order just can be proceeded to handle, and owing to connect through network between the agency; In case the connection of the network between certain two agency goes wrong so, so whole request just can't be handled.
Summary of the invention
The application's technical problem to be solved provides a kind of methods, devices and systems of agent processes data; Simplified the logical architecture of front-end server; Solved between a plurality of agencies because network connects the problem that the request that causes can't be handled, and reduced machine cost and maintenance cost.
In order to address the above problem, the application discloses a kind of method of agent processes data, comprising:
Resolve the access request that agency place front-end server sends, obtain to comprise the solicited message of service numbers and processing logic;
Search the configuration information of the corresponding service server cluster of said service numbers through service numbers;
Send packet each server to the corresponding service server cluster of service numbers according to said configuration information, said packet comprises the request of obtaining each server ruuning situation information; And analyze the ruuning situation information in the packet that said each server returns;
From said each server, select a normal destination server of operation, and said processing logic is sent to said destination server;
Obtain result that destination server returns and said result is returned front-end server.
Preferably, before the access request of receiving front-end server, also comprise:
The configuration file of loaded with traffic server cluster, said configuration file comprises the number information of service of service server cluster, the IP information of each server in port information and the said cluster.
Preferably,, the processing logic with described request also comprises before sending to said destination server:
With the type conversion of the processing logic of described request is the type of the processing logic of destination server.
Preferably, also comprise during loading configuration file:
Load the processing logic of said professional cluster, and load will be different with this professional cluster the processing logic type conversion be the translation-protocol with the same processing logic type of this services sets faciation.
Preferably, the processing logic type conversion that loading will be different with this professional cluster be with this services sets faciation with the translation-protocol of processing logic type the time:
Processing logic type conversion that will be different with this professional cluster through the loading external scripts is and this services sets faciation processing logic type together.
Preferably, said ruuning situation information comprises each server load information of said service server cluster, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
When preferably, from said each server, selecting the normal destination server of operation:
When the heartbeat of master server group stops or load when excessive, from being equipped with normal destination server of operation of server group selection.
Preferably, the agency is connected with back-end server through socket.
Accordingly, disclosed herein as well is a kind of device of agent processes data, comprising:
Parsing module is used to resolve the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic;
Search module, be used for searching the configuration information of the corresponding service server cluster of said service numbers through service numbers;
The operating analysis module is used to send packet to arrive each server of the corresponding service server cluster of service numbers, and said packet comprises the request of obtaining each server ruuning situation information; And analyze the ruuning situation information in the packet that said each server returns;
Select module, be used for selecting a normal destination server of operation, and said processing logic is sent to said destination server from said each server;
Return module, be used to obtain result that destination server returns and said result is returned front-end server.
Preferably, before receiver module, also comprise:
Load-on module is used for the configuration file of loaded with traffic server cluster, and said configuration file comprises the service numbers of service server cluster, the IP information of each server in port information and the said cluster.
Preferably, before sending module, also comprise:
Modular converter is the type of the processing logic of destination server with the type conversion of the processing logic of described request.
Preferably, also comprise during loading configuration file:
Load the processing logic of said professional cluster, and load will be different with this professional cluster the processing logic type conversion be the translation-protocol with the same processing logic type of this services sets faciation.
Preferably, the processing logic type conversion that loading will be different with this professional cluster be with this services sets faciation with the translation-protocol of processing logic type the time:
Processing logic type conversion that will be different with this professional cluster through the loading external scripts is and this services sets faciation processing logic type together.
Preferably, said ruuning situation information comprises each server load information of said service server cluster, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
When preferably, from said each server, selecting the normal destination server of operation:
When the heartbeat of master server group stops or load when excessive, from being equipped with normal destination server of operation of server group selection.
Preferably, the agency is connected with back-end server through socket.
Accordingly, disclosed herein as well is a kind of system of agent processes data, comprising:
Front-end server and at least one service server cluster;
Said front-end server comprises the agent processes module; Said agent processes module comprises:
Analyzing sub-module is used to resolve the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic;
Search submodule, be used for searching the configuration information of the corresponding service server cluster of said service numbers through service numbers;
The operating analysis submodule; Be used to send each server that ping wraps the corresponding service server cluster of service numbers; Said ping comprises the request of obtaining each server ruuning situation information, and analyzes the ruuning situation information in the ping bag that said each server receive returns;
The chooser module is used for selecting a normal destination server of operation from said each server, and said processing logic is sent to said destination server;
Return submodule, be used to obtain result that destination server returns and said result is returned front-end server.
Compared with prior art, the application comprises following advantage:
The application is through being provided with proxy module on front-end server; Each backend services server cluster of the unified visit of interface that front-end server provides through this proxy module can carry out functions such as load adjustment, disaster tolerance through this proxy module realization simultaneously to the backend services server cluster.Through the application, at first, can each agent functionality be concentrated on the proxy module of front-end server, making front end only need visit home agent module can carry out alternately with the backend services server cluster; Secondly, the application is arranged on the agency in the front-end server, need not a plurality of independent hardware devices and goes to realize agent functionality separately, has reduced machine cost and maintenance cost; Once more, the deal with data of various agent functionalitys is to communicate in process inside, can not cause various agent functionalitys to inherit because of the network reason, thereby causes asking the problem that can't handle.
Description of drawings
Fig. 1 is the schematic flow sheet of the method for a kind of agent processes data of the application;
Fig. 2 is the structural representation of the device of a kind of agent processes data of the application;
Fig. 3 is the structural representation of the system of a kind of agent processes data of the application.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
The internet, applications more complicated is various, provides the program of service or the service will be many accordingly, and if under such situation front-end server such as web/im with other back-end server (storage of service is provided; Complex logic is calculated; The third party is mutual) all take place alternately, the framework of logical server is required just than higher, and mutual logic can become increasingly complex; If add the cluster load; Hash, the processing of situation such as disaster tolerance, logical architecture is a very big challenge.The application's agency mainly is accomplished leading portion logical AND rear end stand-alone service function mutual; Be the mutual of front-end server and backend services server cluster; Avoid the leading portion logic too too fat to move, can also carry out cluster load, hash; Situation such as disaster tolerance make that the logical services of leading portion is that front-end server only need be paid close attention to the processing logic of oneself and disposable mutual with what act on behalf of.
With reference to Fig. 1, show the schematic flow sheet of the method for a kind of agent processes data of the application, comprising:
Step 110 is resolved the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic.
Receive the request of client at front-end server after; When logical process is carried out in the request of client; Generally need corresponding rear end to provide the service server (such as storage, complex logic is calculated, and the third party is mutual etc.) of respective service that service is provided; Will send respective request so and go to handle, to obtain corresponding data to the respective rear ends server.And the application's front-end server only need get final product the agency that request sends in the book server.
After acting on behalf of the access request of the front-end server transmission that receives its place, resolve its received access request, obtain to comprise the information that call request such as service numbers and processing logic.
In reality, before this step, also comprise:
Load step, the configuration file of loaded with traffic server cluster, said configuration file comprises the number information of service of service server cluster, the IP information of each server in port information and the said cluster.
In reality, for the miscellaneous service server cluster,, need in the agency, load the configuration file that comprises said service server cluster information if carry out alternately with front end through the agency, make the agency know the information of service server cluster.Wherein, said configuration file comprises the number information of service of service server cluster, the IP information of each server in port information and this cluster.In reality, in order to carry out disaster tolerance, each server also is provided with the master server group and is equipped with the server group, also comprises the active and standby situation information of each server in the so described configuration file.
In addition, if added new service server cluster, only need should the business cluster configuration file be loaded among the agency and get final product, front-end server also can carry out with the service server cluster of new interpolation through the agency alternately.
Step 120 is searched the configuration information of the corresponding service server cluster of said service numbers through service numbers.
In reality, the configuration file of each professional cluster server is loaded in advance as previously mentioned, in the agency, promptly there is the configuration information of corresponding service server cluster so.Wherein, the service server cluster is as the sign of its configuration information with corresponding business number.After getting access to the service numbers of access request so, can search the configuration information with the corresponding professional cluster of service numbers, comprise the port of professional cluster, IP, and/or information such as active and standby situation according to service numbers.
Step 130 is sent packet each server to the corresponding service server cluster of service numbers according to said configuration information, and said packet comprises the request of obtaining each server ruuning situation information; And analyze the ruuning situation information in the packet that said each server returns.
As previously mentioned, described configuration comprises the port of service server cluster, IP, and information such as active and standby situation can be known the information such as port, IP of each server of service server cluster through configuration information.So can be according to the port and the IP of each server, packet is sent in each server with service numbers corresponding service server cluster.Wherein, described packet comprises the request of obtaining each server ruuning situation information, such as the loading condition of each server, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
After each server receives the described request packet,, self information such as loading condition, heartbeat message is sent to the agency according to the request in the packet.In reality; If a station server does not have heartbeat; The general packet that does not just have load information and heartbeat message returns, and promptly the agency sends to the not response of packet of this station server, in certain hour section threshold value, does not also receive said packet so; Can judge that so this station server stops heartbeat, when follow-up selection server, get rid of this station server.
The agency is for its loading condition that comprised of each server that receives, and the packet of information such as heartbeat message is analyzed, and analyzes loading condition and disaster tolerance situation of each server etc.
In reality, the agency sends through the form of timed sending ping bag and comprises the request of obtaining each server ruuning situation information, and receives the ping bag that each server returns.
In addition, in reality, the agency is connected with each server of backend services server cluster through socket.
A plurality of TCP connect or a plurality of program process possibly need through same Transmission Control Protocol port transmission data.In order to distinguish different program process and to be connected, computer operating system is that application program and ICP/IP protocol provide the interface that is called socket (Socket) alternately.
3 kinds of Socket types of ICP/IP protocol commonly used are as follows:
Stream Socket (SOCK_STREAM): Stream Socket is used to provide towards connection, reliable data transport service.This service will guarantee that data can realize zero defect, not have and repeat to send, and receive in order.Why Stream Socket can realize reliable data, services, and reason is that it has used transmission control protocol, i.e. TCP (The Transmission Control Protocol) agreement.
Datagram Socket (SOCK_DGRAM): Datagram Socket provides a kind of connectionless service.This service can not guarantee reliability of data transmission, and data might lose or occur data and repeat in transmission course, and can't guarantee sequentially to receive data.Datagram Socket uses UDP (User Datagram Protocol) agreement to carry out the transmission of data.
Raw socket (SOCK_RAW): the difference of raw socket and standard socket (the standard socket refers to Stream Socket and the Datagram Socket that the front is introduced) is: raw socket can be read and write the IP packet that kernel does not have processing; And Stream Socket can only read the data of Transmission Control Protocol, and Datagram Socket can only read the data of udp protocol.Therefore, must use raw socket if visit other agreements transmission data.
Distinguish between the different application process network service be connected, mainly contain 3 parameters: the port numbers of the purpose IP address of communication, the transport layer protocol of use (TCP or UDP) and use.
Step 140 is selected a normal destination server of operation from said each server, and said processing logic is sent to said destination server.
Analyzed through abovementioned steps with request corresponding business cluster in the ruuning situation of each server after, from said each server, select a normal destination server of operation, and said processing logic sent to said destination server.
In reality, for front end for a large amount of access request of a professional cluster, can carry out load balance process in this step.Generally be to carry out load balancing through hash (Hash) algorithm.Such as, if it is normal to have analyzed the load of N station server, can select in the service of N platform one that an access request is distributed in the N station server through following steps so:
A1, with the various situation of various integer divisions with the remainder that arrives of N, average corresponding each station server.
Such as, during N=4, various integer divisions are 0,1,2,3 with the situation of 4 remainders that obtain, so the corresponding station server of each remainder.
A2 carries out the hash computing with an access request through the hash function and obtains an integer value.
A3 divided by N, obtains the remainder after the computing with said integer value.
A4 according to the corresponding relation of remainder after the said computing and server, sends to the processing logic of described request the destination server of correspondence.
Wherein, said ruuning situation information comprises each server load information of said service server cluster, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
Preferably, stop or load when excessive, when the heartbeat of master server group from being equipped with normal destination server of operation of server group selection.
Such as, if when the load of master server group is excessive, can be from being equipped with normal destination server of operation of server group selection.
Again such as, if a certain machine heartbeat of master server group stops, promptly hanging, can call the standby machine polishing so.If the heartbeat of whole master server group stops, will being equipped with the lifting of server group so and handling for the master server group.
In addition, preferred,, the processing logic with described request also comprises before sending to said destination server:
With the type conversion of the processing logic of described request is the type of the processing logic of destination server.
In some cases; Such as carrying out the third party when mutual; Processing logic in the access request of front-end server possibly carry out the processing logic difference of third party's interactive server cluster with the rear end; Username and password such as the processing logic in the front-end server access request is the text type; And the username and password of rear end third party's interactive server cluster processing logic is 256 key types, need convert the text type processing logic of front end into rear end key type processing logic so, and the processing logic type conversion that is about to front end is consistent with the processing logic type of rear end.
For above-mentioned conversion, in reality, can conversion method be loaded in load step, promptly also comprise during loading configuration file:
Load the processing logic of said professional cluster, and load will be different with this professional cluster the processing logic type conversion be the translation-protocol with the same processing logic type of this services sets faciation.
In addition, the processing logic type conversion that loading will be different with this professional cluster be with this services sets faciation with the translation-protocol of processing logic type the time:
Processing logic type conversion that will be different with this professional cluster through the loading external scripts is and this services sets faciation processing logic type together.
Step 150 is obtained result that destination server returns and said result is returned front-end server.
After the destination server of the rear end that the processing logic of the access request of front-end server is sent to corresponding service number through abovementioned steps was handled, the respective objects server can return a result.Then the agency can get access to the result that destination server returns, and after getting access to result, can front-end server be returned in said result arrangement.
In addition; In step 110; Access request for a front-end server; Possible its needs a plurality of professional cooperations to handle, and can parse the processing logic of a plurality of service numbers and corresponding service number so, then in subsequent step to service numbers and handled logic carry out steps 120 equally; Step 130 and step 140, the data processed result of returning for the server at least one service server cluster then rearrange by the order of access request requirement and return to front-end server.
In said process, front-end server carries out disposable mutual as for the agency, can obtain the result for access request.And in this process, agency's various functions are carried out in same process, and the deal with data between the various functions is through intercom the broken string between the various functions that the instability of having avoided network to connect causes mutually in-process.
With reference to Fig. 2, the device that it shows a kind of agent processes data of the application comprises:
Parsing module 210 is used to resolve the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic;
Search module 220, be used for searching the configuration information of the corresponding service server cluster of said service numbers through service numbers;
Operating analysis module 230 is used to send packet to arrive each server of the corresponding service server cluster of service numbers, and said packet comprises the request of obtaining each server ruuning situation information; And analyze the ruuning situation information in the packet that said each server returns;
Select module 240, be used for selecting a normal destination server of operation, and said processing logic is sent to said destination server from said each server;
Return module, be used to obtain result that destination server returns and said result is returned front-end server.
Wherein, before receiver module, also comprise:
Load-on module is used for the configuration file of loaded with traffic server cluster, and said configuration file comprises the service numbers of service server cluster, the IP information of each server in port information and the said cluster.
Wherein, before sending module, also comprise:
Modular converter is the type of the processing logic of destination server with the type conversion of the processing logic of described request.
Accordingly, said load-on module also is used to load the processing logic of said professional cluster, and load will be different with this professional cluster the processing logic type conversion be the translation-protocol with the same processing logic type of this services sets faciation.
In addition, said load-on module also is used for through loading the processing logic type that the processing logic type conversion is and this services sets faciation is same that external scripts will be different with this professional cluster.
Preferably, said ruuning situation information comprises each server load information of said service server cluster, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
When preferably, from said each server, selecting the normal destination server of operation:
When the heartbeat of master server group stops or load when excessive, from being equipped with normal destination server of operation of server group selection.
Wherein, the agency is connected with back-end server through socket.
With reference to Fig. 3, the system that it shows a kind of agent processes data of the application comprises:
Front-end server and at least one service server cluster;
Said front-end server comprises agent processes module S320; Said agent processes module comprises:
Analyzing sub-module 321 is used to resolve the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic;
Search submodule 322, be used for searching the configuration information of the corresponding service server cluster of said service numbers through service numbers;
Operating analysis submodule 323; Be used to send each server that ping wraps the corresponding service server cluster of service numbers; Said ping comprises the request of obtaining each server ruuning situation information, and analyzes the ruuning situation information in the ping bag that said each server receive returns;
Chooser module 324 is used for selecting a normal destination server of operation from said each server, and said processing logic is sent to said destination server;
Return submodule 325, be used to obtain result that destination server returns and said result is returned front-end server.
Like figure, service server cluster A is arranged, service server cluster B etc.The customer side sends to front-end server with the request of its application, and front-end server is needing the backend services server cluster to provide when service that access request is sent to self proxy module, and proxy module carries out with the rear end more alternately.
For system embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
More than to the methods, devices and systems of the agent processes data that the application provided; Carried out detailed introduction; Used concrete example among this paper the application's principle and execution mode are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.

Claims (17)

1. the method for agent processes data is characterized in that, comprising:
Resolve the access request that agency place front-end server sends, obtain to comprise the solicited message of service numbers and processing logic;
Search the configuration information of the corresponding service server cluster of said service numbers through service numbers;
Send packet each server to the corresponding service server cluster of service numbers according to said configuration information, said packet comprises the request of obtaining each server ruuning situation information; And analyze the ruuning situation information in the packet that said each server returns;
From said each server, select a normal destination server of operation, and said processing logic is sent to said destination server;
Obtain result that destination server returns and said result is returned front-end server.
2. method according to claim 1 is characterized in that, before the access request of receiving front-end server, also comprises:
The configuration file of loaded with traffic server cluster, said configuration file comprises the number information of service of service server cluster, the IP information of each server in port information and the said cluster.
3. method according to claim 1 is characterized in that, before the processing logic with described request sends to said destination server, also comprises:
With the type conversion of the processing logic of described request is the type of the processing logic of destination server.
4. method according to claim 3 is characterized in that, also comprises during loading configuration file:
Load the processing logic of said professional cluster, and load will be different with this professional cluster the processing logic type conversion be the translation-protocol with the same processing logic type of this services sets faciation.
5. method according to claim 4 is characterized in that, the processing logic type conversion that loading will be different with this professional cluster be with this services sets faciation with the translation-protocol of processing logic type the time:
Processing logic type conversion that will be different with this professional cluster through the loading external scripts is and this services sets faciation processing logic type together.
6. method according to claim 1 is characterized in that:
Said ruuning situation information comprises each server load information of said service server cluster, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
7. method according to claim 1 is characterized in that, when from said each server, selecting the normal destination server of operation:
When the heartbeat of master server group stops or load when excessive, from being equipped with normal destination server of operation of server group selection.
8. method according to claim 1 is characterized in that:
The agency is connected with back-end server through socket.
9. the device of agent processes data is characterized in that, comprising:
Parsing module is used to resolve the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic;
Search module, be used for searching the configuration information of the corresponding service server cluster of said service numbers through service numbers;
The operating analysis module is used to send packet to arrive each server of the corresponding service server cluster of service numbers, and said packet comprises the request of obtaining each server ruuning situation information; And analyze the ruuning situation information in the packet that said each server returns;
Select module, be used for selecting a normal destination server of operation, and said processing logic is sent to said destination server from said each server;
Return module, be used to obtain result that destination server returns and said result is returned front-end server.
10. device according to claim 9 is characterized in that, before receiver module, also comprises:
Load-on module is used for the configuration file of loaded with traffic server cluster, and said configuration file comprises the service numbers of service server cluster, the IP information of each server in port information and the said cluster.
11. device according to claim 9 is characterized in that, before sending module, also comprises:
Modular converter is the type of the processing logic of destination server with the type conversion of the processing logic of described request.
12. device according to claim 11 is characterized in that, also comprises during loading configuration file:
Load the processing logic of said professional cluster, and load will be different with this professional cluster the processing logic type conversion be the translation-protocol with the same processing logic type of this services sets faciation.
13. device according to claim 12 is characterized in that, the processing logic type conversion that loading will be different with this professional cluster be with this services sets faciation with the translation-protocol of processing logic type the time:
Processing logic type conversion that will be different with this professional cluster through the loading external scripts is and this services sets faciation processing logic type together.
14. device according to claim 9 is characterized in that:
Said ruuning situation information comprises each server load information of said service server cluster, and/or master server group and the heartbeat message that is equipped with the server group in the said service server cluster.
15. device according to claim 9 is characterized in that, when from said each server, selecting the normal destination server of operation:
When the heartbeat of master server group stops or load when excessive, from being equipped with normal destination server of operation of server group selection.
16. device according to claim 9 is characterized in that:
The agency is connected with back-end server through socket.
17. the system of agent processes data is characterized in that, comprising:
Front-end server and at least one service server cluster;
Said front-end server comprises the agent processes module; Said agent processes module comprises:
Analyzing sub-module is used to resolve the access request that agency place front-end server sends, and obtains to comprise the solicited message of service numbers and processing logic;
Search submodule, be used for searching the configuration information of the corresponding service server cluster of said service numbers through service numbers;
The operating analysis submodule; Be used to send each server that ping wraps the corresponding service server cluster of service numbers; Said ping comprises the request of obtaining each server ruuning situation information, and analyzes the ruuning situation information in the ping bag that said each server receive returns;
The chooser module is used for selecting a normal destination server of operation from said each server, and said processing logic is sent to said destination server;
Return submodule, be used to obtain result that destination server returns and said result is returned front-end server.
CN201110452299.0A 2011-12-29 2011-12-29 Processing method proxy method, device and system Active CN102571947B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110452299.0A CN102571947B (en) 2011-12-29 2011-12-29 Processing method proxy method, device and system
CN201410617425.7A CN104363275B (en) 2011-12-29 2011-12-29 A kind of methods, devices and systems for acting on behalf of processing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110452299.0A CN102571947B (en) 2011-12-29 2011-12-29 Processing method proxy method, device and system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201410617425.7A Division CN104363275B (en) 2011-12-29 2011-12-29 A kind of methods, devices and systems for acting on behalf of processing data

Publications (2)

Publication Number Publication Date
CN102571947A true CN102571947A (en) 2012-07-11
CN102571947B CN102571947B (en) 2015-01-14

Family

ID=46416407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110452299.0A Active CN102571947B (en) 2011-12-29 2011-12-29 Processing method proxy method, device and system

Country Status (1)

Country Link
CN (1) CN102571947B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152407A (en) * 2013-02-20 2013-06-12 浪潮电子信息产业股份有限公司 Method for designing integral data disaster recovery backup system
CN103731341A (en) * 2013-12-30 2014-04-16 广州华多网络科技有限公司 Method and system for processing instant messaging services
CN104486401A (en) * 2014-12-11 2015-04-01 中铁程科技有限责任公司 Partitioned data control method and system
WO2015106453A1 (en) * 2014-01-20 2015-07-23 华为技术有限公司 Service processing method and network device
CN105574945A (en) * 2015-12-16 2016-05-11 深圳市金溢科技股份有限公司 Function calling method and device of ETC card center and ETC card service system
CN108156236A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Service request processing method, device, computer equipment and storage medium
CN108769242A (en) * 2018-06-13 2018-11-06 杭州迪普科技股份有限公司 A kind of method for dispatching message and device
CN109905446A (en) * 2017-12-11 2019-06-18 财付通支付科技有限公司 A kind of method for processing business, server and computer storage medium
CN110198275A (en) * 2018-03-28 2019-09-03 腾讯科技(深圳)有限公司 A kind of flow control methods, system, server and storage medium
CN110275711A (en) * 2019-06-19 2019-09-24 珠海天燕科技有限公司 Method for processing business and device
CN110661826A (en) * 2018-06-28 2020-01-07 北京京东尚科信息技术有限公司 Method for processing network request by proxy server side and proxy server
CN112764780A (en) * 2021-01-25 2021-05-07 北京华顺信安信息技术有限公司 Application batch automatic upgrading method suitable for DCC multi-node server
CN114827233A (en) * 2022-04-27 2022-07-29 平安普惠企业管理有限公司 Interactive connection method and device based on double-living cluster, computer equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015537A1 (en) * 2002-07-15 2004-01-22 Richard Doerksen Handheld client framework system
CN101094237A (en) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 Method for sharing in load among net elements in IP multimedia sub system
CN101222757A (en) * 2007-01-10 2008-07-16 北京协进科技发展有限公司 Mobile locating warning system and alarm positioning device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015537A1 (en) * 2002-07-15 2004-01-22 Richard Doerksen Handheld client framework system
CN101222757A (en) * 2007-01-10 2008-07-16 北京协进科技发展有限公司 Mobile locating warning system and alarm positioning device
CN101094237A (en) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 Method for sharing in load among net elements in IP multimedia sub system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152407A (en) * 2013-02-20 2013-06-12 浪潮电子信息产业股份有限公司 Method for designing integral data disaster recovery backup system
CN103731341A (en) * 2013-12-30 2014-04-16 广州华多网络科技有限公司 Method and system for processing instant messaging services
WO2015101260A1 (en) * 2013-12-30 2015-07-09 广州华多网络科技有限公司 Method and system for processing instant communication service
US10129722B2 (en) 2014-01-20 2018-11-13 Huawei Technologies Co., Ltd. Service processing method and network device
WO2015106453A1 (en) * 2014-01-20 2015-07-23 华为技术有限公司 Service processing method and network device
CN104486401A (en) * 2014-12-11 2015-04-01 中铁程科技有限责任公司 Partitioned data control method and system
CN105574945A (en) * 2015-12-16 2016-05-11 深圳市金溢科技股份有限公司 Function calling method and device of ETC card center and ETC card service system
CN105574945B (en) * 2015-12-16 2018-01-19 深圳市金溢科技股份有限公司 The funcall method, apparatus and ETC card service systems at ETC cards center
CN109905446A (en) * 2017-12-11 2019-06-18 财付通支付科技有限公司 A kind of method for processing business, server and computer storage medium
CN109905446B (en) * 2017-12-11 2022-05-17 财付通支付科技有限公司 Service processing method, server and computer storage medium
CN108156236A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Service request processing method, device, computer equipment and storage medium
CN110198275A (en) * 2018-03-28 2019-09-03 腾讯科技(深圳)有限公司 A kind of flow control methods, system, server and storage medium
CN110198275B (en) * 2018-03-28 2022-03-29 腾讯科技(深圳)有限公司 Flow control method, system, server and storage medium
CN108769242A (en) * 2018-06-13 2018-11-06 杭州迪普科技股份有限公司 A kind of method for dispatching message and device
CN110661826A (en) * 2018-06-28 2020-01-07 北京京东尚科信息技术有限公司 Method for processing network request by proxy server side and proxy server
CN110275711A (en) * 2019-06-19 2019-09-24 珠海天燕科技有限公司 Method for processing business and device
CN110275711B (en) * 2019-06-19 2022-12-13 郑州阿帕斯科技有限公司 Service processing method and device
CN112764780A (en) * 2021-01-25 2021-05-07 北京华顺信安信息技术有限公司 Application batch automatic upgrading method suitable for DCC multi-node server
CN114827233A (en) * 2022-04-27 2022-07-29 平安普惠企业管理有限公司 Interactive connection method and device based on double-living cluster, computer equipment and medium
CN114827233B (en) * 2022-04-27 2023-11-24 光禹莱特数字科技(上海)有限公司 Interactive connection method and device based on dual-activity cluster, computer equipment and medium

Also Published As

Publication number Publication date
CN102571947B (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN102571947A (en) Processing method proxy method, device and system
CN108449282B (en) Load balancing method and device
CN106856434B (en) Method and device for converting access request
CN105554065B (en) Handle method, converting unit and the applying unit of message
US7987266B2 (en) Failover in proxy server networks
CN101848235B (en) Real-time multimedia data P2P transmission scheme for supporting NAT traversal
CN113301166B (en) Service calling method and device, storage medium and electronic device
CN109271776A (en) Micro services system single-point logging method, server and computer readable storage medium
CN107786669B (en) Load balancing processing method, server, device and storage medium
CN101296176B (en) Data processing method and apparatus based on cluster
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN103023942A (en) Load balancing method, device and system of server
CN108418884A (en) A kind of method, apparatus and electronic equipment of transmission services data
US10320951B2 (en) Systems and methods for establishing a virtual local area network
US10834033B2 (en) Method and system for transferring messages between messaging systems
CN105635083A (en) Service processing method and service processing system based on server and client architecture
CN105610958A (en) Method and device for selecting time synchronization server and intelligent terminal
CN109257352A (en) Resolve packet method, apparatus, electronic equipment and storage medium
CN106992940A (en) Message processing method, device, system and terminal
CN109922148B (en) Cross-platform service method, device and system
CN103581361A (en) Domain name resolution proxy method, device and system
CN111711675B (en) Solution for concurrent message transmission in local area network
WO2024032094A1 (en) Instant messaging system and method
CN109831473A (en) Logistics service providing method and equipment
CN105429981A (en) Game voice transmission method, terminal, voice service module and game system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151022

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20220714

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right