Specific embodiment
Fig. 1 is information method for uploading flow chart provided in an embodiment of the present invention.Fig. 2 is information provided in an embodiment of the present invention
The applicable network architecture diagram of method for uploading.The information that the embodiment of the present invention is uploaded onto the server for client is imperfect, provides
Information method for uploading, specific step is as follows this method:
Step S101, reverse proxy equipment receives the information that client is sent, and judges the type of the information;
The corresponding network architecture of the embodiment of the present invention is as shown in Fig. 2, client first sends the information uploaded to server
Reverse proxy equipment is given, the type of the information is judged by reverse proxy equipment, and send the information according to the type of the information
To different servers, in embodiments of the present invention, server is divided into two classes, and a kind of server, that is, first server is for receiving
The data message that client uploads, another kind of server, that is, second server are used to receive the demand signalling of client transmission.
If step S102, the described information is data message, the reverse proxy equipment sends the data message to
First server, so that the first server stores the data message;
As shown in Fig. 2, the data message is sent when reverse proxy equipment receives the data message of client upload
To first server so that first server by data message storage to equipment is locally or remotely stored, and be used to store number
First server according to message can be multiple, it is preferred that according to the corresponding type of service of data message, by different service types
Data message be sent to different first servers, i.e. first server 1, first server 2 ... first server n difference
Store the data message of different service types.
If step S103, the described information is demand signalling, the reverse proxy equipment sends the demand signalling to
Second server, so that the second server responds the demand signalling.
As shown in Fig. 2, the embodiment of the present invention responds the demand signalling using second server, work as reverse proxy
When equipment receives the demand signalling of client transmission, second server is sent by the demand signalling.
The embodiment of the present invention is sent to different by the different types of information that reverse proxy equipment sends client
Server is handled, and specifically sends data message and demand signalling that client is sent at different servers
Reason causes partial information bit drop-out, guarantees that client uploads to service when the information bit for avoiding client from uploading is larger
The information integrity of device.
On the basis of the above embodiments, the data message is sent first server by the reverse proxy equipment,
It include: that the reverse proxy equipment sends the data message to according to the type of service of the data message and is used to handle institute
State the first server of the data message of type of service.
As shown in Fig. 2, the first server of message can be multiple for storing data, it is preferred that according to data message
Corresponding type of service, sends the data message of different service types to different first servers, i.e., first server 1,
First server 2 ... first server n stores the data message of different service types respectively.
The data message includes multiple block datas;The reverse proxy equipment sends first for the data message
Server, comprising: the multiple block data is sent multiple first servers by the reverse proxy equipment.
The multiple block data is sent multiple first servers by the reverse proxy equipment, comprising: described
Reverse proxy equipment sends the multiple block data to multiple first servers that load is less than preset value at random.
Client is divided into multiple block datas according to the size of data message, by data message, and by multiple block datas
It is sent to reverse proxy equipment, the multiple block data is sent multiple first servers by reverse proxy equipment, tool
Body, reverse proxy equipment selects load from first server 1, first server 2 ... first server n and is less than preset value
Server, and the random multiple load that is sent to of corresponding multiple block datas of data message that client uploads is less than
The server of preset value.
In embodiments of the present invention, the data message that client uploads can be with piecemeal, can not also piecemeal.
The information that the client is sent further includes the corresponding piecemeal mark of each block data, and the piecemeal mark is used for
Identify sequence of the block data in the data message;
After the multiple block data is sent multiple first servers by the reverse proxy equipment, also wrap
It includes:
The block data that each first server storage receives, and record storage completes the moment;
Each first server is completed the moment according to the storage that all first servers record respectively and is sentenced
Break itself whether be the last one complete storage first server;
The last one first server for completing storage obtains other described first servers from other first servers and deposits
The block data of storage;
It is described the last one complete storage first server block data for storing itself and from other first
The block data that server obtains is according to the corresponding piecemeal identifier combination of each block data at the data message.
In embodiments of the present invention, client carries out piecemeal processing to sent data message and forms multiple block counts
According to, and each block data respectively corresponds a piecemeal mark, which identifies for identifying the block data in entire data
Sequence in message specifically indicates the block data is which piece block data of entire data message.For example, client will be to
The data message of transmission is divided into 5 block datas, and piecemeal mark is respectively 1,2,3,4,5.It is set according to above method reverse proxy
It is standby that block data 1 is sent to first server 1, block data 2 is sent to first server 2, block data 3,4,5 is sent
To first server 3, first server 1 stores block data 1, is specifically possibly stored to first server 1 locally,
Be possibly stored to long-range storage equipment, similarly, first server 2 stores block data 2, first server 3 to point
Block number is stored according to 3,4,5.Record storage completes the moment after each first server has stored block data, and will respectively remember
The storage completion moment of record is sent to database server, i.e. database server counts the corresponding storage of each first server
Complete the moment.Each first server judges its own by all storages completion moment recorded in inquiry database server
Whether be the last one complete storage first server, for example, first server 3 stores the time used in multiple block datas most
It is long, and first server 3 finally completes storage operation, then first server 3 gets block data 1 from first server 1, and
Block data 2 is got from first server 2, and first server 3 is by the block data 3,4,5 itself stored and from first service
The block data 1 that device 1 obtains, and it is combined into a complete data message from the block data 2 that first server 2 obtains,
I.e. block data 1,2,3,4,5 is sequentially combined by first server 3 according to the corresponding piecemeal mark of each block data
The data message, and the data message after combination is stored in database server.
The information that the client is sent further includes corresponding first check code of each block data and the datagram
Corresponding second check code of text;
After the block data that each first server storage receives, further includes:
Each first server calculates the third check code of each of itself storage block data, and compares institute
It states third check code and whether first check code is identical, if they are the same, then the block data verifies successfully;
It is described the last one complete storage first server block data for storing itself and from other first
The block data that server obtains is according to the corresponding piecemeal identifier combination of each block data at the data message
Later, further includes:
The last one described first server for completing storage calculates the 4th check code of the data message, and compares institute
Whether identical as second check code state the 4th check code, if they are the same, then the data message verifies successfully.
In embodiments of the present invention, check code is specially that MD5 code is after client carries out piecemeal processing to data message
Each block data generates a unique MD5 code, while generating the MD5 code of the data message, and each first server is being deposited
When storing up block data, first judge whether the block data has stored in first server according to the MD5 code of the block data
Local or the corresponding remote storage device of first server are stored if the block data was not stored, the first clothes
The MD5 code that business device calculates according to the block data and generates the MD5 code of the block data, and receives with first server carries out
Compare, if not being modified to block data, first server is calculated and the MD5 code generated is received with first server
The corresponding MD5 code of the block data it is identical.
Similarly, first server 3 is identified according to the corresponding piecemeal of each block data by block data 1,2,3,4,5
It is sequentially combined into after the data message, calculates and generate the MD5 code of the data message, if the data message is each point corresponding
Block number is not according to being modified, then the data message after first server 3 combines is consistent with the data message that client uploads, i.e.,
The MD5 code MD5 corresponding with the data message that first server receives of the calculating of first server 3 and the data message generated
Code is identical.
Fig. 3 be another embodiment of the present invention provides information method for uploading signaling diagram.As shown in figure 3, the present invention is implemented
Specific step is as follows for the information method for uploading that example provides:
Step S301, client carries out piecemeal processing to data message;
Step S302, client sends each block data to reverse proxy equipment;
Step S303, reverse proxy equipment selects first server according to block data;
Step S304, reverse proxy equipment sends block data to first server;
Step S305, first server memory partitioning data, verify block data;
Step S306, the first server of storage is completed if the last one, then first server merges all piecemeals
Data form data message;
Step S307, the integrality of first server verify data message;
Step S308, first server returns successfully to client.
The corresponding method of embodiment of the present invention method corresponding with above-described embodiment is consistent, and details are not described herein again.
The embodiment of the present invention sends multiple first servers for multiple block datas by reverse proxy equipment, by multiple
First server carries out distributed storage to multiple block datas, meanwhile, pass through a server in multiple first servers
It combines multiple block datas and forms data message, and completeness check is carried out to data message, ensure that the reliable of data message
Property.
Fig. 4 is the structure chart that information provided in an embodiment of the present invention uploads device.In information provided in an embodiment of the present invention
The process flow that device can be provided with execution information method for uploading embodiment is passed, as shown in figure 4, it includes connecing that information, which uploads device 40,
Receive judgment module 41 and sending module 42, wherein receive the information that judgment module 41 is used to receive client transmission, and judge institute
State the type of information;If sending module 42 is data message for the information, the first clothes are sent by the data message
Business device, so that the first server stores the data message;If the information is demand signalling, by the demand signalling
It is sent to second server, so that the second server responds the demand signalling.
The embodiment of the present invention is sent to different by the different types of information that reverse proxy equipment sends client
Server is handled, and specifically sends data message and demand signalling that client is sent at different servers
Reason causes partial information bit drop-out, guarantees that client uploads to service when the information bit for avoiding client from uploading is larger
The information integrity of device.
On the basis of the above embodiments, sending module 42 is specifically used for the type of service according to the data message for institute
State the first server for the data message that data message is sent to for handling the type of service.
The data message includes multiple block datas;Sending module 42 is specifically used for sending the multiple block data
To multiple first servers.
Sending module 42 is specifically used for sending the multiple block data at random multiple institutes that load is less than preset value
State first server.
Information provided in an embodiment of the present invention, which uploads device, can be specifically used for executing the implementation of method provided by above-mentioned Fig. 1
Example, details are not described herein again for concrete function.
The embodiment of the present invention sends multiple first servers for multiple block datas by reverse proxy equipment, by multiple
First server carries out distributed storage to multiple block datas, meanwhile, pass through a server in multiple first servers
It combines multiple block datas and forms data message, and completeness check is carried out to data message, ensure that the reliable of data message
Property.
In conclusion the embodiment of the present invention is sent by the different types of information that reverse proxy equipment sends client
It is handled to different servers, specifically sends different servers for data message and demand signalling that client is sent
It is handled, when the information bit for avoiding client from uploading is larger, causes partial information bit drop-out, guarantee that client uploads
To the information integrity of server;Multiple first servers are sent by multiple block datas by reverse proxy equipment, by more
A first server carries out distributed storage to multiple block datas, meanwhile, pass through a service in multiple first servers
Device combines multiple block datas and forms data messages, and carries out completeness check to data message, and ensure that data message can
By property.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit
Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module
Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules
At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On
The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.