Summary of the invention
The invention provides a kind of method and system of processing the off-line meeting, to address the above problem.
The invention provides a kind of method of processing the off-line meeting.Said method may further comprise the steps: Web server receives the page request that customer terminal webpage sends, and the configuration information that described page request is corresponding is back to customer terminal webpage; During the threshold value of the waiting list that outnumbers Web server of the page request that receives when Web server, Web server sends a notification message to load-balanced server, behind the load-balanced server receiving notice message, meeting instruction set and configuration file are sent to the customer terminal webpage corresponding above the page request of threshold value; Customer terminal webpage is finished corresponding operating according to the meeting instruction set and the configuration file that receive.
The present invention also provides a kind of system that processes the off-line meeting, comprises client, Web server and load-balanced server.Client connects Web server by load-balanced server.Web server be used for receiving the page request that described customer terminal webpage sends, and the configuration information that described page request is corresponding is back to customer terminal webpage.During the threshold value of the waiting list that outnumbers Web server of the page request that receives when Web server, Web server, be used for sending a notification message to load-balanced server, load-balanced server, after being used for receiving notice message, meeting instruction set and configuration file are sent to the customer terminal webpage corresponding above the page request of threshold value.Customer terminal webpage is finished corresponding operating according to the described meeting instruction set and the configuration file that receive.
Compared to prior art, method and system according to processing off-line provided by the invention meeting, during the threshold value of the waiting list that outnumbers Web server of the page request that receives when Web server, Web server sends a notification message to load-balanced server, load-balanced server is sent to the customer terminal webpage corresponding above the page request of threshold value with meeting instruction set and configuration file, and customer terminal webpage is finished corresponding operating according to the meeting instruction set and the configuration file that receive.So, pass through load-balanced server and send meeting instruction set and the extremely corresponding customer terminal webpage of configuration file, thereby solve the busy situation of Web server in the high concurrent page access situation.In addition, also improved user's experience degree.
Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the flow chart of the method for the processing off-line meeting that preferred embodiment according to the present invention provides.As shown in Figure 1, the method for the processing off-line meeting that provides of preferred embodiment of the present invention comprises step 101 ~ 103.
In step 101, Web server receives the page request that customer terminal webpage sends, and the configuration information that described page request is corresponding is back to customer terminal webpage.
In present embodiment, the page request equally loaded that load-balanced server sends customer terminal webpage is to Web server.Wherein, the corresponding communication server of Web server configuration page request and the information of streaming media server, and the above-mentioned information that configures is kept in the database.Take the php page as example, if the page a at user A place need to send text message to the page b at user B place, then the page a at user A place is loaded to Web server by load-balanced server with the page request (for example, text message communications request) that sends.After Web server receives above-mentioned page request, (for example obtain configuration information corresponding to above-mentioned page request according to the configuration information of preserving in the database, the address information of the communication server of realization text message communications), and with above-mentioned configuration information be back to user A place page a.Behind the configuration information that the page a reception Web server at user A place returns, text message is sent to the communication server of being determined by configuration information, and by the communication server text message is sent to user B, thereby realize the text message communications between the user.
In step 102, during the threshold value of the waiting list that outnumbers described Web server of the page request that receives when described Web server, described Web server sends a notification message to load-balanced server, after described load-balanced server receives described notification message, meeting instruction set and configuration file are sent to the customer terminal webpage corresponding above the page request of threshold value.
In step 103, described customer terminal webpage is finished corresponding operating according to the described meeting instruction set and the configuration file that receive.
In present embodiment, Web server arranges waiting list, and Web server is put into waiting list with page request after receiving page request.When Web server received a large amount of page request, the page request of processing successively waiting list behind the waiting list put into page request by Web server.Wherein, the waiting list of Web server arranges threshold value.In this, when the page request in the waiting list of Web server outnumber threshold value the time, Web server no longer receives the request of Web server, simultaneously, the waiting list of Web server triggers timer, for example, it is 3 seconds that timing is set.If timer reaches timing, and the number of page request does not reach threshold value in the waiting list, then page request is put into waiting list, and the page request in the waiting list is processed according to step 101; If timer reaches timing, and the number of page request has reached threshold value in the waiting list, and then Web server sends a notification message to load-balanced server.
In present embodiment, behind the notification message that load-balanced server reception Web server sends, load-balanced server is sent to the customer terminal webpage corresponding above the page request of threshold value with meeting instruction set and configuration file.Wherein, meeting instruction set and configuration documentation form program, after the meeting instruction set and configuration file that corresponding customer terminal webpage balancing received load server sends, finish corresponding operating according to the meeting instruction set and the configuration file that receive.So, solved the high concurrent problem that can't respond of Web server, customer terminal webpage can be finished communication function glibly.In this, the meeting instruction set comprises login instruction, noticeOnline instruction, meettext instruction, video conference instruction and loginout instruction.Configuration file comprises the address information of the corresponding communication server and streaming media server.Yet the present invention does not limit this.In this, load-balanced server is sent to the accordant configuration information of preserving in the meeting instruction set of corresponding customer terminal webpage and configuration file and the database.
For example, when initialization, the threshold value that the waiting list of Web server is set is 1000, and timing for example is 3 seconds, and the meeting instruction set for example comprises login instruction, noticeOnline instruction, meettext instruction, video conference instruction and loginout instruction.Wherein, the login instruction for example is { js shell script; Plug-in card program; , and other instructions have similar structure.If customer terminal webpage C sends the request of participating in a conference to Web server, at this moment, the waiting list of Web server has reached threshold value (for example 1000), and, after timing (for example, 3 seconds) finished, waiting list still reached threshold value, then Web server sends a notification message to load-balanced server, and load-balanced server sends to customer terminal webpage C with meeting instruction set and configuration file.After customer terminal webpage C received meeting instruction set and configuration file, customer terminal webpage C obtained the address information of the communication server corresponding to meeting command operating and the address information of streaming media server according to meeting instruction set and configuration file.Afterwards, customer terminal webpage C for example sends to the communication server of appropriate address to finish communication task with login instruction, noticeOnline instruction and meettext instruction, perhaps the video conference instruction is sent to the streaming media server of appropriate address to finish video conference function, pass through at last the loginout instruction and withdraw from meeting, so, in the situation that Web server does not participate in, finish all meeting operations.
Figure 2 shows that the schematic diagram of the system of the processing off-line meeting that preferred embodiment according to the present invention provides.As shown in Figure 2, the system of the processing off-line meeting that provides of preferred embodiment of the present invention comprises client, Web server and load-balanced server 11.Client connects Web server by load-balanced server.In this, take three customer terminal webpage 10a ~ 10c and three Web server 12a ~ 12c as example.Yet the present invention does not limit the number of customer terminal webpage and Web server.
In addition, the system of the processing off-line meeting that provides of present embodiment also comprises database 13, the communication server and streaming media server.Wherein, load-balanced server 11 connects customer terminal webpage 10a ~ 10c and Web server 12a ~ 12c, and database 13 connects Web server 12a ~ 12c, and the communication server and streaming media server connect respectively customer terminal webpage 10a ~ 10c.In this, the present invention does not limit the number of the communication server and streaming media server.In addition, database 13 also can be present in the Web server, and the present invention does not limit this.
In present embodiment, load-balanced server 11 is used for the page request equally loaded of customer terminal webpage 10a ~ 10c is dispensed to Web server 12a ~ 12c.Wherein, take Web server 12a as example, Web server 12a be used for receiving the page request that customer terminal webpage (for example, customer terminal webpage 10a) sends, and the configuration information that page request is corresponding is back to customer terminal webpage (for example, customer terminal webpage 10a).During the threshold value of the waiting list that outnumbers Web server 12a of the page request that receives as Web server 12a, Web server 12a, be used for sending a notification message to load-balanced server 11, behind load-balanced server 11 receiving notice messages, meeting instruction set and configuration file are sent to the customer terminal webpage corresponding above the page request of threshold value (for example, customer terminal webpage 10a).Customer terminal webpage 10a finishes corresponding operating according to the meeting instruction set and the configuration file that receive.About the operation of Web server 12b ~ 12c with Web server 12a, so no longer describe in detail in this.In addition, the specific operation process of the system of the processing off-line meeting that present embodiment provides is described with above-mentioned method, so repeat no more in this.
In sum, the method and system of the processing off-line meeting that preferred embodiment provides according to the present invention, during the threshold value of the waiting list that outnumbers Web server of the page request that receives when Web server, Web server sends a notification message to load-balanced server, load-balanced server is sent to the customer terminal webpage corresponding above the page request of threshold value with meeting instruction set and configuration file, and customer terminal webpage is finished corresponding operating according to the meeting instruction set and the configuration file that receive.So, pass through load-balanced server and send meeting instruction set and the extremely corresponding customer terminal webpage of configuration file, thereby solve the busy situation of Web server in the high concurrent page access situation.In addition, also improved user's experience degree.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.