CN103580988B - Message sink, push, method, device, server group and the system of transmission - Google Patents
Message sink, push, method, device, server group and the system of transmission Download PDFInfo
- Publication number
- CN103580988B CN103580988B CN201210270165.1A CN201210270165A CN103580988B CN 103580988 B CN103580988 B CN 103580988B CN 201210270165 A CN201210270165 A CN 201210270165A CN 103580988 B CN103580988 B CN 103580988B
- Authority
- CN
- China
- Prior art keywords
- server
- message
- server group
- request message
- group
- 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application is related to a kind of message sink, transmission, the method for transmission and message receiving apparatus, server group and message delivery system.The message receival method includes:The server group of the destination object as hash algorithm is provided for, the server group includes multiple servers;Configure the load strategy that multiple servers in the server group receive request message;According to the load strategy, a server in the server group receives the request message for the browser that opposite end server is forwarded according to hash algorithm.Therefore, the application is by setting server group, by server group receive by uniformity hash algorithm forward come request message, received according to load strategy by a server in server group, so that the load balancing of server.
Description
Technical field
The application is related to field of Internet communication, more particularly to a kind of message receival method, information push method, message are passed
Transmission method, message receiving apparatus, server group and message delivery system.
Background technology
With developing rapidly for internet, the message between browser on server and client terminal where user
Transmission is frequent.In the message delivery system towards browser, browser end will ask to load during having two processes, first
Onto different server, the system that message is pushed during second is found when message needs to push according to user account
Server where user, is sent on browser by the server push.
In the existing technical scheme of first process, browser sends to server and asked, using uniformity Hash
(hash) algorithm, the request of user is loaded on destination object server.The program is to divide each server into multiple controls
Processed, each control point controls a range of request, for example, have 10 servers, each server is divided into 16 controls
It is processed, then a total of 160 control points.Assuming that the use of the scope of the value of hash algorithm is 0-16000, then each control point control
100 scopes, each 1600 scopes of server controls, that is, after hash is calculated, in this request in the range of 1600
It is sent on corresponding server.But consistent hashing algorithm has individual shortcoming, although the scope of each control point control
It is the same, but may be after hash is calculated, the data in the range of some are especially more, can so cause to be sent to certain
Request on individual server is especially more, therefore, causes load imbalance on each server.
And the second procedure message push system to browser PUSH message when, generally require search user where service
Message, is then pushed on associated server by device, and it is corresponding with server that this there is the centrally stored user browser of needs
Relation, thus cause message push system need safeguard a huge data message, thus cause data maintenance it is cumbersome, search
Slow and system the hydraulic performance decline of speed.
The content of the invention
This application provides a kind of method of message sink, the method for message push, the method for message transmission, message sink
Device and server group, with the load imbalance on settlement server, and data maintenance is cumbersome, lookup speed is slow and system
Hydraulic performance decline the problem of.
Above-mentioned in order to realize, this application provides a kind of method of message sink.This method includes:
The server group of the destination object as hash algorithm is provided for, the server group includes multiple services
Device;
Configure the load strategy that multiple servers in the server group receive request message;
According to the load strategy, a server in the server group receives opposite end server according to hash algorithm
The request message of the browser of forwarding.
This application provides a kind of method that message is pushed.This method includes:
Server group is received wraps in the issuing message that the system of message push is pushed according to hash algorithm, the server group
Include multiple servers;
The multiple server in the server group is received after the issuing message, and each server detection is in itself
Whether it is the server that request message is received according to load strategy;
When a server be defined as it is described the request message is received according to load strategy server when, the determination
The issuing message is sent for the server for receiving the request message according to load strategy.
This application provides a kind of method of message transmission.This method includes:
According to load strategy, a server in server group receive opposite end server according to hash algorithm forward it is clear
Look at the request message of device, the server group includes multiple servers;
The server group receives the issuing message that the system of message push is pushed according to hash algorithm;
The multiple server in the server group is received after the issuing message, and each server detection is in itself
Whether it is the server that the request message is received according to load strategy;
When a server be defined as it is described the request message is received according to load strategy server when, the determination
The issuing message is sent for the server for receiving the request message according to load strategy.
This application provides a kind of method of message transmission.This method includes:
Opposite end server sends in request message, the local terminal server group to local terminal server group according to hash algorithm and wrapped
Include multiple servers;
According to the load strategy being pre-configured with, a server in the local terminal server group receives the request and disappeared
Breath, and sent to the 3rd end server;
Issuing message is sent to multiple in the local terminal server group by the 3rd end server according to hash algorithm
Server;
The load strategy that the basis in the local terminal server group is pre-configured with receives the described of the request message
Server, the issuing message is sent to the opposite end server.
This application provides the device that a kind of message is sent, it is characterised in that described device includes:
Setting unit, for setting server group, the server group includes multiple servers;
Dispensing unit, the load strategy of request message is received for configuring multiple servers in the server group;
Processing unit, for according to the load strategy, a server in the server group to receive opposite end service
The request message for the browser that device is forwarded according to hash algorithm.
This application provides a kind of server group, including multiple servers, the server is used for:
Receive the issuing message that the system of message push is pushed according to hash algorithm;
Whether detection is in itself the server that the request message is received according to load strategy;
The issuing message is sent.
This application provides a kind of server group, including multiple servers, the server is used for:
According to load strategy, the request message for the browser that opposite end server is forwarded according to hash algorithm is received;
Receive the issuing message that the system of message push is pushed according to hash algorithm;
Whether detection is in itself the server that the request message is received according to load strategy;
The issuing message is sent.
This application provides a kind of message delivery system, the system includes:
Opposite end server, the request message for forwarding browser to local terminal server group according to hash algorithm;
The local terminal server group includes multiple servers, and the server is used for according to the load plan being pre-configured with
Slightly, receive the request message and sent to the 3rd end server, and issuing message is sent to the opposite end server.
The 3rd end server, for according to hash algorithm, issuing message to be sent in the local terminal server group
Multiple servers.
Therefore, the application is received by uniformity Hash (hash) algorithm by setting server group by server group
The request message that forwarding comes, is received according to load strategy by a server in server group, so that service
The load balancing of device;Multiple servers in server group receive the issuing message pushed by hash algorithm, can reach just
The load balancing of step, is sent without safeguarding by originally have received the server of request message according to load strategy to browser
Mass data, and can quickly send.
Brief description of the drawings
, below will be to embodiment or description of the prior art in order to illustrate more clearly of the technical scheme in the embodiment of the present application
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the application
Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these
Accompanying drawing obtains other accompanying drawings.
Fig. 1 be the application message sink, pushs, transmission method be applicable application architecture schematic diagram.
Fig. 2 is the flow chart of the method for the embodiment of the present application message sink.
Fig. 3 is the flow chart of the method for the embodiment of the present application message sink.
Fig. 4 is the flow chart for the method that the embodiment of the present application message is pushed.
Fig. 5 is the flow chart for the method that the embodiment of the present application message is transmitted.
Fig. 6 is the flow chart for the method that the embodiment of the present application message is transmitted.
Embodiment
The application is set by the way that webpage (web) server is grouped, and to each server group configuration load strategy,
Server group after packet replaces a server in existing hash algorithm, after being calculated by hash algorithm, for belonging to
Request in the range of the value of the hash algorithm of the server group, will be forwarded to the server group, by server group according to negative
The load Policy receipt request message.When the system that message is pushed has issuing message to need to be pushed to user, hash algorithm is utilized
The issuing message is pushed to the Servers-all in server group, and by have received the server of request message before by under this
Hair message is handed down to user.
The application scenarios schematic diagram that the method for introduce the application message sink, push first below, transmitting is applicable.Fig. 1 is
The application architecture that the application message sink, push, the method for transmission are applicable.As shown in figure 1, the framework includes multiple client end
The system 4 that end 1, multiple proxy servers 2, multiple server groups 3 and message are pushed.There is browser 10 on client terminal,
Server group 3 includes multiple servers 31,32 etc..Proxy server 2 is also referred to as opposite end server in the application, the agency
The request message that server is used for initiating user by browser is transmitted to web server group 3 (in this Shen by hash algorithm
Please be also referred to as server group or local terminal server group), server connects in the server group according to load strategy
The request message is received, so that the first process that message is transmitted is realized in a connection for completing server and terminal.When message is pushed
System 4 there is issuing message when needing to be pushed to user, now calculated by hash algorithm, issuing message sent to service
The issuing message is sent clear by each server 31 in device group 3, the server that request message is now received during first
Device 10 is look at, so that the second process of completion message transmission.The browser 10 and the server group 3 are logical during first
The long connection set up such as HTTP (hypertext transport protocol, abbreviation HTTP) is crossed to ask to send
Message is sought, the system 4 and the server group 3 that the message is pushed during second are by setting up as passed transport control protocol
The long of view (Transmission Control Protocol, abbreviation TCP) connects to send issuing message.
In actual applications, the request message that user is initiated by browser can be the opening e-commerce website page
Request message, the request message of User logs in website, request message, the login e-commerce website of the content for opening the page are provided
Web instant communication clients etc..The system that message is pushed can push for the prosperous message of Ali of such as Taobao's business web site
System, the price of auction applications system, the site information center etc. that push, the issuing message of push can be that instant messaging is chatted
Its information, the commercial promotions information pushed to network registry user, the commodity auction price pushed to network registry user etc..Clothes
Business device group is according to load pressure dynamically setting, for example, there are Taobao's e-commerce website many web to take by multiple servers
Business device, first administrative staff are by setting the strategy of packet, for example, dynamically setting server, server root according to load pressure
According to the load pressure of itself, it is grouped, to reach each server group energy equally loaded pressure being divided into.Have in server group
Multiple servers, after group is set, just there is e-commerce website multigroup server group to receive browsing for hash forwardings
The HTTP request message that device is initiated.Proxy server is when carrying out consistent hashing algorithm, equivalent to will in the prior art one
Machine is replaced by a server group, therefore is by HTTP request message hash a to server group.Turned according to hash algorithm
It is prior art to send out request message a to machine (being server group in this application), is repeated no more.
The embodiment of the present application is described referring to Fig. 2 and descriptions above.Fig. 2 is that the embodiment of the present application message connects
The flow chart of the method for receipts.As shown in Fig. 2 the embodiment of the present application may comprise steps of:
Step 21, the server group of the destination object as hash algorithm is provided for, the server group includes many
Individual server;
In this step, as described above, the strategy of e-commerce website administrative staff setting packet, such as according to negative
Carry Pressure behaviour and server is set, server is grouped according to the load pressure of itself, to reach each server being divided into
Group energy equally loaded pressure, therefore when the load of some server group in e-commerce website reaches a limit, press
According to setting, these servers can dynamically adjust the server in each group, for example, the number of server, server
Species etc..For example some server group 3 includes multiple servers 31,32,33,34 and 35.The server group of group is divided
For the destination object as hash algorithm, that is, substitute one service of destination object that hash algorithm in prior art is pointed to
Device.
Step 22, the load strategy that multiple servers in the server group receive request message is configured;
In this step, e-commerce website administrative staff can be connect with the server in these pre-configured server groups
Receive the load strategy of request message.Load strategy can be polling list polling table, and the polling list polling table is used to indicate according in the polling list polling table
Multiple servers in the order for the server arranged, the server group receive the request message in turn.Wherein
The order arrangement of server can be arranged according to the load pressure that each server has been born in group, for example will load
Pressure it is maximum come last, load pressure sequence (is such as come into top reciprocal, such as name last is to third from the bottom rearward
It is name etc., preferably minimum) server first is come to receive request message, such as order of server 31,32,33,34 and 35
Arrangement.The order arrangement of server can also be according to the performance of each server, if some server performance is very well, Ke Yicheng
Very big load is carried, then is sorted first, is arranged successively according to impaired performance.
Step 23, according to the load strategy, a server in the server group receive opposite end server according to
The request message of the browser of hash algorithm forwarding.
In this step, such as load strategy is above-mentioned polling list polling table, then when a request for receiving hash algorithm
During message, according to the order of the server in polling list polling table, such as server 31 sorts first and receives the request message, then should
Server 31 receives the request message for the browser that opposite end server is forwarded according to hash algorithm.Wherein opposite end server is according to Kazakhstan
During uncommon algorithm forwarding request message, which parameter to carry out hash algorithm using can be according to specifically application scenarios come really
Fixed, the scene of such as User logs in then can carry out hash algorithm according to user account.
In the step 23, a server is received after request message, and the server will record this annexation,
The corresponding relation of machine where recording user and be connected.
The hash algorithm used during existing first is improved, calculated by server group instead of existing hash
A machine in method, receives the request message, so that complete according still further to a server in the server group of load strategy
Into a connection of server and terminal browser, the first process of message transmission is realized.Server in server group
When receiving request message according to load strategy, receive the server record of the request message its connection with corresponding browser and close
System, such as request message have recorded the IP address of browser when being and opening the page, request message is recorded when being User logs in request
User account information of user etc..
Because the server group as hash algorithm destination object is received after request message, order is taken turns in polling list polling table
Server carries out loading this request message, until receiving new request message again next time, by the arrangement in polling list polling table well
Another server of order carrys out load requests message, carrys out load requests with can so causing server fair relatively, will not
There is the request message come every time, undertaken by same server.Therefore, load requests message is carried out according to load strategy, can be with
So that the load of server is more balanced.
Fig. 3 is the flow chart of the method for the embodiment of the present application message sink.Embodiment shown in Fig. 3 shown in Fig. 2 with implementing
Example difference is that the load strategy used is different, as shown in figure 3, the embodiment of the present application may comprise steps of:
Step 31, the server group of the destination object as hash algorithm is provided for, the server group includes many
Individual server;
This step is with step 21.Difference is that administrative staff simultaneously, set the server group in setting server group
Main control server, by main control server after request message is received, load pressure sequence server rearward in poll group,
Or main control server is listening to request message when reaching, the server of load pressure sequence rearward in poll group.
Step 32, the load strategy that multiple servers in the server group receive request message is configured;
In this step, load strategy is born to select the server for meeting loading condition to load the request message
Carrier strip part can be the sequence of server load pressure rearward or server performance is best.
Step 33, according to the load strategy, a server in the server group receive opposite end server according to
The request message of the browser of hash algorithm forwarding.
Load strategy is different from step 33 in this step, therefore the step 33 can include:
Step 331, the main control server in the server group receives the opposite end server and forwarded according to hash algorithm
Browser request message;
This step can also intercept asking for the browser that opposite end server is forwarded according to hash algorithm for main control server
Message is asked to wait to reach.
Step 332, the main control server in the server group is according to load strategy, the multiple server of poll it is negative
Carry, to select the server for meeting loading condition;
For example, have selected the server or the best server of performance of load sequence rearward;
Step 333, the server for meeting loading condition in the server group receives the request message,
And send the request message.
In the present embodiment with unlike above-described embodiment, because load strategy is different, therefore it can select full in real time
Sufficient loading condition, such as server of load sequence rearward, to receive request message.
A machine in existing hash algorithm is replaced by server group, according still further in the server group of load strategy
Selection one meets loading condition sequence and receives the request message rearward, so that a connection for completing server and terminal is real
First process of existing message transmission.Therefore the hash algorithm used during existing first is improved, according to load
Strategy for example loads the server of sequence rearward to select to meet loading condition, loads the request message, and causes server
Load is more balanced.
Fig. 4 is the flow chart for the method that the embodiment of the present application message is pushed.As shown in figure 4, the embodiment of the present application can be wrapped
Include following steps:
Step 41, server group receives the issuing message that the system of message push is pushed according to hash algorithm;
In this step, under the prosperous message push system of Ali for the system such as e-commerce website that message is pushed has
Some browser is sent to during the prosperous message for issuing some user, is carried out the issuing message (i.e. Wang Wang after hash algorithm
Message) it is pushed to each server in server group;
Step 42, the multiple server in the server group is after the issuing message is received, each service
Whether detection is in itself the server that the request message is received according to load strategy to device respectively;
When receiving request message according to load strategy due to the server in server group, the clothes of the request message are received
Business device records its annexation with corresponding browser, and such as request message is that User logs in Ali have recorded user when prosperous
User account information, the User logs in website records user account information of user etc., therefore in this step, in server
Each server after the issuing message is received, whether detection is in itself to receive the request message according to load strategy
Server, that is, the browser foundation checked whether there is with the reception object of message are connected, for example, whether lookup records in itself
User account information;(user opens the doors webpage before such as, and some server have received this request, have recorded this
Connection, message, which pushes discovery, has news to be pushed in web portal pages, is pushed on server, finds there was door on server
The connection of the page, thus have found this connection).
Step 43, when a server be defined as it is described the request message is received according to load strategy server when,
It is described to be defined as the server that the request message is received according to load strategy and send the issuing message.
When the system that message is pushed has issuing message to need to be pushed to user, message PUSH message will using hash algorithm
The issuing message is pushed to the Servers-all in server group, and is issued this by the server that have received request message before
Message is handed down to user.Therefore, multiple servers in server group receive the issuing message pushed by hash algorithm, can be with
Reach preliminary load balancing, by originally have received according to load strategy the server of request message come to browser send without
Mass data must be safeguarded, and can quickly be sent.
Above-mentioned two embodiment respectively describes server group reception opposite end server and passes through browsing that hash algorithm is forwarded
The request message of device, one of server is set up with browser and is connected, and saves this annexation;There is issuing message
When needing to be pushed to user, server group is received after the issuing message that hash algorithm is sent, and establishes this connection
Server the issuing message is pushed to the user of browser end.
Therefore, Fig. 5 is the flow chart for the method that the embodiment of the present application message is transmitted, and which depict combine above-mentioned two to implement
One embodiment of example process, the embodiment comprises the following steps:
Step 51, according to load strategy, a server in server group receives opposite end server according to hash algorithm
The request message of the browser of forwarding, the server group includes multiple servers;
Step 52, the correspondence request that the system that the server group reception message is pushed is pushed according to hash algorithm disappears
The issuing message of breath;
Step 53, the multiple server in the server group is received after the issuing message, each server
Whether detection is in itself the server that the request message is received according to load strategy;
Step 54, when a server be defined as it is described the request message is received according to load strategy server when,
It is described to be defined as the server that the request message is received according to load strategy and send the issuing message.
Step in said process is repeated no more referring to the description above.The application realizes two mistakes of message transmission
The load balancing control of journey.Therefore the hash algorithm used during existing first is improved, according to load strategy
Come, load the request message, and make it that the load of server is more balanced;Multiple servers in server group, which are received, to be passed through
The issuing message that hash algorithm is pushed, can reaching preliminary load balancing, being disappeared by originally have received request according to load strategy
The server of breath is sent without safeguarding mass data to browser, and can quickly be sent.
Fig. 6 is the method flow diagram of the embodiment of the present application message transmission.With reference to Fig. 1 and Fig. 6, the embodiment of the present application can be wrapped
Include following steps:
Step 61, opposite end server sends request message, the local terminal service according to hash algorithm to local terminal server group
Device group includes multiple servers;
Step 62, according to the load strategy being pre-configured with, a server in the local terminal server group receives described
Request message, and sent to the 3rd end server;
Step 63, issuing message is sent to the local terminal server group by the 3rd end server according to hash algorithm
In multiple servers;
Step 64, the load strategy that the basis in the local terminal server group is pre-configured with receives the request message
The server, send the issuing message to the opposite end server.
Therefore the hash algorithm used during existing first is improved, come according to load strategy, load should
Request message, and make it that the load of server is more balanced;Multiple servers in server group are received to be pushed away by hash algorithm
The issuing message sent, can reach preliminary load balancing, by the server that request message is originally have received according to load strategy
To be sent to browser without safeguarding mass data, and can quickly it send.
Correspondingly, this application provides the device that a kind of message is sent, described device includes:
Setting unit, for setting server group, the server group includes multiple servers;
Dispensing unit, the load strategy of request message is received for configuring multiple servers in the server group;
Processing unit, for according to the load strategy, a server in the server group to receive opposite end service
The request message for the browser that device is forwarded according to hash algorithm.
E-commerce website administrative staff set the strategy of packet by setup unit, for example, dynamically set according to load pressure
Server is put, server is grouped according to the load pressure of itself, to reach each server group energy equally loaded being divided into
Pressure, therefore when the load of some server group in e-commerce website reaches a limit, according to setting, these clothes
Business device can dynamically adjust the server in each group, the number of such as server, the species of server etc..For example certain
Individual server group 3 includes multiple servers 31,32,33,34 and 35.Having divided the server group of group is used for as hash algorithm
Destination object, that is, substitute prior art in hash algorithm point to one server of destination object.
E-commerce website administrative staff can be with the server in these pre-configured server groups by dispensing unit
Receive the load strategy of request message.Load strategy can be polling list polling table, and the polling list polling table is used to indicate according to the polling list polling table
Multiple servers in the order of the middle server arranged, the server group receive the request message in turn.Its
The order arrangement of middle server can be arranged according to the load pressure that each server has been born in group, for example will be negative
Coming finally for pressure maximum is carried, the server that load pressure is sorted rearward comes first to receive request message, for example, take
The order of device 31,32,33,34 and 35 of being engaged in is arranged.The order arrangement of server can also according to the performance of each server, if certain
Individual server performance very well, can carry very big load, then be sorted first, be arranged successively according to impaired performance.
It is above-mentioned polling list polling table to handle single unit to be used for such as load strategy, then when one that receives hash algorithm please
When seeking message, according to the order of the server in polling list polling table, such as server 31 sorts first and receives the request message, then
The server 31 receives the request message for the browser that opposite end server is forwarded according to hash algorithm.Wherein opposite end server according to
During hash algorithm forwarding request message, using which parameter carry out hash algorithm can according to specifically application scenarios come
It is determined that, the scene of such as User logs in then can carry out hash algorithm according to user account.
Administrative staff can also set the master control service of the server group simultaneously by setup unit in setting server group
Device, by main control server after request message is received, the server of load pressure sequence rearward in poll group, or master control clothes
Business device is listening to request message when reaching, the server of load pressure sequence rearward in poll group.And by configuring
When unit is configured, load strategy meets the server of loading condition to load the request message, load bar for selection
Part can be the sequence of server load pressure rearward or server performance is best.
And the main control server that processing unit can be further used in the server group receives the opposite end server
The request message of the browser forwarded according to hash algorithm;This step can also intercept opposite end server root for main control server
The request message of the browser forwarded according to hash algorithm is waited to reach.Main control server in the server group is according to load plan
Slightly, the load of the multiple server of poll, to select the server for meeting loading condition;It for example have selected load sequence rearward
Server or the best server of performance;The server for meeting loading condition in the server group is received
The request message, and send the request message.
The hash algorithm used during existing first is improved, calculated by server group instead of existing hash
A machine in method, receives the request message, so that complete according still further to a server in the server group of load strategy
The first process of message transmission is realized in a connection into server and terminal browser.Server in server group according to
When load strategy receives request message, the server record of the request message its annexation example with corresponding browser is received
The IP address of browser is have recorded when being and open the page such as request message, request message have recorded user when being User logs in request
User account information etc..
Because the server group as hash algorithm destination object is received after request message, order is taken turns in polling list polling table
Server carries out loading this request message, until receiving new request message again next time, by the arrangement in polling list polling table well
Another server of order carrys out load requests message, carrys out load requests with can so causing server fair relatively, will not
There is the request message come every time, undertaken by same server.Therefore, load requests message is carried out according to load strategy, can be with
So that the load of server is more balanced.
This application provides a kind of server group, including multiple servers, the server is used for:Receive what message was pushed
The issuing message for the corresponding requests message that system is pushed according to hash algorithm;Whether detection is in itself to receive institute according to load strategy
State the server of request message;The issuing message is sent.When the system that message is pushed has issuing message to need to be pushed to use
During family, the issuing message is pushed to the Servers-all in server group using hash algorithm by message PUSH message, and by it
Before have received the server of request message the issuing message be handed down to user.Therefore, multiple servers in server group connect
The issuing message pushed by hash algorithm is received, preliminary load balancing can be reached, be have received by originally according to load strategy
The server of request message is sent without safeguarding mass data to browser, and can quickly be sent.
This application provides a kind of server group, including multiple servers, the server is used for:According to load strategy,
Receive the request message for the browser that opposite end server is forwarded according to hash algorithm;The system for receiving message push is calculated according to Hash
The issuing message for the correspondence request message that method is pushed;Whether detection is in itself to receive the request message according to load strategy
Server;The issuing message is sent.Step in said process is repeated no more referring to the description above.The application is real
The load balancing control of two processes of message transmission is showed.Therefore the hash algorithm used during existing first is carried out
Improve, come according to load strategy, load the request message, and make it that the load of server is more balanced;In server group
Multiple servers receive the issuing message pushed by hash algorithm, can reach preliminary load balancing, by originally according to negative
Carry the server of Policy receipt request message to send without safeguarding mass data to browser, and can quickly send out
Send.
This application provides a kind of message delivery system, the system includes:
Opposite end server, the request message for forwarding browser to local terminal server group according to hash algorithm;
The local terminal server group includes multiple servers, and the server is used for according to the load plan being pre-configured with
Slightly, the request message is received, and is sent to the 3rd end server, and is disappeared to being issued described in opposite end server transmission
Breath.
The 3rd end server, for according to hash algorithm, the issuing message of the request message being sent to described
Multiple servers in local terminal server group.
The system may refer to the related content of Fig. 1 descriptions and the associated description of devices above., can be with by the system
Realize that the server in the first process servers group of message transmission can be received with equally loaded to ask, under message push system
When sending out message, the issuing message issued by hash algorithm is pushed to each server in server group, is connected by setting up
Server push give user, so as to avoid message system from safeguarding huge data, also achieve preliminary equally loaded.
Those of ordinary skill in the art should further appreciate that, with reference to the embodiments described herein description
Each example unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clear
Illustrate to Chu the interchangeability of hardware and software, generally describe the group of each example according to function in the above description
Into and step.These functions are performed with hardware or software mode actually, depending on the application-specific and design of technical scheme
Constraints.Professional and technical personnel can realize described function to each specific application using distinct methods, but
It is this realize it is not considered that beyond scope of the present application.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm
Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described embodiment, purpose, technical scheme and beneficial effect to the application have been carried out further
Describe in detail, should be understood that the embodiment that the foregoing is only the application, be not used to limit the application
Protection domain, all any modification, equivalent substitution and improvements within spirit herein and principle, done etc. all should include
Within the protection domain of the application.
Claims (11)
1. a kind of method of message sink, it is characterised in that methods described includes:
The server group of the destination object as hash algorithm is provided for, the server group includes multiple servers, its
In, the setting includes setting server to adjust multiple clothes in the server group according to the load pressure of the server group
Business device;
Configure the load strategy that multiple servers in the server group receive request message;
According to the load strategy, the main control server in the server group receives opposite end server and forwarded according to hash algorithm
Browser request message or intercept the request message of the browser forwarded by the opposite end server according to hash algorithm
Wait to reach;
Main control server in the server group selects to meet the clothes of loading condition in the server group according to load strategy
Business device;
The server for meeting loading condition in the server group receives the request message.
2. the method for message sink as claimed in claim 1, it is characterised in that the load strategy is leaned on for selection load sequence
Server afterwards is to send the request message;It is described according to the load strategy, the master control service in the server group
Device selects the server for meeting loading condition in the server group to specifically include according to load strategy:
Main control server in the server group is according to load strategy, the load of the multiple server of poll, to select to bear
Carry the server of sequence rearward;
The server for meeting loading condition in the server group receives the request message and specifically included:
The server of load sequence rearward in the server group receives the request message, and sends described ask
Seek message.
3. a kind of method that message is pushed, it is characterised in that methods described includes:
Server group receives the issuing message that the system of message push is pushed according to hash algorithm, and the server group includes many
Individual server, wherein, the server group is by setting server to obtain, and the setting includes setting server according to the clothes
The load pressure for device group of being engaged in adjusts multiple servers in the server group;
The multiple server in the server group is received after the issuing message, each server detection in itself whether
To receive the server of request message according to load strategy;
When a server be defined as it is described the request message is received according to load strategy server when, it is described to be defined as institute
The server for receiving the request message according to load strategy is stated to send the issuing message.
4. a kind of method of message transmission, it is characterised in that methods described includes:
According to load strategy, a server in server group receives the browser that opposite end server is forwarded according to hash algorithm
Request message, the server group includes multiple servers, wherein, the server group by setting server to obtain,
The setting includes setting server to adjust multiple services in the server group according to the load pressure of the server group
Device;
The server group receives the issuing message that the system of message push is pushed according to hash algorithm;
The multiple server in the server group is received after the issuing message, each server detection in itself whether
To receive the server of the request message according to load strategy;
When a server be defined as it is described the request message is received according to load strategy server when, it is described to be defined as institute
The server for receiving the request message according to load strategy is stated to send the issuing message.
5. the method for message transmission as claimed in claim 4, it is characterised in that the load strategy is polling list polling table, the wheel
Inquiry table is used to indicate multiple services in the order according to the server arranged in the polling list polling table, the server group
Device wheel stream receives the request message.
6. the method for message transmission as claimed in claim 4, it is characterised in that the load strategy is leaned on for selection load sequence
Server afterwards is to send the request message;It is described according to the load strategy, a service in the server group
The request message that device receives the browser that opposite end server is forwarded according to hash algorithm is specifically included:
Main control server in the server group receives asking for the browser that the opposite end server is forwarded according to hash algorithm
Seek message;
Main control server in the server group is according to load strategy, the load of the multiple server of poll, to select to bear
Carry the server of sequence rearward;
The server of load sequence rearward in the server group receives the request message, and sends described ask
Seek message.
7. a kind of method of message transmission, it is characterised in that methods described includes:
Opposite end server sends request message according to hash algorithm to local terminal server group, and the local terminal server group includes many
Individual server, wherein, the server group is by setting server to obtain, and the setting includes setting server according to the clothes
The load pressure for device group of being engaged in adjusts multiple servers in the server group;
According to the load strategy being pre-configured with, a server in the local terminal server group receives the request message, and
Sent to the 3rd end server;
Issuing message is sent to multiple services in the local terminal server group by the 3rd end server according to hash algorithm
Device;
The load strategy that the basis in the local terminal server group is pre-configured with receives the service of the request message
Device, the issuing message is sent to the opposite end server.
8. the device that a kind of message is sent, it is characterised in that described device includes:
Setting unit, for setting server group, the server group includes multiple servers, wherein, the setting includes
Server is set to adjust multiple servers in the server group according to the load pressure of the server group;
Dispensing unit, the load strategy of request message is received for configuring multiple servers in the server group;
Processing unit, for according to the load strategy, the main control server in the server group to receive opposite end server root
The request message of the browser forwarded according to hash algorithm or intercept the opposite end server according to hash algorithm forward it is clear
The request message of device look at is waited to reach;
Main control server in the server group selects to meet the clothes of loading condition in the server group according to load strategy
Business device;
The server for meeting loading condition in the server group receives the request message.
9. a kind of server group, including multiple servers, it is characterised in that the server group by setting server to obtain,
The setting includes setting server to adjust multiple services in the server group according to the load pressure of the server group
Device;The server is used for:
Receive the issuing message that the system of message push is pushed according to hash algorithm;
Whether detection is in itself the server that request message is received according to load strategy;
The issuing message is sent.
10. a kind of server group, including multiple servers, it is characterised in that wherein, the server group is by setting server
Obtain, the setting includes setting server to adjust multiple in the server group according to the load pressure of the server group
Server;The server is used for:
According to load strategy, the request message for the browser that opposite end server is forwarded according to hash algorithm is received;
Receive the issuing message that the system of message push is pushed according to hash algorithm;
Whether detection is in itself the server that the request message is received according to load strategy;
The issuing message is sent.
11. a kind of message delivery system, it is characterised in that including:
Opposite end server, for according to hash algorithm to local terminal server group forward browser request message;
The local terminal server group includes multiple servers, and the server is used to, according to the load strategy being pre-configured with, connect
Receive the request message and sent to the 3rd end server, and issuing message is sent to the opposite end server, wherein, it is described
Server group is by setting server to obtain, and the setting includes setting server to be adjusted according to the load pressure of the server group
Multiple servers in the whole server group;
The 3rd end server, for according to hash algorithm, issuing message being sent to many in the local terminal server group
Individual server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210270165.1A CN103580988B (en) | 2012-07-31 | 2012-07-31 | Message sink, push, method, device, server group and the system of transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210270165.1A CN103580988B (en) | 2012-07-31 | 2012-07-31 | Message sink, push, method, device, server group and the system of transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103580988A CN103580988A (en) | 2014-02-12 |
CN103580988B true CN103580988B (en) | 2017-10-17 |
Family
ID=50051953
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210270165.1A Active CN103580988B (en) | 2012-07-31 | 2012-07-31 | Message sink, push, method, device, server group and the system of transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103580988B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980289B (en) * | 2014-04-14 | 2019-03-19 | 阿里巴巴集团控股有限公司 | Information push method, device and system |
CN105306383B (en) * | 2014-06-10 | 2019-11-19 | 腾讯科技(深圳)有限公司 | The method for pushing and terminal and push server of a kind of message |
CN104023087A (en) * | 2014-06-26 | 2014-09-03 | 北京金和软件股份有限公司 | Polling method and device among multiple servers |
CN104301439B (en) * | 2014-11-13 | 2019-02-26 | 北京国双科技有限公司 | Load-balancing method, apparatus and system |
CN107231402B (en) * | 2016-08-31 | 2021-02-12 | 北京新媒传信科技有限公司 | HTTP request processing method, device and system |
CN108322502A (en) * | 2017-12-22 | 2018-07-24 | 杭州大搜车汽车服务有限公司 | Method, gateway system and storage medium for equalization server load |
CN109067817B (en) * | 2018-05-31 | 2021-12-07 | 北京五八信息技术有限公司 | Media content flow distribution method and device, electronic equipment and server |
CN110311967B (en) * | 2019-06-25 | 2022-06-10 | 北京达佳互联信息技术有限公司 | Method, device, equipment and system for pushing data and receiving data |
CN113783904B (en) * | 2020-06-09 | 2023-05-09 | 比亚迪股份有限公司 | Load balancing method, route server and load balancing system |
CN112398752B (en) * | 2020-11-16 | 2022-04-26 | 广州华多网络科技有限公司 | Message push control method and device, equipment and medium thereof |
CN113762857A (en) * | 2020-11-24 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Inventory deduction method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556491A (en) * | 2003-12-30 | 2004-12-22 | 北京金山数字娱乐科技有限公司 | Servicer system |
CN1570903A (en) * | 2003-07-23 | 2005-01-26 | 华为技术有限公司 | A server load equalizing method |
CN101247350A (en) * | 2008-03-13 | 2008-08-20 | 华耀环宇科技(北京)有限公司 | Network load balancing method based on SSL digital certificate |
CN101247349A (en) * | 2008-03-13 | 2008-08-20 | 华耀环宇科技(北京)有限公司 | Network flux fast distribution method |
CN101605092A (en) * | 2009-07-10 | 2009-12-16 | 浪潮电子信息产业股份有限公司 | A kind of content-based SiteServer LBS |
CN102263828A (en) * | 2011-08-24 | 2011-11-30 | 北京蓝汛通信技术有限责任公司 | Load balanced sharing method and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1207876C (en) * | 2000-06-15 | 2005-06-22 | 国际商业机器公司 | Short message gateway, system and method supply information service for mobile phone |
-
2012
- 2012-07-31 CN CN201210270165.1A patent/CN103580988B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1570903A (en) * | 2003-07-23 | 2005-01-26 | 华为技术有限公司 | A server load equalizing method |
CN1556491A (en) * | 2003-12-30 | 2004-12-22 | 北京金山数字娱乐科技有限公司 | Servicer system |
CN101247350A (en) * | 2008-03-13 | 2008-08-20 | 华耀环宇科技(北京)有限公司 | Network load balancing method based on SSL digital certificate |
CN101247349A (en) * | 2008-03-13 | 2008-08-20 | 华耀环宇科技(北京)有限公司 | Network flux fast distribution method |
CN101605092A (en) * | 2009-07-10 | 2009-12-16 | 浪潮电子信息产业股份有限公司 | A kind of content-based SiteServer LBS |
CN102263828A (en) * | 2011-08-24 | 2011-11-30 | 北京蓝汛通信技术有限责任公司 | Load balanced sharing method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103580988A (en) | 2014-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103580988B (en) | Message sink, push, method, device, server group and the system of transmission | |
US10904204B2 (en) | Incompatible network gateway provisioned through DNS | |
US10659354B2 (en) | Processing data packets using a policy based network path | |
US10263958B2 (en) | Internet mediation | |
US10230763B2 (en) | Application layer-based single sign on | |
US9319315B2 (en) | Distributing transmission of requests across multiple IP addresses of a proxy server in a cloud-based proxy service | |
US9794282B1 (en) | Server with queuing layer mechanism for changing treatment of client connections | |
US8676955B1 (en) | Method and system for managing network traffic | |
CN102790808B (en) | A kind of domain name analytic method and system, a kind of client | |
US20030023744A1 (en) | Secret session supporting load balancer | |
EP2633667B1 (en) | System and method for on the fly protocol conversion in obtaining policy enforcement information | |
US20020143955A1 (en) | Packet relay processing apparatus | |
US8621078B1 (en) | Certificate selection for virtual host servers | |
US20070214265A1 (en) | Scalable captive portal redirect | |
US8914510B2 (en) | Methods, systems, and computer program products for enhancing internet security for network subscribers | |
JP2010534042A (en) | Encrypted wide area network traffic optimization method | |
CN107222561A (en) | A kind of transport layer reverse proxy method | |
US10142282B2 (en) | Methods and gateways for processing DNS request | |
EP1950917B1 (en) | Methods for peer-to-peer application message identifying and operating realization and their corresponding devices | |
CN102857547B (en) | The method and apparatus of distributed caching | |
CN108737407A (en) | A kind of method and device for kidnapping network flow | |
US11706256B2 (en) | Secure traffic optimization in an edge network | |
US20110196934A1 (en) | Socket SMTP Load Balancing | |
CN107888643A (en) | A kind of UDP load-balancing methods, device and system | |
US11652890B1 (en) | Methods and systems to maintain multiple persistent channels between proxy servers |
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 |