CN105577772A - Material receiving method, material uploading method and device - Google Patents

Material receiving method, material uploading method and device Download PDF

Info

Publication number
CN105577772A
CN105577772A CN201510953967.6A CN201510953967A CN105577772A CN 105577772 A CN105577772 A CN 105577772A CN 201510953967 A CN201510953967 A CN 201510953967A CN 105577772 A CN105577772 A CN 105577772A
Authority
CN
China
Prior art keywords
request
user terminal
background server
pond
upload
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
CN201510953967.6A
Other languages
Chinese (zh)
Other versions
CN105577772B (en
Inventor
黄绍茂
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201510953967.6A priority Critical patent/CN105577772B/en
Publication of CN105577772A publication Critical patent/CN105577772A/en
Application granted granted Critical
Publication of CN105577772B publication Critical patent/CN105577772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a material receiving method, a material uploading method and device, and belongs to the internet field. The material receiving method comprises the steps of: receiving an uploading request sent by a user terminal; detecting whether the number of uploading requests in a request pool reaches a preset number threshold; if the number of the uploading requests in the request pool does not reach the preset number threshold, adding the uploading request to the request pool; sending an uploading instruction to the user terminal; and receiving materials uploaded by the user terminal. The material receiving method solves the problem that under a high concurrent condition, long connection between a large number of user terminals and a background server occupies a large number of server resources, thereby leading to an excessive processing pressure of the background server; in addition, under the high concurrent condition, peak clipping is carried out on the uploading request of the large number of user terminals, so that direct big data transmission between the large number of user terminals and the background server is prevented, and the processing pressure of the background server is reduced on the premise that the performance of the background server is fully developed.

Description

Material method of reseptance, material method for uploading and device
Technical field
The embodiment of the present invention relates to internet arena, particularly a kind of material method of reseptance, material method for uploading and device.
Background technology
Nowadays, there is increasing Above-the-line project in social class application.After user participates in these Above-the-line projects, by participation gain sharing in circle of friends, the friend in circle of friends can be attracted together to participate in, thus promotes the interaction between friend.
Such as, be " shine shine your the good fortune of the whole family " for Above-the-line project, after the good fortune of the whole family picture that user uses user terminal uploads to choose, user terminal can send upload request to background server, after background server accepts this upload request, namely and between user terminal connect, and receive the good fortune of the whole family picture of user terminal transmission by this connection.Background server generates the displayed page comprising this good fortune of the whole family picture according to the good fortune of the whole family picture received, and the link of displayed page is returned to user terminal, shares for user.After this link is shared circle of friends by user, other user in this circle of friends can check displayed page and the good fortune of the whole family picture uploading oneself by clicking this link, thus participates in this Above-the-line project.
In the process realizing the embodiment of the present invention, inventor finds that above-mentioned technology at least exists following problem: when the data volume of the material of user terminal uploads is larger, and the length between user terminal with background server can be caused to be connected.When height is concurrent, a large amount of long connections can take a large amount of server resources, causes the processing pressure of background server excessive.
Summary of the invention
In order to solve when height is concurrent, a large amount of long connections can take a large amount of server resources, causes the problem that the processing pressure of background server is excessive, embodiments provides a kind of material method of reseptance, material method for uploading and device.Described technical scheme is as follows:
According to the first aspect of the embodiment of the present invention, provide a kind of material method of reseptance, for background server, this material method of reseptance comprises:
Receive the upload request that user terminal sends;
Whether the quantity detecting upload request in request pond reaches predetermined number threshold value;
If the quantity of upload request does not reach predetermined number threshold value in request pond, then upload request is added in request pond;
Send uploading instructions to user terminal, uploading instructions is used to indicate user terminal uploads material;
Receive the material of user terminal uploads.
According to the second aspect of the embodiment of the present invention, provide a kind of material method for uploading, for user terminal, this material method for uploading comprises:
Upload request is sent to background server;
Receive the uploading instructions that background server sends, uploading instructions is background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after upload request being added to request pond;
Material is uploaded to background server.
According to the third aspect of the embodiment of the present invention, provide a kind of material receiving system, this material receiving system comprises:
First receiver module, for receiving the upload request that user terminal sends;
Whether first detection module, reach predetermined number threshold value for the quantity detecting upload request in request pond;
Adding module, for when asking the quantity of upload request in pond not reach predetermined number threshold value, upload request being added in request pond;
First sending module, for sending uploading instructions to user terminal, uploading instructions is used to indicate user terminal uploads material;
Second receiver module, for receiving the material of user terminal uploads.
According to the fourth aspect of the embodiment of the present invention, provide a kind of material to upload device, this material is uploaded device and is comprised:
6th sending module, for sending upload request to background server;
4th receiver module, for receiving the uploading instructions that background server sends, uploading instructions is background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after upload request being added to request pond;
Upper transmission module, for uploading material to background server.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By when receiving the upload request that user terminal sends, whether fullly detect request pond, and when ask pond less than upload request added in request pond, further the upload request in request pond is processed; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of the implementation environment that one embodiment of the invention provides;
Fig. 2 is the flow chart of the material method of reseptance that one embodiment of the invention provides;
Fig. 3 is the flow chart of the material method for uploading that one embodiment of the invention provides;
Fig. 4 A is the flow chart of the material method for uploading that one embodiment of the invention provides;
Fig. 4 B is the flow chart that user terminal that material method for uploading that Fig. 4 A provides relates to controls to upload number of times and carry out material compression process;
Fig. 4 C is the flow chart that background server that material method for uploading that Fig. 4 A provides relates to filters expired request process;
Fig. 4 D is the flow chart that user terminal that material method for uploading that Fig. 4 A provides relates to retransmits upload request process;
Fig. 4 E is the flow chart that background server that material method for uploading that Fig. 4 A provides relates to controls to upload number process;
Fig. 4 F is the flow chart of the background server process access request process that material method for uploading that Fig. 4 A provides relates to;
Fig. 5 is the block diagram of the material receiving system that one embodiment of the invention provides;
Fig. 6 is the block diagram of the material receiving system that another embodiment of the present invention provides;
Fig. 7 is the block diagram that material that one embodiment of the invention provides uploads device;
Fig. 8 is the block diagram that material that another embodiment of the present invention provides uploads device.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Please refer to Fig. 1, it illustrates the schematic diagram of the implementation environment that one embodiment of the invention provides.This implementation environment comprises: at least one user terminal 110 and background server 120.
User terminal 110 is the electronic equipments with the Internet access function, this electronic equipment can be smart mobile phone, panel computer, E-book reader, MP3 player (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert compression standard audio frequency aspect 3), MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert compression standard audio frequency aspect 4) player, pocket computer on knee and desktop computer etc.
Be connected by wired or wireless network between user terminal 110 with background server 20.
Background server 120 can be a station server, or the server cluster be made up of some station servers, or a cloud computing service center.Such as, when the server cluster that background server 120 is made up of some station servers, front end Nginx server and rear end Apache Server in this server cluster, can be comprised.
In a kind of possible execution mode, run in user terminal 110 and have social class applications client, such as, this social class applications client can be micro-letter client or the QQ client of Chinese Tengxun Company.This background server 120 is background server corresponding to social class applications client.
Background server 120 is for campaign item on social class applications client hump lead, and when user participates in Above-the-line project by social class applications client, receive the material that user terminal 110 is uploaded by social class applications client, the displaying works and the link of displaying works that generate according to material are returned to user terminal, wherein, this material can be picture materials, audio material or video material etc.Further, user terminal 110 can will show that the user's multidate information display platform provided to social class applications client is shared in works link, and relevant other user terminals 110 of sacrificial vessel are clicked and checked.Wherein, user's multidate information display platform that social class applications client provides can be the circle of friends in micro-letter client or the QQ space in QQ client etc., this incidence relation can be friend relation, mutually concern relation or unidirectional concern relation etc., and the embodiment of the present invention does not limit this.
For convenience of description, in each embodiment of the present invention, be only run to have the terminal of social class applications client, background server 120 be the server cluster that some servers form to be that example schematically illustrates, not form restriction to the present invention with user terminal 110.
Please refer to Fig. 2, it illustrates the flow chart of the material method of reseptance that one embodiment of the invention provides.The present embodiment is applied to the background server 120 shown in Fig. 1 with this material method of reseptance and illustrates.The method comprises:
Step 201, receives the upload request that user terminal sends.
This upload request, after user chooses material to be uploaded, is sent by user terminal.
Step 203, whether the quantity detecting upload request in request pond reaches predetermined number threshold value.
Request pond is for storing accepted upload request, and this request pond can adopt the forms such as queue, array, matrix, and the embodiment of the present invention does not limit the concrete manifestation form in this request pond.
Step 205, if the quantity of upload request does not reach predetermined number threshold value in request pond, then adds to upload request in request pond.
Step 207, send uploading instructions to user terminal, this uploading instructions is used to indicate user terminal uploads material.
Wherein, this material can be picture materials, audio material or video material etc.
Step 209, receives the material of user terminal uploads.
In sum, whether full the material method of reseptance that the present embodiment provides, by when receiving the upload request that user terminal sends, detect request pond, and when ask pond less than upload request added in request pond, further the upload request in request pond is processed; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
Please refer to Fig. 3, it illustrates the flow chart of the material method for uploading that one embodiment of the invention provides.The present embodiment is applied to the user terminal 110 shown in Fig. 1 with this material method for uploading and illustrates.The method comprises:
Step 301, sends upload request to background server.
Step 303, receives the uploading instructions that background server sends, and uploading instructions is background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after upload request being added to request pond.
Step 305, uploads material to background server.
In sum, the material method for uploading that the present embodiment provides, after sending upload request by user terminal to background server, whether background server detects request pond full, and when ask pond less than upload request added in request pond, further indicating user terminal uploads material; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
Please refer to Fig. 4 A, it illustrates the flow chart of the material method for uploading that one embodiment of the invention provides.The present embodiment is applied to implementation environment shown in Fig. 1 to illustrate with this material method for uploading.The method comprises:
Step 401, when receiving the up-delivering signal that user triggers, user terminal reads in scheduled duration the number of times completing material and upload.
Background server is in advance to campaign item on social class applications client hump lead, when user terminal runs social class applications client and receives the clicking operation of user to this Above-the-line project, namely corresponding to Above-the-line project in the display interface page of social class applications client shows.It should be noted that, in order to promote the viewing experience of user, the page that background server can be corresponding to Above-the-line project is in advance optimized process, thus accelerates the loading velocity of this page in social class applications client display interface.Such as, with this page for HTML5 (HyperTextMarkupLanguage5, HTML the 5th edition) page is example, background server can carry out compression process to JS and CSS in this HTML5 page in advance, and adjust the loading sequence of JS and CSS in the HTML5 page, load JS after making social class applications client first load CSS when loading the HTML5 page; In addition, for the background music in the HTML5 page, the mode of Asynchronous loading also can be adopted to load, thus preferentially guarantee the complete loading of DOM in the HTML5 page (DocumentObjectModel, DOM Document Object Model).
When this Above-the-line project demand user uploads material (picture materials, audio material or video material etc.), namely user can be uploaded by the corresponding material of user terminal selecting.In order to avoid user's malice is uploaded, user terminal is after the up-delivering signal receiving user's triggering, can read user terminal in scheduled duration and complete the number of times that material uploads from cookie, such as, user terminal can obtain active user in a day and upload the number of times of material from cookie.
Step 402, if user terminal completes the number of times that material uploads in scheduled duration do not reach the second frequency threshold value, then user terminal selects the material uploaded to compress to user.
The number of times got from cookie and the second default frequency threshold value compare by user terminal, and when this number of times is less than the second frequency threshold value, namely user terminal determines that active user does not maliciously upload.
When the data volume of the material uploaded is excessive, user terminal uploads material to background server can cause long connection, and a large amount of long connections can take the ample resources of background server, has a strong impact on the parallel processing efficiency of background server.Therefore, in order to the length reduced between user terminal with background server is connected, user terminal needs to select the material uploaded to carry out compression process to user in advance.
Such as, when the HTML5 page shown during user terminal is by social class applications client display interface uploads material, the HTML5 page can select the material uploaded to carry out compression process to user by canvas.
Step 403, if the data volume of material is less than predetermined threshold value after compression, then user terminal sends upload request to background server.
If the data volume of material is less than predetermined threshold value after compression, namely user terminal sends upload request to background server, the material of this upload request for asking background server to receive user terminal uploads.
Step 404, background server receives the upload request that user terminal sends.
Accordingly, background server receives this upload request.It should be noted that, because this background server can be the server that in user terminal, social class applications client is corresponding, therefore, background server may receive the upload request from different user terminals at synchronization.
Step 405, whether the quantity that background server detects upload request in request pond reaches predetermined number threshold value.
In order to avoid under high complications, the upload request that background server needs process a large number of users terminal directly to send, causing the problem that server process pressure is excessive, setting up the request pond for holding upload request in background server in advance.Background server only processes the upload request in this request pond, and when upload request is disposed, removes the upload request be disposed, and new upload request is added in request pond.
This request pond can adopt the ways of realization such as queue, array, matrix, and the embodiment of the present invention does not limit the specific implementation form in this request pond.Such as, this request pond can adopt the form of hash queue, holds the upload request received.
The terminal iidentification of user terminal and the request receiving time of this upload request that send upload request is stored in this background server, in a schematic example, the terminal iidentification that in this request pond, upload request is corresponding and request receiving time can be as shown in Table 1.
Table one
Upload request Terminal iidentification The request receiving time
001 ID001 2015/12/10 19:06:20
002 ID002 2015/12/10 19:07:21
003 ID003 2015/12/10 19:07:22
004 ID004 2015/12/10 19:07:25
Background server often receives a upload request, and whether the quantity just detecting upload request in request pond reaches predetermined number threshold value.Such as, this request pond adopts the form of hash queue to hold upload request, and background server often receives a upload request, and whether the length (i.e. the quantity of upload request) just detecting request queue reaches 130.It should be noted that, this predetermined number threshold value is arranged according to the handling property of background server, and ensures that the handling property of background server accesses and make full use of.
Step 406, if the quantity of upload request does not reach predetermined number threshold value in request pond, this upload request is then added in request pond by background server.
When detecting that the quantity of upload request in request pond is less than predetermined number threshold value, represent that the handling property of background server is also fully used, the upload request that background server is about to receive is added in request pond.
Step 407, background server adds latching operation to the user terminal sending upload request.
Due to the misoperation of user or the reason such as network fluctuation between user terminal and background server, same user terminal may send repeatedly upload request to background server within a short period of time.If background server all processes these upload request, the waste of background server process resource will be caused, therefore, background server adds latching operation to the user terminal sending this upload request after the upload request that user terminal sends being added to request pond.
After adding latching operation, within a predetermined period of time, the follow-up upload request that this user terminal sends no longer is added in request pond by background server.Such as, user terminal A after the upload request that 19:07:20 sends adds request pond to, is added latching operation to user terminal A by background server, and before 19:09:20, no longer receive the upload request of user terminal A transmission.
Step 408, background server sends uploading instructions to user terminal, carries the request pond mark in request pond, upload request place in this uploading instructions.
In order to avoid certain customers' terminal walks around the step sending upload request, and upload material directly to background server, after upload request is added to request pond by background server, obtain the request pond mark in this request pond, upload request place, and this request pond mark is added to and sent in the uploading instructions of user terminal.
Step 409, user terminal receives the uploading instructions that background server sends.
Accordingly, user terminal receives this uploading instructions, and obtains the request pond mark of carrying in this uploading instructions.
Step 410, material and request pond mark are together uploaded to background server by user terminal.
After user terminal receives this uploading instructions, the material chosen is uploaded in the connection namely by setting up between server, the request pond of acquisition mark is together sent to background server simultaneously.
Step 411, background server receives material and the request pond mark of user terminal uploads.
Accordingly, background server receives material and the request pond mark of user terminal uploads.
Step 412, background server, according to the terminal iidentification of asking pond mark and user terminal, determines whether there is the upload request corresponding with this user terminal in request pond.
Background server obtains the request pond of together uploading with material and identify and the terminal iidentification of this user terminal, and determines to ask whether there is the upload request corresponding with this user terminal in pond according to this request pond mark and terminal iidentification.
Such as, background server according to this request pond identifier lookup to terminal iidentification corresponding to upload request and request receiving time as shown in Table 1, and the terminal iidentification of user terminal is ID002, background server can determine that the upload request that this user terminal sends exists in request pond.
If upload request exists in request pond, then perform step 413; If upload request does not exist in request pond, then determine that user terminal adopts back door to upload material, and reject this material.
Step 413, if there is the upload request corresponding with this user terminal in request pond, background server then receives this material.
Step 414, when completing the reception of material, upload request removes by background server from request pond.
In order to ensure that the upload request that other user terminals send can enter request pond, and processed in time, after background server completes material reception, the upload request sent by this user terminal removes from request pond.
Step 415, background server generates according to the material received shows works.
Background server can also process the material received, and is shown works accordingly, and returns to user terminal.
As a kind of possible execution mode, when this material is picture materials, background server can be cut out this picture materials, and adds in default template, thus generates displaying works.
Step 416, background server sends the link shown works and comprise the works page showing works to user terminal.
In order to attract more user to participate in this Above-the-line project, the link of the works page comprising these displaying works together can also be sent to user terminal, share for user terminal while sending displaying works to user terminal by background server.
Step 417, user terminal receives the displaying works that background server sends and the link comprising the works page showing works.
Accordingly, user terminal receives these displaying works and comprises the link of the works page showing works
Step 418, link is distributed in user's multidate information display platform by user terminal, user's multidate information display platform comprises the associated terminal that at least one and user terminal have friend relation or pay close attention to user terminal, and associated terminal is used for comprising by links and accesses the works page showing works.
After this link is distributed to user's multidate information display platform by user terminal, associated terminal can view this link from user's multidate information display platform, and further, associated terminal can comprise by this links and accesses the works page showing works.
Such as, for user's multidate information display platform for circle of friends, with this user terminal each other good friend's terminal of good friend can view this in circle of friends and link, and this links and accesses can be clicked comprise the works page showing works.
It should be noted that, in order to avoid associated terminal access this link time, background server needs to search the information such as head portrait, the pet name of user terminal from database and returns to associated terminal and show, user terminal is when sharing this link, the information such as head portrait corresponding to user terminal and the pet name can be read from cookie, and link with this and together share.When associated terminal accesses this link, can directly obtain head portrait and the pet name, no longer need from background server acquisition request head portrait and the pet name, thus alleviate the processing pressure of background server.
In sum, whether full the material method of reseptance that the present embodiment provides, by when receiving the upload request that user terminal sends, detect request pond, and when ask pond less than upload request added in request pond, further the upload request in request pond is processed; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
In the present embodiment, user terminal, before transmission upload request, obtains from cookie and uploads number of times, and when uploading number of times and being less than threshold value, sends upload request to background server, avoids user terminal malice and uploads the impact caused background server.
In the present embodiment, user terminal carries out compression process to material to be uploaded in advance, avoids to the excessive material of server uploading data amount, alleviates background server processing pressure further.
In the present embodiment, background server adds latching operation to the user terminal sending this upload request, thus avoids because of reasons such as network fluctuations after upload request being added to request pond, cause sending in the user terminal short time repeating upload request, the problem of waste background server process resource.
In the present embodiment, after upload request is added to request pond by background server, the uploading instructions carrying request pond mark is sent to user terminal; When receiving the material of user terminal uploads, request pond according to together sending with material identifies, determine whether the upload request that this user terminal sends exists in request pond, and receive when this upload request exists in request pond the material uploaded, avoid certain customers' terminal and walk around the step sending upload request, and the problem of material is uploaded directly to background server, ensure that the stable operation of background server.
As a kind of possible execution mode, as shown in Figure 4 B, above-mentioned steps 401 to step 403 can be replaced by step 419 to step 423.
Step 419, when receiving the up-delivering signal that user triggers, user terminal reads in scheduled duration the number of times completing material and upload.
The execution mode of this step is similar to above-mentioned steps 401, and the present embodiment does not repeat them here.
Step 420, if user terminal completes the number of times that material uploads in scheduled duration reach the second frequency threshold value, user terminal then shows to be uploaded the upper limit and reminds.
Such as, when get user terminal completed in 1 hour number of times that material uploads reach 5 times time, user terminal then shows to be uploaded the upper limit and reminds, and it is too much that reminding user uploaded number of times in 1 hour; Again such as, complete the number of times that material uploads reach 20 when getting user terminal in 1 day, user terminal then shows to be uploaded the upper limit and reminds, and reminding user is uploaded number of times and use up today.
If step 421 user terminal completes the number of times that material uploads in scheduled duration do not reach the second frequency threshold value, user terminal then selects the material uploaded to compress to user.
The execution mode of this step is similar to above-mentioned steps 402, and the present embodiment does not repeat them here.
Step 422, if the data volume of material is greater than predetermined threshold value after compression, user terminal then shows and reselects prompting.
Such as, when the material uploaded is picture, and when after compression, the size of picture is greater than 250Kb, user terminal then shows and reselects prompting, and the picture that reminding user is uploaded is excessive.
Step 423, if the data volume of material is less than predetermined threshold value after compression, user terminal then sends upload request to background server.
The execution mode of this step is similar to above-mentioned steps 403, and the present embodiment does not repeat them here.
After the upload request that certain customers' terminal sends enters request pond, due to reasons such as network fluctuations, user terminal possibly cannot upload material to background server, causes these upload request to be kept in request pond always, affects entering of other upload request.In order to avoid the generation of this situation, as shown in Figure 4 C, after above-mentioned steps 405, can also comprise the steps.
Step 424, if the quantity of upload request reaches predetermined number threshold value in request pond, background server then obtains the request receiving moment of each upload request in request pond.
As shown in Table 1, preserve the request receiving moment that in request pond, each upload request is corresponding in background server, when asking the quantity of upload request in pond to reach predetermined number threshold value, namely server obtains the request receiving moment of each upload request in request pond.
Step 425, background server is according to request receiving moment and current time interval computing time.
Further, after background server obtains this request receiving moment, calculate the time interval between this request receiving moment and current time.Such as, the request receiving time that background server gets upload request 001 is 2015/12/1019:06:20, and current time is 2015/12/1019:07:35, and calculating the time interval is 75 seconds.
Step 426, the upload request interval greater than preset time threshold is defined as expired request by background server.
For the upload request that the time interval is excessive, background server can think that the user terminal sending this upload request cannot complete material and upload, and this upload request is defined as expired request.
Such as, the time interval that background server calculates upload request 001 correspondence is 75 seconds, and be greater than preset time threshold 60 seconds, background server is defined as expired request by upload request 001.
Step 427, if there is expired request in request pond, background server then filters expired request, and this upload request is added in request pond.
If there is expired request in this request pond, namely background server filters expired request, thus the space in releasing request pond, and real-time upload request is added in request pond.
It should be noted that, background server also can scan the upload request in request pond every predetermined time interval, and expired request is filtered, and the embodiment of the present invention does not form restriction to this.
Step 428, if there is not expired request in request pond, background server then sends request reissue commands to user terminal, and request repeat instruction is used to indicate user terminal and resends upload request after scheduled duration.
When asking there is not expired request in pond, after background server needs process the upload request in request pond, space in ability releasing request pond, therefore, background server can send request reissue commands to user terminal, and indicating user terminal resends upload request after scheduled duration.Such as, this scheduled duration can be 1s or 2s.
Accordingly, as shown in Figure 4 D, after background server executes above-mentioned steps 424 to step 428, user terminal can also perform following steps.
Step 429, user terminal receive background server send request repeat instruction, request repeat instruction be background server upload request is not added to request pond time send.
Step 430, detects the number of times receiving request repeat instruction and whether is greater than the first frequency threshold value.
Whether user terminal is previously provided with upload request and retransmits the upper limit, when user terminal receives the request repeat instruction that background server sends at every turn, all can detect the number of times receiving request repeat instruction and be greater than and upload the first frequency threshold value.Such as, when this first frequency threshold value is 2, represent that user terminal retransmits at most a upload request.
Step 431, if the number of times receiving request repeat instruction is greater than the first frequency threshold value, user terminal then shows request failure information.
If the number of times receiving request repeat instruction is greater than the first frequency threshold value, namely user terminal shows corresponding display request failure information, and prompting user background server is current just busy, re-starts and upload after waiting a moment.
Step 432, if the number of times receiving request repeat instruction is less than the first frequency threshold value, user terminal is then resending upload request after scheduled duration.
If the number of times receiving request repeat instruction is less than the first frequency threshold value, user terminal is then automatically resending upload request after scheduled duration, eliminates the operation that user manually retransmits.
It should be noted that, because user terminal only just can show request failure information when the number of times receiving request repeat instruction is greater than the first frequency threshold value, and the repeating transmission of upload request is automatically carried out when the number of times receiving request repeat instruction is less than the first frequency threshold value, can't impact Consumer's Experience.
In the present embodiment, when in request pond, the quantity of upload request reaches predetermined number threshold value, namely background server filters the expired request in request pond, thus releasing request pool space; When reaching predetermined number threshold value when asking the quantity of upload request in pond and there is not expired request in request pond, namely background server sends request reissue commands to user terminal, indicating user terminal is through automatically retransmitting upload request after a period of time, under the prerequisite making full use of background server handling property, ensure that the promptness of process upload request, promote Consumer's Experience further.
In above-mentioned steps 401, user terminal reads in scheduled duration the number of times completing material and upload from cookie, and determine that active user uploads number of times and whether reaches the upper limit according to this number of times, but the cookie in user terminal can be revised by user, cause the number of times that reads from cookie may be inaccurate, affect the judgement that user uploads the number of times upper limit.In order to avoid when certain customers' terminal maliciously is uploaded by amendment cookie, as shown in Figure 4 E, after above-mentioned steps 404, can also comprise the steps.
Step 433, background server, according to the terminal iidentification carried in upload request, is searched user terminal in scheduled duration, is completed the number of times that material uploads.
The terminal iidentification of user terminal is carried in the upload request that user terminal sends, and record each user terminal in background server in scheduled duration, complete the number of times that material uploads, when background server receives the upload request that the user terminal uploaded sends at every turn, search user terminal in scheduled duration, complete the number of times that material uploads.Such as, background server can find the number of times that user terminal uploaded material in a day.
Step 434, if user terminal completes the number of times that material uploads in scheduled duration reach preset times threshold value, background server then sends to user terminal and uploads the upper limit and remind.
Such as, when get user terminal completed in 1 hour number of times that material uploads reach 5 times time, background server sends to user terminal and uploads the upper limit and remind, and carrying out reminding user, to upload number of times in 1 hour too much; Again such as, complete the number of times that material uploads reach 20 when getting user terminal in 1 day, background server sends to user terminal and uploads the upper limit and remind, and reminding user is uploaded number of times and use up today.
Step 435, if user terminal completes the number of times that material uploads in scheduled duration do not reach preset times threshold value, then performs step 405.
If user terminal completes the number of times that material uploads in scheduled duration do not reach preset times threshold value, namely background server performs above-mentioned steps 405, and whether the quantity detecting upload request in request pond reaches predetermined number threshold value.
In the present embodiment, after background server receives the upload request of terminal transmission, search user terminal in scheduled duration, complete the number of times that material uploads, and determine whether to reach according to this number of times and upload the upper limit, thus cookie is next maliciously to be uploaded by revising to avoid certain customers' terminal, affects the problem that background server normally works.
After above-mentioned steps 418, associated terminal can comprise the works page of these displaying works by the user terminal links and accesses be distributed in user's multidate information display platform.Background server also has review mechanism simultaneously, and for not by the displaying works of examination & verification, when associated terminal request access comprises the works page of these displaying works, background server will return corresponding not by examination & verification prompting; For the displaying works by examination & verification, when associated terminal request access comprises the works page of these displaying works, background server will return the works page comprising these displaying works.In a kind of possible execution mode, as illustrated in figure 4f, after above-mentioned steps 418, can also comprise the steps.
Step 436, background server receives the access request that associated terminal sends.
When associate device receives the click signal linked in user to user multidate information display platform, namely associated server sends access request to background server, and accordingly, background server receives the access request that associated terminal sends.
Step 437, whether the works ID carried in the request of background server test access is stored in default memory block.
Carry the works ID showing works in the access request that background server receives, namely background server detects to preset in memory block whether store these works ID according to these works ID.Do not store these works ID if preset in memory block, namely determine that the displaying works that associated terminal needs to browse pass through examination & verification, and return the works page comprising these displaying works to associated terminal; Store these works ID if preset in memory block, namely determine that the displaying works that associated terminal needs to browse do not pass through examination & verification, and perform following step 438.
Step 438, if works ID is stored in default memory block, background server then sends to associated terminal and does not audit the information of passing through.
When associated terminal needs the displaying works browsed not pass through examination & verification, namely background server sends to associated terminal and does not audit the information of passing through, accordingly, associated terminal shows this and does not audit by mark in the displaying works region of works page, show works not by examination & verification with reminding user.
As a kind of possible execution mode, background server comprises front end Ngnix server and rear end Apache Server, and Ngnix server is used for providing works page to associated terminal, Apache Server is used for not to be stored in (distributed cache system) in memcache by the works ID of the displaying works of examination & verification.When associated terminal receives the clicking operation that user links works page, namely send access request to this Ngnix server, Ngnix server returns corresponding works page according to this access request to associated terminal.Meanwhile, Ngnix server sends the works ID carried in access request to Apache Server, detect these works ID by Apache Server whether to be stored in memcache, if these works ID is stored in memcache, namely Apache Server is not audited by information by Ngnix server to associated terminal transmission, and instruction associated terminal shows this not to be audited by mark in the displaying works region of works page.
In the present embodiment, the works ID not by the displaying works of examination & verification stores in the caches by background server, when the works page of accessing associated terminal carries out the detection of conjunction rule, can significantly improve the speed of closing rule and detecting, thus promote the experience of user.
Following is apparatus of the present invention embodiment, for the details of description not detailed in device embodiment, and can with reference to above-mentioned embodiment of the method one to one.
Please refer to Fig. 5, it illustrates the block diagram of the material receiving system that one embodiment of the invention provides.This material receiving system realizes becoming the whole or a part of of background server 120 in Fig. 1 by software, hardware or both combinations.This material receiving system comprises:
First receiver module 501, for receiving the upload request that user terminal sends;
Whether first detection module 502, reach predetermined number threshold value for the quantity detecting upload request in request pond;
Add module 503, when the quantity for upload request in described request pond does not reach described predetermined number threshold value, described upload request is added in described request pond;
First sending module 504, for sending uploading instructions to described user terminal, described uploading instructions is used to indicate described user terminal uploads material;
Second receiver module 505, for receiving the described material of described user terminal uploads.
In sum, whether full the material receiving system that the present embodiment provides, by when receiving the upload request that user terminal sends, detect request pond, and when ask pond less than upload request added in request pond, further the upload request in request pond is processed; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
Please refer to Fig. 6, it illustrates the block diagram of the material receiving system that another embodiment of the present invention provides.This material receiving system realizes becoming the whole or a part of of background server 120 in Fig. 1 by software, hardware or both combinations.This material receiving system comprises:
First receiver module 601, for receiving the upload request that user terminal sends;
Whether first detection module 602, reach predetermined number threshold value for the quantity detecting upload request in request pond;
Add module 603, when the quantity for upload request in described request pond does not reach described predetermined number threshold value, described upload request is added in described request pond;
First sending module 604, for sending uploading instructions to described user terminal, described uploading instructions is used to indicate described user terminal uploads material;
Second receiver module 605, for receiving the described material of described user terminal uploads.
Alternatively, in uploading instructions, carry the request pond mark in request pond, described upload request place, while material described in described user terminal uploads, send described request pond mark to described background server;
Described second receiver module 605, comprising:
Determining unit 605a, for the terminal iidentification according to described request pond mark and described user terminal, determines whether there is the upload request corresponding with described user terminal in described request pond;
Receiving element 605b, if for there is the upload request corresponding with described user terminal in described request pond, then receive described material;
Removing unit 605c, for when completing the reception of described material, described upload request being removed from described request pond.
Alternatively, this device, also comprises:
Acquisition module 606, when the quantity for upload request in described request pond reaches described predetermined number threshold value, obtains the request receiving moment of each upload request in described request pond;
Computing module 607, for according to the described request time of reception and current time interval computing time;
Determination module 608, for being defined as expired request by the described upload request interval greater than preset time threshold;
Filtering module 609, during for there is described expired request in described request pond, filters described expired request;
Second sending module 610, during for there is not described expired request in described request pond, send request reissue commands to described user terminal, described request reissue commands is used to indicate described user terminal after scheduled duration, resends described upload request.
Alternatively, this device, also comprises:
Add lock module 611, for adding latching operation to sending the described user terminal of described upload request, described in add latching operation and refer to no longer the follow-up upload request that described user terminal sends be added within a predetermined period of time in request pond.
Alternatively, in upload request, carry the terminal iidentification of described user terminal, and record each user terminal in described background server in scheduled duration, complete the number of times that material uploads,
Described device, also comprises:
Search module 612, for according to the described terminal iidentification carried in described upload request, search described user terminal in described scheduled duration, complete the number of times that material uploads;
3rd sending module 613, when the number of times uploaded reaches preset times threshold value, sends to described user terminal and uploads upper limit prompting for completing material in described scheduled duration at described user terminal;
Described first detection module 602, when the number of times also uploaded for completing material in described scheduled duration at described user terminal does not reach described preset times threshold value, whether the quantity detecting upload request in request pond reaches predetermined number threshold value.
Alternatively, this device, also comprises:
Generation module 614, shows works for generating according to the described material received;
4th sending module 615, for sending described displaying works to described user terminal and comprising the link of works page of described displaying works, described user terminal is used for described link to be distributed in user's multidate information display platform, described user's multidate information display platform comprises at least one and described user terminal has friend relation or pays close attention to the associated terminal of described user terminal, and described associated terminal is used for the works page being comprised described displaying works by described links and accesses.
Alternatively, in background server, store the works identify label ID of described displaying works, and be not stored in default memory block by the works ID of the displaying works of examination & verification,
Described device, also comprises:
3rd receiver module 616, for receiving the access request that described associated terminal sends;
Whether the second detection module 617, be stored in described default memory block for detecting the works ID carried in described access request;
5th sending module 618, for when described works ID is stored in described default memory block, sends to described associated terminal and does not audit the information of passing through.
In sum, whether full the material receiving system that the present embodiment provides, by when receiving the upload request that user terminal sends, detect request pond, and when ask pond less than upload request added in request pond, further the upload request in request pond is processed; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
In the present embodiment, background server adds latching operation to the user terminal sending this upload request, thus avoids because of reasons such as network fluctuations after upload request being added to request pond, cause sending in the user terminal short time repeating upload request, the problem of waste background server process resource.
In the present embodiment, after upload request is added to request pond by background server, the uploading instructions carrying request pond mark is sent to user terminal; When receiving the material of user terminal uploads, request pond according to together sending with material identifies, determine whether the upload request that this user terminal sends exists in request pond, and receive when this upload request exists in request pond the material uploaded, avoid certain customers' terminal and walk around the step sending upload request, and the problem of material is uploaded directly to background server, ensure that the stable operation of background server.
In the present embodiment, when in request pond, the quantity of upload request reaches predetermined number threshold value, namely background server filters the expired request in request pond, thus releasing request pool space; When reaching predetermined number threshold value when asking the quantity of upload request in pond and there is not expired request in request pond, namely background server sends request reissue commands to user terminal, indicating user terminal is through automatically retransmitting upload request after a period of time, under the prerequisite making full use of background server handling property, ensure that the promptness of process upload request, promote Consumer's Experience further.
In the present embodiment, after background server receives the upload request of terminal transmission, search user terminal in scheduled duration, complete the number of times that material uploads, and determine whether to reach according to this number of times and upload the upper limit, thus cookie is next maliciously to be uploaded by revising to avoid certain customers' terminal, affects the problem that background server normally works.
In the present embodiment, the works ID not by the displaying works of examination & verification stores in the caches by background server, when the works page of accessing associated terminal carries out the detection of conjunction rule, can significantly improve the speed of closing rule and detecting, thus promote the experience of user.
Please refer to Fig. 7, the material that it illustrates one embodiment of the invention provides uploads the block diagram of device.This material is uploaded device and is realized becoming the whole or a part of of user terminal 110 in Fig. 1 by software, hardware or both combinations.This material is uploaded device and is comprised:
6th sending module 701, for sending upload request to background server;
4th receiver module 702, for receiving the uploading instructions that described background server sends, described uploading instructions is described background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after adding described upload request to described request pond;
Upper transmission module 703, for uploading material to described background server.
In sum, the material that the present embodiment provides uploads device, and after sending upload request by user terminal to background server, whether background server detects request pond full, and when ask pond less than upload request added in request pond, further indicating user terminal uploads material; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
Please refer to Fig. 8, the material that it illustrates another embodiment of the present invention provides uploads the block diagram of device.This material is uploaded device and is realized becoming the whole or a part of of user terminal 110 in Fig. 1 by software, hardware or both combinations.This material is uploaded device and is comprised:
6th sending module 801, for sending upload request to background server;
4th receiver module 802, for receiving the uploading instructions that described background server sends, described uploading instructions is described background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after adding described upload request to described request pond;
Upper transmission module 803, for uploading material to described background server.
Alternatively, the request pond mark in request pond, described upload request place is carried in uploading instructions, described upper transmission module 803, also for described material and described request pond mark are together uploaded to described background server, described background server is used for the terminal iidentification according to described request pond mark and described user terminal, determine whether there is the upload request corresponding with described user terminal in described request pond, and receive described material when there is the upload request corresponding with described user terminal in described request pond.
Alternatively, this device, also comprises:
5th receiver module 804, for receiving the request repeat instruction that described background server sends, described request reissue commands is that described background server sends when not adding described upload request to described request pond;
Whether the 3rd detection module 805, be greater than the first frequency threshold value for detecting the number of times receiving described request reissue commands;
First display module 806, during for being greater than described first frequency threshold value at the number of times receiving described request reissue commands, display request failure information;
7th sending module 807, during for being less than described first frequency threshold value at the number of times receiving described request reissue commands, is resending described upload request after scheduled duration.
Alternatively, this device, comprising:
Read module 808, for when receiving the up-delivering signal that user triggers, reading described user terminal in scheduled duration, completing the number of times that material uploads;
Described 6th sending module 801, when the number of times also uploaded for completing material in described scheduled duration at described user terminal does not reach the second frequency threshold value, performs the described step sending upload request to background server;
Second display module 809, when the number of times uploaded for completing material in described scheduled duration at described user terminal reaches described second frequency threshold value, display is uploaded the upper limit and is reminded.
Alternatively, this device, also comprises:
Compression module 810, for when receiving the up-delivering signal that user triggers, selects the material uploaded to compress to user;
3rd display module 811, when the data volume for described material is upon compression greater than predetermined threshold value, display reselects prompting.
Alternatively, this device, also comprises:
6th receiver module 812, for receiving the displaying works that described background server sends and the link of works page comprising described displaying works, described displaying works are that described background server generates according to the material of described user terminal uploads;
Release module 813, for described link being distributed in user's multidate information display platform, described user's multidate information display platform comprises at least one and described user terminal has friend relation or pays close attention to the associated terminal of described user terminal, and described associated terminal is used for the works page being comprised described displaying works by described links and accesses.
In sum, the material that the present embodiment provides uploads device, and after sending upload request by user terminal to background server, whether background server detects request pond full, and when ask pond less than upload request added in request pond, further indicating user terminal uploads material; Solve when height is concurrent, a large number of users terminal takies a large amount of server resources with long connection the between background server, causes the problem that the processing pressure of background server is excessive; Reach when height is concurrent, peak clipping process is carried out to the upload request of a large number of users terminal, thus avoid a large number of users terminal and background server directly carries out large transfer of data, under the prerequisite giving full play to background server performance, reduce the processing pressure of background server.
In the present embodiment, user terminal, before transmission upload request, obtains from cookie and uploads number of times, and when uploading number of times and being less than threshold value, sends upload request to background server, avoids user terminal malice and uploads the impact caused background server.
In the present embodiment, user terminal carries out compression process to material to be uploaded in advance, avoids to the excessive material of server uploading data amount, alleviates background server processing pressure further.
It should be noted that: the material that above-described embodiment provides receives and material uploads device, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by background server and user terminal is divided into different functional modules, to complete all or part of function described above.In addition, the material receiving system that above-described embodiment provides and material method of reseptance embodiment belong to same design, and material uploads device and material method for uploading embodiment belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Should be understood that, use in this article, unless context clearly supports exception, singulative " " (" a ", " an ", " the ") is intended to also comprise plural form.It is to be further understood that the "and/or" used in this article refers to comprise any of more than one or one project listed explicitly and likely combine.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (26)

