Invention content
This specification embodiment provides a kind of processing method of request of data, device and electronic equipment, existing for solving
The high concurrent event technical problem excessive to service end pressure, reduces the pressure of server-side in technology.
In a first aspect, this specification embodiment provides a kind of processing method of request of data, this method includes:
Obtain the transmission operation for transmission data request;
Show an interactive interface by client, and detects interactive operation of the user on the interactive interface;
Obtain the corresponding sending time of the interactive operation;
By the client request of data is being sent to server-side according to the sending time.
Optionally, the method further includes:
In the status data of the client-cache user, the status data includes that the server-side is existed based on user
The request results of preceding request of data feedback;
Judge whether the status data meets preset condition;
If the status data is unsatisfactory for the preset condition, the transmission instruction of the request of data is intercepted, is forbidden to institute
It states server-side and sends the request of data.
Optionally, the interactive interface is dynamic interaction interface or static interactive interface.
Optionally, the corresponding sending time of the interactive operation is obtained, including:
The operating time for obtaining the interactive operation obtains the sending time according to the operating time;Or
The corresponding operating result of the interactive operation is obtained, using the temporal information in the operating result as the transmission
Time.
Optionally, the interactive interface is the box for including n delay time, and the box opens corresponding pop-up each time
One delay time, n >=2;
The corresponding sending time of the interactive operation is obtained, including:
Interactive operation of the user to the box is obtained, the delay time that the box is popped up is as when the transmission
Between.
Second aspect, this specification embodiment provide a kind of processing method of request of data, and this method includes:
Show an interactive interface by client, and detects interactive operation of the user on the interactive interface;
Obtain the interactive operation corresponding display time;
It is effective status by the transmission icon transformation asked for transmission data when reaching the display time;
After user is to the transmission operation of the transmission icon in effective status, sent to server-side by the client
The request of data.
The third aspect, this specification embodiment provide a kind of processing method of request of data, are applied to the time-limited operation page,
This method includes:
Obtain transmission operation of the user on the time-limited operation page;
After obtaining the transmission operation, an interactive interface is showed by client, and detect user in the interaction
Interactive operation on interface;
After obtaining the interactive operation, the transmission is sent to server-side by the client and operates corresponding number
According to request.
Optionally, the time-limited operation page includes:Rush to purchase the page, the prize page and the promotion page.
Fourth aspect, this specification embodiment provide a kind of processing unit of request of data, which includes:
Acquiring unit, for obtaining the transmission operation for transmission data request;
Detection unit shows an interactive interface for passing through client, and detects friendship of the user on the interactive interface
Interoperability;
The acquiring unit is additionally operable to obtain the corresponding sending time of the interactive operation;
Transmission unit, for sending the request of data to server-side according to the sending time by the client.
Optionally, described device further includes:
Buffer unit, for the status data in the client-cache user, the status data includes the service
End group is in the request results in preceding request of data feedback of user;
Judging unit, for judging whether the status data meets preset condition;
Interception unit intercepts the transmission of the request of data if being unsatisfactory for the preset condition for the status data
Instruction is forbidden sending the request of data to the server-side.
Optionally, the interactive interface is dynamic interaction interface or static interactive interface.
Optionally, the acquiring unit is additionally operable to:
The operating time for obtaining the interactive operation obtains the sending time according to the operating time;Or
The corresponding operating result of the interactive operation is obtained, using the temporal information in the operating result as the transmission
Time.
Optionally, the interactive interface is the box for including n delay time, and the box opens corresponding pop-up each time
One delay time, n >=2;
The acquiring unit is additionally operable to:Obtain interactive operation of the user to the box, the delay that the box is popped up
Time is as the sending time.
5th aspect, this specification embodiment provide a kind of processing unit of request of data, which includes:
Detection unit shows an interactive interface for passing through client, and detects friendship of the user on the interactive interface
Interoperability;
Acquiring unit, for obtaining the interactive operation corresponding display time;
Converting unit, for when reaching the display time, being by the transmission icon transformation asked for transmission data
Effective status;
Transmission unit, for after obtaining user to the transmission operation of the transmission icon in effective status, passing through institute
It states client and sends the request of data to server-side.
6th aspect, this specification embodiment provide a kind of processing unit of request of data, are applied to the time-limited operation page,
The device includes:
Acquiring unit, for obtaining transmission operation of the user on the time-limited operation page;
Detection unit, for after obtaining the transmission operation, showing an interactive interface by client, and detect use
Interactive operation of the family on the interactive interface;
Transmission unit, for after obtaining the interactive operation, the hair to be sent to server-side by the client
Send operation corresponding request of data.
Optionally, the time-limited operation page includes:Rush to purchase the page, the prize page and the promotion page.
7th aspect, this specification embodiment provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence, the program realize following steps when being executed by processor:
Obtain the transmission operation for transmission data request;
Show an interactive interface by client, and detects interactive operation of the user on the interactive interface;
Obtain the corresponding sending time of the interactive operation;
By the client request of data is being sent to server-side according to the sending time.
Eighth aspect, this specification embodiment provide a kind of electronic equipment, include memory and one or one
Above program, one of them either more than one program be stored in memory and be configured to by one or one with
It includes the instruction for being operated below that upper processor, which executes the one or more programs,:
Obtain the transmission operation for transmission data request;
Show an interactive interface by client, and detects interactive operation of the user on the interactive interface;
Obtain the corresponding sending time of the interactive operation;
By the client request of data is sent to server-side according to the sending time.
Said one in this specification embodiment or multiple technical solutions, at least have the following technical effect that:
This specification embodiment provides a kind of processing method of request of data, obtains the transmission behaviour for transmission data request
Make;Show the interactive interface asked for confirming transmission data to user by client, and detects user on interactive interface
Interactive operation;Obtain the corresponding sending time of user interactive operation;Again by client according to the sending time of acquisition to clothes
Business end sends the request of data.The sending time of request of data is broken up by the acquisition of sending time, is realized to high concurrent
Request of data carries out flow dispersion, avoids server-side from receiving and processing excessive request of data at same time point, to solve
The high concurrent event technical problem excessive to service end pressure in the prior art, and then reduce the pressure of server-side.
Specific implementation mode
To keep the purpose, technical scheme and advantage of this specification embodiment clearer, below in conjunction with this specification reality
The attached drawing in example is applied, the technical solution in this specification embodiment is clearly and completely described, it is clear that described reality
It is this specification a part of the embodiment to apply example, instead of all the embodiments.The embodiment of base in this manual, this field are general
The every other embodiment that logical technical staff is obtained without creative efforts belongs to this specification protection
Range.
A kind of processing method of request of data, device and electronic equipment are provided in this specification embodiment, solves existing skill
The high concurrent event technical problem excessive to service end pressure, reduces the pressure of server-side in art.
Below in conjunction with the accompanying drawings to the main realization principle of this specification embodiment technical solution, specific implementation mode and its right
The advantageous effect that should be able to reach is explained in detail.
Referring to FIG. 1, data access system includes:Client, server-side.Client is examined for being interacted with user
The various operations of user are surveyed, and are asked depending on the user's operation to server-side transmission data by internet.Server-side, by mutual
Networking receives the request of data that client is sent, and the request of data to receiving carries out processing feedback, to complete payment, convert
The functions such as prize, panic buying.
For high concurrent event, this specification embodiment provides a kind of processing method of request of data, is triggered from client
Flow dispersion is carried out to request of data, to reduce the pressure of server-side.Referring to FIG. 2, the one of the offer of this specification embodiment
The processing method of kind request of data, including:
S210:Obtain the transmission operation for transmission data request;
S220:Show an interactive interface by client, and detects interactive operation of the user on the interactive interface;
S230:Obtain the corresponding sending time of the interactive operation;
S240:By the client request of data is sent to server-side according to the sending time.
For actual application in, the shopping of many high concurrent events such as 11.11 section, lottery rewarding, flash sale etc. are corresponding
The time-limited operation page, generally require user at the specified time point on the time-limited operation page execute send operation, such as click
" clearing ", " prize ", " second kills " etc. send icon, to be asked to server-side transmission data, transmission behaviour of the client based on user
Make to ask to server-side transmission data, server-side encapsulates corresponding data information further according to the request of data received and feeds back to visitor
Family end, to complete corresponding event.Since a large number of users is performed simultaneously transmission operation within same time point or short time range, if
It operates to server-side transmission data and asks directly in response to the transmission, the request of data to swarm forward can cause server-side largely
Burden, data request processing method provided by the embodiments of the present application are broken up the time that transmission data is asked by interactive interface,
The Centralized requests of server-side can be largely reduced after breaing up.
Specifically, executing the transmission operation that S210 obtains user, transmission operation is for being asked to server-side transmission data
The operation asked can be clicking operation of the user for the icons such as " clearing ", " prize ", " second kills ".Such as:The a certain panic buying page
One " second kills " icon is provided, for sending the request of data to go on the razzle-dazzle to server-side, when being somebody's turn to do " second kills " icon when the user clicks,
It obtains the clicking operation and sends operation.
Before or after S210, the present embodiment executes S220 and S230 and shows an interactive interface by client, and examines
Interactive operation of the user on interactive interface is surveyed, the sending time of interactive operation is obtained, which is preset time range
Interior jitter time, to disperse the transmission that the transmission operates corresponding request of data.
Interactive interface provided in this embodiment can be based on different user to things cognizance hierarchy, operating time difference, behaviour
To make one or more factors such as result difference to be configured so that the interaction time between interactive interface and different user is different,
Alternatively, the corresponding sending time of the interactive operation of different user is different.Specifically, the content of interactive interface can be examination question, trip
Play, drawing etc., interactive mode can be dynamic interaction or static interaction, i.e., the interactive interface can be dynamically or statically
It solves a problem interface, interface, drawing interface etc..Wherein, examination question can include picture mosaic examination question, count examination question and word examination question etc..
Such as:The present embodiment can provide an interface of solving a problem " which New Year's Eve of today is " for including examination question, and user inputs correct day
It is just asked according to the corresponding sending time transmission data of the operation after phase;Alternatively, providing the interface of a Snake, eating
It is just asked according to the corresponding sending time transmission data of the operation after to object;Or provide the friendship of a box of announcing the winners in a lottery
Mutual interface, different users click box sending time difference, are asked according to corresponding sending time transmission data.
After showing interactive interface, interactive operation of the detection user on interactive interface, and obtain user interactive operation pair
The sending time answered.Specifically, sending time can be obtained according to the operating time of user interactive operation, if by the operating time
When a length of Tmin, then it is when sending after Tmin β * Tmin that since sending time, which can be detecting interactive operation,
Between, β is preset ratio such as 0.1,0.01 etc..Alternatively, the corresponding operating result of interactive operation can first be obtained, by the operating result
In temporal information as sending time, such as:Interactive interface is the box for including n delay time, and box is opened each time
One delay time of corresponding pop-up, n >=2;Interactive operation of the user to box is obtained, using the delay time of box pop-up as hair
Send the time.
Certainly, client can also be directed to the interactive operation obtained and generate a sending time at random, such as random to generate one
A sending time random between 1~10 second, the transmission of request of data was broken up between 1~10 second.It can also be to interaction circle
The display time in face carries out distinctiveness setting, keeps its interaction time between different user different, interactive interface is terminated to show
The time shown as the corresponding sending time of interactive operation, i.e., sends corresponding request of data when interactive interface terminates display.
It should be noted that content and form the application of interactive interface and be not specifically limited, if can by with
The sending time of request of data is broken up in the interaction of user, is reduced same time point and is concentrated asking to server-side request data
The amount of asking.
In specific implementation process, in order to be further reduced the Centralized requests amount of server-side, the present embodiment can also pass through
The mode of front end caching intercepts the illegal request of data in part, as shown in figure 3, being asked to server-side transmission data to reduce
Data volume.
Specifically, can include server-side base in the status data of the front end page cache user of client, status data
In the request results in preceding request of data feedback of user, for example, may include " asking for the request results for activity feedback of announcing the winners in a lottery
Ask failure ", " be already engaged in activity do not get the winning number in a bond ", the information such as " participating in overpraising in activity ".Further, visitor can also be passed through
The ID of family end cache user, it participates in movable qualification, participate in the information such as movable number.After S210 or S230, visitor is judged
Whether the status data of family end caching meets preset condition, and wherein preset condition can be following either condition:It has neither part nor lot in excessive
Preceding activity participated in crossing in activity and will, participate in movable number and be less than preset value etc.;If judging result is no, that is, cache
Status data be unsatisfactory for preset condition, such as be already engaged in the activity, in overpraise, participate in number be more than preset value,
The transmission instruction that the request of data of client generation can then be intercepted, forbids asking to server-side transmission data.For being unsatisfactory for
The user of preset condition can be failed to user feedback request by client, be unsatisfactory for participating in the information such as qualification.
This specification above-described embodiment is based on User Status data to part number by the status data of buffered in advance user
It is filtered according to request, it is possible to reduce request of the partial data request to server-side.Caching filter out partial data request it
Afterwards, can continue be based on interactive interface, by with user interact progress request of data sending time dispersion, in client tier
Face, which is reduced, asks the intensive data of server-side.
Below with a specific example, the data request method provided this specification embodiment is illustrated.
The processing method of above-mentioned request of data is applied to the time-limited operation page.First, it is grasped in limited time by client
Make the page, such as rushes to purchase the page, the prize page and the promotion page.Obtain transmission operation of the user on the time-limited operation page, such as point
Hit the operation that " panic buying ", " prize " etc. send icon.After obtaining the transmission operation of user, an interaction is showed by client
Interface, and interactive operation of the user on the interactive interface is detected, such as show that a turntable for lucky draw page, the page include to be used for
Start " go " icon of prize drawing with multiple awards, each awards correspond to a sending time, obtain user and click " go " icon
Operation is interactive operation.After obtaining interactive operation, the transmission is sent to server-side by client and operates corresponding number
According to request.It is different from the interaction time of the interactive interface i.e. execution time of interactive operation in view of having otherness between user,
Therefore, the interactive operation that user is obtained by increasing an interactive interface has been able to play the sending time for breaing up request of data
Purpose, for this purpose, the transmission of request of data can be immediately performed after obtaining interactive operation.If in order to ensure request of data
The accuracy broken up of sending time, corresponding sending time can be obtained when obtaining interactive operation (has client that will send
Time breaks up in preset time range), it is asked come transmission data according to corresponding sending time by client.
Based on same inventive concept, this specification embodiment also provides the processing method of another request of data, passes through visitor
Family end shows an interactive interface, and detects interactive operation of the user on interactive interface;When obtaining the corresponding display of interactive operation
Between;It is effective status by the transmission icon transformation asked for transmission data when reaching the display time;Obtaining user
After the transmission operation of the transmission icon in effective status, the request of data is sent to server-side by client.It should
The setting of interactive interface and display time (sending time for being equivalent to above-described embodiment) are same as the previously described embodiments, and this method is
The effective status for sending icon is broken up by obtaining different display time, to break up user's operation transmission icon when
Between, it realizes breaing up for request of data sending time, reaches reduction server-side and receive and process excessive data at same time point
The purpose of request reduces the pressure of server-side.
Referring to FIG. 4, a kind of method for request of data that this specification embodiment is provided based on above-mentioned implementation, also correspondence carry
For a kind of processing unit of request of data, which includes:
Acquiring unit 41, for obtaining the transmission operation for transmission data request;
Detection unit 42 shows an interactive interface for passing through client, and detects user on the interactive interface
Interactive operation;
The acquiring unit 41 is additionally operable to obtain the corresponding sending time of the interactive operation;
Transmission unit 43 is asked for sending the data to server-side according to the sending time by the client
It asks.
As an alternative embodiment, described device further includes:Buffer unit 44, judging unit 45 and interception are single
Member 46.Buffer unit 44, for the status data in the client-cache user, the status data includes the server-side
The request results in preceding request of data feedback based on user;Judging unit 45, for judging whether the status data meets
Preset condition;Interception unit 46 intercepts the hair of the request of data if being unsatisfactory for the preset condition for the status data
Instruction is sent, forbids sending the request of data to the server-side.
As an alternative embodiment, the acquiring unit can obtain the interaction when obtaining sending time
The operating time of operation obtains the sending time according to the operating time;Alternatively, obtaining the corresponding behaviour of the interactive operation
Make as a result, using the temporal information in the operating result as the sending time.
As an alternative embodiment, the interactive interface is dynamic interaction interface or static interactive interface.Wherein,
The interactive interface is the box for including n delay time, and the box opens one delay time of corresponding pop-up, n each time
≥2;The acquiring unit 41 can obtain interactive operation of the user to the box, and the delay time that the box is popped up is made
For the sending time.
As an alternative embodiment, this specification embodiment also provides a kind of processing unit of request of data,
May include:Acquiring unit 41, detection unit 42, transmission unit 43 and converting unit, wherein detection unit 42 is for passing through
Client shows an interactive interface, and detects interactive operation of the user on the interactive interface;Acquiring unit 41, for obtaining
The interactive operation corresponding display time;Converting unit, for that when reaching the display time, transmission data will be used for and asked
The transmission icon transformation asked is effective status;Transmission unit 43, for obtaining user to the transmission icon in effective status
Transmission operation after, the request of data is sent to server-side by the client.
As an alternative embodiment, this specification embodiment also provides the processing unit of another request of data,
Applied to the time-limited operation page, which includes:Acquiring unit 41, for obtaining hair of the user on the time-limited operation page
Send operation;Detection unit 42, for after obtaining the transmission operation, showing an interactive interface by client, and detect
Interactive operation of the user on the interactive interface;Transmission unit 43 is used for after obtaining the interactive operation, by described
Client sends the transmission to server-side and operates corresponding request of data.Wherein, the time-limited operation page includes:Rush to purchase page
Face, the prize page and the promotion page.
About the device in above-described embodiment, wherein each unit executes the concrete mode of operation in method
It is described in detail in embodiment, no longer elaborates herein.
Referring to FIG. 5, being that a kind of electronics for realizing data query method shown according to an exemplary embodiment is set
Standby 700 block diagram.For example, electronic equipment 700 can be computer, and database console, tablet device, personal digital assistant
Deng.
With reference to Fig. 5, electronic equipment 700 may include following one or more components:Processing component 702, memory 704,
Power supply module 706, multimedia component 708, the interface 710 and communication component 712 of input/output (I/O).
The integrated operation of 702 usual control electronics 700 of processing component is such as grasped with display, data communication, and record
Make associated operation.Processing element 702 may include one or more processors 720 to execute instruction, above-mentioned to complete
The all or part of step of method.In addition, processing component 702 may include one or more modules, it is convenient for 702 He of processing component
Interaction between other assemblies.
Memory 704 is configured as storing various types of data to support the operation in equipment 700.These data are shown
Example includes the instruction for any application program or method that are operated on electronic equipment 700, contact data, telephone directory number
According to, message, picture, video etc..Memory 704 can by any kind of volatibility or non-volatile memory device or they
Combination realize, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Power supply module 706 provides electric power for the various assemblies of electronic equipment 700.Power supply module 706 may include power supply pipe
Reason system, one or more power supplys and other generated with for electronic equipment 700, management and the associated component of distribution electric power.
I/O interfaces 710 provide interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Communication component 712 is configured to facilitate the communication of wired or wireless way between electronic equipment 700 and other equipment.
Electronic equipment 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.Show at one
In example property embodiment, communication component 712 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, the communication component 712 further includes near-field communication (NFC) module, short to promote
Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 700 can be by one or more application application-specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of
Such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of electronic equipment 700 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal
When device executes so that electronic equipment is able to carry out a kind of processing method of request of data, the method includes:It obtains for sending
The transmission of request of data operates;Show an interactive interface by client, and detects interaction of the user on the interactive interface
Operation;Obtain the corresponding sending time of the interactive operation;By the client according to the sending time to server-side
Send the request of data.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.