1. a material method of reseptance, is characterized in that, for background server, described method comprises:
Receive the upload request that user terminal sends;
Whether the quantity detecting upload request in request pond reaches predetermined number threshold value;
If the quantity of upload request does not reach described predetermined number threshold value in described request pond, then described upload request is added in described request pond;
Send uploading instructions to described user terminal, described uploading instructions is used to indicate described user terminal uploads material;
Receive the described material of described user terminal uploads.
2. method according to claim 1, is characterized in that, carries the request pond mark in request pond, described upload request place in described uploading instructions, while material described in described user terminal uploads, sends described request pond mark to described background server;
The described material of the described user terminal uploads of described reception, comprising:
According to described request pond mark and the terminal iidentification of described user terminal, determine whether there is the upload request corresponding with described user terminal in described request pond;
If there is the upload request corresponding with described user terminal in described request pond, then receive described material;
When completing the reception of described material, described upload request is removed from described request pond.
3. method according to claim 1 and 2, is characterized in that, the described quantity detecting upload request in request pond also comprises after whether reaching predetermined number threshold value:
If the quantity of upload request reaches described predetermined number threshold value in described request pond, then obtain the request receiving moment of each upload request in described request pond;
According to the described request time of reception and current time interval computing time;
The described upload request interval greater than preset time threshold is defined as expired request;
If there is described expired request in described request pond, then described expired request is filtered;
If there is not described expired request in described request pond, then send request reissue commands to described user terminal, described request reissue commands is used to indicate described user terminal after scheduled duration, resends described upload request.
4. method according to claim 1 and 2, is characterized in that, described described upload request is added in described request pond after, also comprise:
Add latching operation to sending the described user terminal of described upload request, described in add latching operation and refer to no longer the follow-up upload request that described user terminal sends be added in described request pond within a predetermined period of time.
5. method according to claim 1 and 2, is characterized in that, carries the terminal iidentification of described user terminal in described upload request, and records each user terminal in described background server in scheduled duration, complete the number of times that material uploads,
After the upload request that described reception user terminal sends, also comprise:
According to the described terminal iidentification carried in described upload request, search described user terminal in described scheduled duration, complete the number of times that material uploads;
If described user terminal completes the number of times that material uploads in described scheduled duration reach preset times threshold value, then send to described user terminal and upload the upper limit and remind;
If described user terminal completes the number of times that material uploads in described scheduled duration do not reach described preset times threshold value, then perform the step whether described quantity detecting upload request in request pond reaches predetermined number threshold value.
6. method according to claim 1 and 2, is characterized in that, after the described material of the described user terminal uploads of described reception, also comprises:
Generate according to the described material received and show works;
Send described displaying works to described user terminal and comprise the link of works page of described displaying works, described user terminal is used for described link to be distributed in user's multidate information display platform, described user's multidate information display platform comprises at least one and described user terminal has friend relation or pays close attention to the associated terminal of described user terminal, and described associated terminal is used for the works page being comprised described displaying works by described links and accesses.
7. method according to claim 6, is characterized in that, stores the works identify label ID of described displaying works in described background server, and is not stored in default memory block by the works ID of the displaying works of examination & verification,
Described to described user terminal send described displaying works and comprise described displaying works the link of works page after, also comprise:
Receive the access request that described associated terminal sends;
Whether detect the works ID carried in described access request is stored in described default memory block;
If described works ID is stored in described default memory block, then sends to described associated terminal and do not audit the information of passing through.
8. a material method for uploading, is characterized in that, for user terminal, described method comprises:
Upload request is sent to background server;
Receive the uploading instructions that described background server sends, described uploading instructions is described background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after adding described upload request to described request pond;
Material is uploaded to described background server.
9. method according to claim 8, is characterized in that, carries the request pond mark in request pond, described upload request place, describedly upload material to described background server, comprising in described uploading instructions:
Described material and described request pond mark are together uploaded to described background server, described background server is used for the terminal iidentification according to described request pond mark and described user terminal, determine whether there is the upload request corresponding with described user terminal in described request pond, and receive described material when there is the upload request corresponding with described user terminal in described request pond.
10. method according to claim 8 or claim 9, is characterized in that, described to after background server sends upload request, also comprises:
Receive the request repeat instruction that described background server sends, described request reissue commands is that described background server sends when not adding described upload request to described request pond;
Detect the number of times receiving described request reissue commands and whether be greater than the first frequency threshold value;
If the number of times receiving described request reissue commands is greater than described first frequency threshold value, then show request failure information;
If the number of times receiving described request reissue commands is less than described first frequency threshold value, then after scheduled duration, resending described upload request.
11. methods according to claim 8 or claim 9, is characterized in that, described send upload request to background server before, comprising:
When receiving the up-delivering signal that user triggers, reading described user terminal in scheduled duration, completing the number of times that material uploads;
If described user terminal completes the number of times that material uploads in described scheduled duration do not reach the second frequency threshold value, then perform the described step sending upload request to background server;
If described user terminal completes the number of times that material uploads in described scheduled duration reach described second frequency threshold value, then display is uploaded the upper limit and is reminded.
12. methods according to claim 8 or claim 9, is characterized in that, described send upload request to background server before, also comprise:
When receiving the up-delivering signal that user triggers, the material uploaded is selected to compress to user;
If the data volume of described material is greater than predetermined threshold value after compression, then display reselects prompting.
13. methods according to claim 8 or claim 9, is characterized in that, described to after described background server uploads material, also comprise:
The link of the displaying works receiving the transmission of described background server and the works page comprising described displaying works, described displaying works are that described background server generates according to the material of described user terminal uploads;
Described link is distributed in user's multidate information display platform, described user's multidate information display platform comprises at least one and described user terminal has friend relation or pays close attention to the associated terminal of described user terminal, and described associated terminal is used for the described works page being comprised described displaying works by described links and accesses.
14. 1 kinds of material receiving systems, is characterized in that, described device comprises:
First receiver module, for receiving the upload request that user terminal sends;
Whether first detection module, reach predetermined number threshold value for the quantity detecting upload request in request pond;
Add module, when the quantity for upload request in described request pond does not reach described predetermined number threshold value, described upload request is added in described request pond;
First sending module, for sending uploading instructions to described user terminal, described uploading instructions is used to indicate described user terminal uploads material;
Second receiver module, for receiving the described material of described user terminal uploads.
15. devices according to claim 14, it is characterized in that, carry the request pond mark in request pond, described upload request place in described uploading instructions, while material described in described user terminal uploads, send described request pond mark to described background server;
Described second receiver module, comprising:
Determining unit, for the terminal iidentification according to described request pond mark and described user terminal, determines whether there is the upload request corresponding with described user terminal in described request pond;
Receiving element, if for there is the upload request corresponding with described user terminal in described request pond, then receive described material;
Removing unit, for when completing the reception of described material, described upload request being removed from described request pond.
16. devices according to claims 14 or 15, it is characterized in that, described device, also comprises:
Acquisition module, when the quantity for upload request in described request pond reaches described predetermined number threshold value, obtains the request receiving moment of each upload request in described request pond;
Computing module, for according to the described request time of reception and current time interval computing time;
Determination module, for being defined as expired request by the described upload request interval greater than preset time threshold;
Filtering module, during for there is described expired request in described request pond, filters described expired request;
Second sending module, during for there is not described expired request in described request pond, send request reissue commands to described user terminal, described request reissue commands is used to indicate described user terminal after scheduled duration, resends described upload request.
17. devices according to claims 14 or 15, it is characterized in that, described device, also comprises:
Add lock module, for adding latching operation to sending the described user terminal of described upload request, described in add latching operation and refer to no longer the follow-up upload request that described user terminal sends be added in described request pond within a predetermined period of time.
18. devices according to claims 14 or 15, is characterized in that, carry the terminal iidentification of described user terminal in described upload request, and record each user terminal in described background server in scheduled duration, complete the number of times that material uploads,
Described device, also comprises:
Search module, for according to the described terminal iidentification carried in described upload request, search described user terminal in described scheduled duration, complete the number of times that material uploads;
3rd sending module, when the number of times uploaded reaches preset times threshold value, sends to described user terminal and uploads upper limit prompting for completing material in described scheduled duration at described user terminal;
Described first detection module, when the number of times also uploaded for completing material in described scheduled duration at described user terminal does not reach described preset times threshold value, whether the quantity detecting upload request in request pond reaches predetermined number threshold value.
19. devices according to claims 14 or 15, it is characterized in that, described device, also comprises:
Generation module, shows works for generating according to the described material received;
4th sending module, for sending described displaying works to described user terminal and comprising the link of works page of described displaying works, described user terminal is used for described link to be distributed in user's multidate information display platform, described user's multidate information display platform comprises at least one and described user terminal has friend relation or pays close attention to the associated terminal of described user terminal, and described associated terminal is used for the works page being comprised described displaying works by described links and accesses.
20. devices according to claim 19, is characterized in that, store the works identify label ID of described displaying works in described background server, and are not stored in default memory block by the works ID of the displaying works of examination & verification,
Described device, also comprises:
3rd receiver module, for receiving the access request that described associated terminal sends;
Whether the second detection module, be stored in described default memory block for detecting the works ID carried in described access request;
5th sending module, for when described works ID is stored in described default memory block, sends to described associated terminal and does not audit the information of passing through.
21. 1 kinds of materials upload device, it is characterized in that, described device comprises:
6th sending module, for sending upload request to background server;
4th receiver module, for receiving the uploading instructions that described background server sends, described uploading instructions is described background server when detecting that in request pond, the quantity of upload request does not reach predetermined number threshold value, sends after adding described upload request to described request pond;
Upper transmission module, for uploading material to described background server.
22. devices according to claim 21, it is characterized in that, the request pond mark in request pond, described upload request place is carried in described uploading instructions, described upper transmission module, also for described material and described request pond mark are together uploaded to described background server, described background server is used for the terminal iidentification according to described request pond mark and described user terminal, determine whether there is the upload request corresponding with described user terminal in described request pond, and receive described material when there is the upload request corresponding with described user terminal in described request pond.
23. devices according to claim 21 or 22, it is characterized in that, described device, also comprises:
5th receiver module, for receiving the request repeat instruction that described background server sends, described request reissue commands is that described background server sends when not adding described upload request to described request pond;
Whether the 3rd detection module, be greater than the first frequency threshold value for detecting the number of times receiving described request reissue commands;
First display module, during for being greater than described first frequency threshold value at the number of times receiving described request reissue commands, display request failure information;
7th sending module, during for being less than described first frequency threshold value at the number of times receiving described request reissue commands, is resending described upload request after scheduled duration.
24. devices according to claim 21 or 22, it is characterized in that, described device, comprising:
Read module, for when receiving the up-delivering signal that user triggers, reading described user terminal in scheduled duration, completing the number of times that material uploads;
Described 6th sending module, when the number of times also uploaded for completing material in described scheduled duration at described user terminal does not reach the second frequency threshold value, performs the described step sending upload request to background server;
Second display module, when the number of times uploaded for completing material in described scheduled duration at described user terminal reaches described second frequency threshold value, display is uploaded the upper limit and is reminded.
25. devices according to claim 21 or 22, it is characterized in that, described device, also comprises:
Compression module, for when receiving the up-delivering signal that user triggers, selects the material uploaded to compress to user;
3rd display module, when the data volume for described material is upon compression greater than predetermined threshold value, display reselects prompting.
26. devices according to claim 21 or 22, it is characterized in that, described device, also comprises:
6th receiver module, for receiving the displaying works that described background server sends and the link of works page comprising described displaying works, described displaying works are that described background server generates according to the material of described user terminal uploads;
Release module, for described link being distributed in user's multidate information display platform, described user's multidate information display platform comprises at least one and described user terminal has friend relation or pays close attention to the associated terminal of described user terminal, and described associated terminal is used for the described works page being comprised described displaying works by described links and accesses.
CN201510953967.6A 2015-12-17 2015-12-17 Material receiving method, material uploading method and device Active CN105577772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510953967.6A CN105577772B (en) 2015-12-17 2015-12-17 Material receiving method, material uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510953967.6A CN105577772B (en) 2015-12-17 2015-12-17 Material receiving method, material uploading method and device

Publications (2)

Publication Number Publication Date
CN105577772A true CN105577772A (en) 2016-05-11
CN105577772B CN105577772B (en) 2020-07-07

Family

ID=55887416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510953967.6A Active CN105577772B (en) 2015-12-17 2015-12-17 Material receiving method, material uploading method and device

Country Status (1)

Country Link
CN (1) CN105577772B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Method, device and system for controlling data transmission
CN107172171A (en) * 2017-05-27 2017-09-15 腾讯科技(深圳)有限公司 A kind of service request processing method, device and computer-readable recording medium
CN109254653A (en) * 2018-08-15 2019-01-22 厦门美图之家科技有限公司 A kind of material matching process calculates equipment and storage medium
CN110034857A (en) * 2019-04-17 2019-07-19 广东三维家信息科技有限公司 Request the method, apparatus sent and electronic equipment
CN110235106A (en) * 2017-02-03 2019-09-13 微软技术许可有限责任公司 Complete the throttling of side client
CN110471749A (en) * 2019-07-12 2019-11-19 平安普惠企业管理有限公司 Task processing method, device, computer readable storage medium and computer equipment
CN110620798A (en) * 2018-06-19 2019-12-27 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN111354154A (en) * 2020-03-11 2020-06-30 杭州涂鸦信息技术有限公司 AI detection method based on cloud algorithm
CN112036852A (en) * 2020-08-25 2020-12-04 北京达佳互联信息技术有限公司 Payment processing method and device, server and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009589A (en) * 2006-01-26 2007-08-01 腾讯科技(深圳)有限公司 A method and system for software upgrade
US8036496B2 (en) * 2002-05-31 2011-10-11 Innotive Corporation Method for providing real-time service of huge and high quality digital image on internet
CN102710767A (en) * 2012-05-30 2012-10-03 福建省三奥信息科技股份有限公司 Communication method and system with video material auditing function
CN103092851A (en) * 2011-10-31 2013-05-08 腾讯科技(北京)有限公司 Social network based media information spreading method and media information display platform
CN103986764A (en) * 2014-05-16 2014-08-13 百度在线网络技术(北京)有限公司 Equipment and method used for multi-client collaborative file uploading

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036496B2 (en) * 2002-05-31 2011-10-11 Innotive Corporation Method for providing real-time service of huge and high quality digital image on internet
CN101009589A (en) * 2006-01-26 2007-08-01 腾讯科技(深圳)有限公司 A method and system for software upgrade
CN103092851A (en) * 2011-10-31 2013-05-08 腾讯科技(北京)有限公司 Social network based media information spreading method and media information display platform
CN102710767A (en) * 2012-05-30 2012-10-03 福建省三奥信息科技股份有限公司 Communication method and system with video material auditing function
CN103986764A (en) * 2014-05-16 2014-08-13 百度在线网络技术(北京)有限公司 Equipment and method used for multi-client collaborative file uploading

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076861A1 (en) * 2016-10-25 2018-05-03 广东欧珀移动通信有限公司 Data transmission control method, apparatus, storage medium, server and system
CN106412091A (en) * 2016-10-25 2017-02-15 广东欧珀移动通信有限公司 Method, device and system for controlling data transmission
CN110235106A (en) * 2017-02-03 2019-09-13 微软技术许可有限责任公司 Complete the throttling of side client
CN110235106B (en) * 2017-02-03 2023-09-15 微软技术许可有限责任公司 Completion side client throttling
CN107172171B (en) * 2017-05-27 2022-02-11 腾讯科技(深圳)有限公司 Service request processing method and device and computer readable storage medium
CN107172171A (en) * 2017-05-27 2017-09-15 腾讯科技(深圳)有限公司 A kind of service request processing method, device and computer-readable recording medium
CN110620798A (en) * 2018-06-19 2019-12-27 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN110620798B (en) * 2018-06-19 2023-08-04 北京京东尚科信息技术有限公司 Control method, system, equipment and storage medium for FTP connection
CN109254653A (en) * 2018-08-15 2019-01-22 厦门美图之家科技有限公司 A kind of material matching process calculates equipment and storage medium
CN110034857A (en) * 2019-04-17 2019-07-19 广东三维家信息科技有限公司 Request the method, apparatus sent and electronic equipment
CN110034857B (en) * 2019-04-17 2021-12-21 广东三维家信息科技有限公司 Request sending method and device and electronic equipment
CN110471749A (en) * 2019-07-12 2019-11-19 平安普惠企业管理有限公司 Task processing method, device, computer readable storage medium and computer equipment
CN111354154A (en) * 2020-03-11 2020-06-30 杭州涂鸦信息技术有限公司 AI detection method based on cloud algorithm
CN112036852A (en) * 2020-08-25 2020-12-04 北京达佳互联信息技术有限公司 Payment processing method and device, server and electronic equipment

Also Published As

Publication number Publication date
CN105577772B (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN105577772A (en) Material receiving method, material uploading method and device
JP6568904B2 (en) Adjust visual notification parameters based on message activity and notification values
CN104462534B (en) network information sharing method and device
CN105589783A (en) Application program lag problem data obtaining method and device
CN110555028A (en) data display method and device
US9148392B1 (en) Systems and methods for aggregating event information
CN108600083B (en) Message reminding method and device
CN104468667A (en) Message pushing method, device and server
CN110166624A (en) Message disturbance-free method, device, equipment and computer readable storage medium
CN109829077A (en) A kind of page display method, device and equipment
CN110610376A (en) Behavior data response method and device, computer equipment and storage medium
CN105227425A (en) The method of syndication message, equipment and network social intercourse system
CN111476015A (en) Document processing method and device, electronic equipment and storage medium
CN112131457A (en) Information recommendation method, device and system and storage medium
CN103490978A (en) Terminal, server and message monitoring method
CN104935666A (en) Method and system for watching PDF file with mobile terminal
TWI602431B (en) Method and device for transmitting information
US9590934B2 (en) Method and system of creating a graylist for message transmission
CN106953924B (en) Processing method of shared information and shared client
CN112764795A (en) Service-oriented cross-platform and cross-terminal information publishing system and method
US20090282367A1 (en) Method and system for electronic communication management
CN105320514A (en) Picture processing method and device
KR102492022B1 (en) Method, Apparatus and System of managing contents in Multi-channel Network
CN114610682A (en) Chat record processing method, device, terminal and storage medium
CN104113509A (en) Media file push method and server

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