CN109284182A - Response data update method, device and computer equipment - Google Patents

Response data update method, device and computer equipment Download PDF

Info

Publication number
CN109284182A
CN109284182A CN201811180230.5A CN201811180230A CN109284182A CN 109284182 A CN109284182 A CN 109284182A CN 201811180230 A CN201811180230 A CN 201811180230A CN 109284182 A CN109284182 A CN 109284182A
Authority
CN
China
Prior art keywords
response data
function
encapsulation
data
update
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.)
Pending
Application number
CN201811180230.5A
Other languages
Chinese (zh)
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.)
Guangzhou Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya Information Technology 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 Guangzhou Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201811180230.5A priority Critical patent/CN109284182A/en
Publication of CN109284182A publication Critical patent/CN109284182A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The present invention relates to data update method field more particularly to a kind of response data update methods, device and computer equipment.The response data update method, comprising: read the encapsulation function in deposit queue, the encapsulation function is stored in thread pool;The encapsulation function is packaged to obtain by client request and renewal function;Multiple encapsulation functions are extracted from the thread pool, each encapsulation function is sent to by back-end services cluster by parallel mode, are received the back-end services cluster and are responded the update response data that the client request of each encapsulation function returns;The historical responses data that client has been returned in buffer area are updated using the update response data.Using scheme provided by the present application, a large amount of request datas can be responded rapidly to, reduce response time.

Description

Response data update method, device and computer equipment
Technical field
The present invention relates to data update method fields, specifically, the present invention relates to a kind of response data update methods, dress It sets and computer equipment.
Background technique
Network access in, server be directed to client access request, in order to quick obtaining request response data, It needs to use Data cache technology, by caching some data, such as: a kind of PHP (embedded language of HTML) variable storage is arrived In caching, when use, fetches from caching again, that is, obtains the response data of the request;But exist to the request amount of server Peak period and trough period, when the request amount to server is in peak period, server end will receive a large amount of number of request at this time According to needing the data in frequent updating buffer area that could obtain accurate response message, to the caching and updating ability of server Bring huge challenge.
In the prior art, for updating frequent data, after hit caches, stored data in buffer area are returned to, so Synchronous query back-end services are updated as a result, updating the data of buffer area afterwards, and entire acquisition, update operation are synchronous execution , in interactive process, the thread of execution can only be waited, and lead to a large amount of request timed outs, result even in back-end server collapse.
Summary of the invention
The present invention can not propose one kind from timely processing a large amount of the shortcomings that requesting, causing request timed out for the prior art Response data update method, device and computer equipment reduce response time to timely respond to a large amount of request datas.
The embodiment of the present invention provides firstly a kind of response data update method, comprising:
The encapsulation function in deposit queue is read, the encapsulation function is stored in thread pool;The encapsulation function is by client End request and renewal function are packaged to obtain;
Multiple encapsulation functions are extracted from the thread pool, and each encapsulation function is sent to by rear end clothes by parallel mode Business cluster receives the back-end services cluster and responds the update response data that the client request of each encapsulation function returns;
The historical responses data that client has been returned in buffer area are updated using the update response data.
Preferably, before the step of encapsulation function read in deposit queue, further includes:
The client request that client is sent is received, inquires in buffer area and is rung with the presence or absence of the corresponding history of the request data Answer data;
If it exists, the historical responses data are returned, and the client request and its renewal function are packaged into encapsulation Function is added in the queue.
Preferably, if inquiring in buffer area, there is no the corresponding historical responses data of the request data, by the client End request is sent to back-end services cluster;
The update response data that back-end services cluster returns is received, the update response data is back to client, and The update response data is updated in buffer area.
Preferably, the attribute information of client request has also been packaged in the encapsulation function;
Described the step of each encapsulation function is sent to by back-end services cluster by parallel mode, comprising:
The attribute information for obtaining each encapsulation function, matched back-end services collection is determined according to the attribute information The server of group;
Each encapsulation function matching server is sent to respectively by parallel mode to handle.
Preferably, described the step of multiple encapsulation functions are extracted from the thread pool, comprising:
Specified quantity encapsulation function is extracted from the thread pool according to predetermined period.
Preferably, the back-end services cluster responds the method and step of the client request of each encapsulation function, comprising:
The encapsulation function is parsed, client request and renewal function are obtained;
The client request is run in the server to match with the encapsulation function, obtains corresponding update response Data.
Preferably, described that the historical responses data that client has been returned in buffer area are updated using the update response data The step of, comprising:
The update response data that the back-end services cluster returns is put into the thread pool;
It is successively read from the thread pool and updates receptance function asynchronous refresh into buffer area, cover the historical responses number According to.
Further, the embodiment of the invention also provides a kind of response data updating devices, comprising:
The encapsulation function is stored in thread pool for reading the encapsulation function in deposit queue by read module;The envelope Dress function is packaged to obtain by client request and renewal function;
Extraction module, for extracting multiple encapsulation functions from the thread pool, by parallel mode by each encapsulation letter Number is sent to back-end services cluster, receives the back-end services cluster and responds the client request return of each encapsulation function more New response data;
Update module, for updating the historical responses number for having returned to client in buffer area using the update response data According to.
Further, the embodiment of the invention also provides a kind of computer readable storage mediums, described computer-readable Storage medium when run on a computer, allows computer to execute any of the above-described for storing computer instruction Described in scheme the step of response data update method.
Further, the embodiment of the invention also provides a kind of computer equipment, the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are one or more of Processor executes, so that one or more of processors realize that the response data as described in above-mentioned any one technical solution updates Method.
The present invention provides a kind of response data update methods, are stored in thread pool by that will encapsulate function, utilization is multi-thread Journey processing mode handles the request data that client is initiated, and each encapsulation function is sent to back-end services collection by parallel mode Group's processing, further improves the processing speed to mass data request, reduces the response time, realizes in the processing short time rapidly The purpose of the request data of accumulation achievees the effect that peak load shifting, at the same in the form of queue guarantee request data one by one into Enter, realizes the purpose of overload protection.Meanwhile scheme provided by the embodiments of the present application, using back-end services cluster, treated The historical responses data that response data updates buffer area are updated, so that subsequent request transfers the response data, are improved subsequent The speed of response of same request.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow diagram of response data update method provided by one embodiment of the present invention;
Fig. 2 is the flow diagram for the response data update method that another embodiment of the present invention provides;
Each encapsulation function is sent to back-end services collection by parallel mode to be provided by one embodiment of the present invention by Fig. 3 The flow diagram of group;
Fig. 4 is the realization process schematic of response data update method provided by one embodiment of the present invention;
Fig. 5 is the structural schematic diagram for the response data updating device that an embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram for the computer equipment that an embodiment of the present invention provides.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, without departing from the scope of the invention, the first live video image can be known as to the second live video image, and Similarly, the second live video image can be known as the first live video image.First live video image and the second live streaming view Frequency image both live video image, but it is not the same live video image.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
It includes setting for wireless signal receiver that those skilled in the art of the present technique, which are appreciated that client used herein above both, It is standby, only have the equipment of the wireless signal receiver of non-emissive ability, and the equipment including receiving and emitting hardware, has The reception of two-way communication on bidirectional communication link, can be executed and emit the equipment of hardware.This equipment may include: honeycomb Or other communication equipments, with single line display or multi-line display or without the honeycomb of multi-line display or other Communication equipment;PCS (Personal Communications Service, PCS Personal Communications System), can be with combine voice, number According to processing, fax and/or communication ability;PDA (Personal Digital Assistant, personal digital assistant), It may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, calendar and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palmtop computer or Other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or other equipment.This In used client can be it is portable, can transport, be mounted in the vehicles (aviation, sea-freight and/or land), or Person is suitable for and/or is configured in local runtime, and/or with distribution form, operates in any other position in the earth and/or space Set operation.
Present invention firstly provides a kind of response data update method, this method is suitable for executing in server end, Yi Zhongshi It applies in example, the method comprising the steps of S11, S12, S13, flow diagram is as shown in Figure 1, comprising:
S11, reads the encapsulation function in deposit queue, and the encapsulation function is stored in thread pool;The encapsulation function by Client request and renewal function are packaged to obtain.
It is enclosed with request data and its processing parameter in the encapsulation function, in the present embodiment, the processing parameter is more New function, the i.e. response data of the encapsulation function are the more new data of request data, and such as request data enters ginseng and update Function is packaged into a function_wrapper, and encapsulation function function_wrapper can be " heavy in the follow-up process Put " the secondary request, i.e., after returning to the current response data in buffer area for the request data, then the secondary request data will be wrapped up Encapsulation function be placed in update troop in, be updated operation for the secondary request.
By the request of data enter ginseng and renewal function is packaged into encapsulation function, packaged request for subsequent calls Data and its renewal function carry out data and update operation.
Read the encapsulation function in deposit queue, in a kind of embodiment, the queue uses the side of FIFO (first in first out) Formula carries out, and the instruction of advanced enqueue is first completed to retire from office, and and then just executes next instruction, this mode is able to solve while gushing When entering a large amount of requests, it may cause the accumulative timeout request of history and reach certain scale, form vicious circle as snowball, by Invalid because of time-out in each request of system processing, the service ability that system external is presented is zero, causes blocked inlet Problem plays the role of overload protection.
The encapsulation function is stored in thread pool, one end of the thread pool is connected with the output of queue, and the other end is with after Service cluster is held to be electrically connected, a thread pool includes multiple threads, and per thread is corresponding with server alignment processing, will be more A encapsulation function is stored in thread pool, convenient for carrying out parallel processing to the encapsulation function in thread pool using back-end services cluster, mentions The treatment effeciency of height encapsulation function.
In a kind of embodiment, the step of the encapsulation function read in deposit queue before, further include following sub-step, Its flow diagram is as shown in Figure 2:
S21 receives the client request that client is sent, and inquires in buffer area and goes through with the presence or absence of the request data is corresponding History response data.
The historical responses data are the response data of the client request of current buffer storage, receive client and send Client request, the client request such as: inquire the telephone number of user, receive client transmission inquiry request, Inquiring buffer area whether there is the corresponding historical responses data of the request data, and the response data of the inquiry request is the user Telephone number, if preserving the telephone number of the user in buffer area, the stored telephone number in buffer area is referred to as history Response data.
S22, and if it exists, return to the historical responses data, and the client request and its renewal function are packaged into Function is encapsulated, is added in the queue.
If there are the corresponding historical responses data of client request data in buffer area, the historical responses data are returned The renewal function of the client request and the client request is then packaged into encapsulation function to client, be added to It handling in queue, encapsulation function characterization obtains the request of the update response data of the client request, sequentially in time, Multiple encapsulation functions are added in queue, to the processing of back-end services cluster.
It in a kind of embodiment, after step S22, is executed according to step S11 to S13, the update for obtaining each encapsulation function is rung Data are answered, using the historical responses data for updating response data covering buffer area, realize the update of data in buffer area.
In a kind of embodiment, after step S13, further includes: it compares the historical responses data and updates response data, if The two has differences, and sends comprising the prompting message for updating response data to client, after being updated so as to client Response data.
Scheme provided by the embodiments of the present application receives the client request of client transmission, inquires first in buffer area The historical responses data are returned to client, then inquire whether the request data has update again by historical responses data Response data quickly can be returned to client by response data, not will cause client slowly without the situation returned the result.Together When client request and its renewal function are sent to rear end are updated operation, be conducive to obtain more when client is inquired again Response data after new.
In a kind of embodiment, the response data update method, further includes: S23, there is no should if inquiring in buffer area The corresponding historical responses data of request data, are sent to back-end services cluster for the client request;Receive back-end services collection The update response data is back to client, and the update response data is updated by the update response data that group returns Into buffer area.
When the corresponding historical responses data of client request are not present in buffer area, if the electricity of a certain user of client request The telephone number for talking about number, buffer area and not stored requested user, then be sent to back-end services cluster for client request, passes through The telephone number for obtaining requested user is handled by back-end services cluster, and the update response data is back to client, is made It obtains client and obtains requested data in time, and the telephone number is stored in buffer area, be directed to the phone number so as to subsequent The request of code improves the subsequent request answer speed to the telephone number.
In scheme provided by the embodiments of the present application when the historical responses data of buffer area and not stored client request, It is obtained from the scheme for being stored with historical responses data using different means and updates response data, the application does not ask the client It asks to be placed in queue and carry out, the response data of the not stored client request in buffer area can be quickly obtained using this kind of means.
The application is the scheme that embodiment provides, and is simply described below: in the case where currently obtaining a large amount of request datas, It first determines whether buffer area is stored with corresponding response data, if so, historical responses data are returned to client, if nothing, adjusts The request is handled with back-end services cluster, returning response data to client are able to achieve the response quickly to client request. The effect of peak load shifting is realized in processing when can be placed in number of requests non-peak period to the update of historical responses data, is reduced in short-term Impact of the interior mass data to server.
S12 extracts multiple encapsulation functions from the thread pool, after being sent to each encapsulation function by parallel mode Service cluster is held, the back-end services cluster is received and responds the update number of responses that the client request of each encapsulation function returns According to.
In a kind of embodiment, described the step of multiple encapsulation functions are extracted from thread pool, comprising: according to predetermined period from The encapsulation function of specified quantity is extracted in the thread pool.
Specifically, a large amount of encapsulation functions are had received in thread pool, it can be using constantly using fixed thread to line Encapsulation function in Cheng Chi is handled, and the embodiment of the present application preferentially extracts specified quantity according to predetermined period from thread pool Encapsulate function.Predetermined period can such as be set as 1 day, 1 hour, each hour is a cycle of activity if detecting, setting is pre- If the period is 1 hour, the specified quantity is depending on the number of threads in thread pool, if the thread run parallel has 10, Specified quantity can be set as 8, can set each hour extracts 8 encapsulation functions from thread pool.There are also other for this programme Mutation such as detects that 19 points to 24 points of each hour are the processing trough periods of back-end services cluster, can be set in hourly The encapsulation function of 19 points to the 24 points extraction specified quantities from thread pool, to avoid the processing peak period of rear end program cluster, It realizes the peak load shifting of data processing, rationally utilizes system resource.
In a kind of embodiment, the attribute information of client request, the attribute information have also been packaged in the encapsulation function It is described to be sent each encapsulation function by parallel mode including encapsulating the request data type of function and encapsulating the quantity of function The step of to back-end services cluster, including following sub-step, flow diagram are as shown in Figure 3:
S31 obtains the attribute information of each encapsulation function, is taken according to the rear end that the attribute information threshold value matches The server of business cluster.
The attribute information includes the type and quantity of each encapsulation function, includes 6 encapsulation functions in thread pool as obtained, 6 can then be fixed tentatively or 3 threads carry out handling the encapsulation function, or according to the type of encapsulation function, such as 6 encapsulation functions It is middle there are 2 seed types, one is obtaining user information, a kind of acquisition merchandise news, then can call two processing user informations and This 6 encapsulation threads of the thread process of merchandise news.
Each encapsulation function is sent to matching server respectively by parallel mode and handled by S32.
By the server for the back-end services cluster that the determining attribute information with each encapsulation function of S31 matches, as above one Described in example, according to the quantity of encapsulation function, 6 matched back-end servers are determined, it is parallel in back-end server This 6 encapsulation functions of mode.
Scheme provided by the embodiments of the present application calls the back-end services cluster processing encapsulation letter to match with encapsulation function Number, is conducive to rapidly and accurately obtain response data, further carries out handling the encapsulation function by parallel form, favorably In the quick processing of encapsulation function, improves client and obtain the rate for updating response data.
In a kind of embodiment, the step of back-end services cluster responds the client request of each encapsulation function, including Following sub-step: parsing the encapsulation function, obtains client request and renewal function;What is matched with the encapsulation function The client request is run in server, obtains corresponding update response data.
It include multiple back-end servers in the back-end services cluster, back-end services cluster receives encapsulation function, parses The encapsulation function, obtains the client request wrapped up in encapsulation function and renewal function, and the scheme provided using step S31 is true The fixed server to match with the encapsulation function, runs the client request in determining the server to match, obtains Corresponding update response data.
S13 updates the historical responses data that client has been returned in buffer area using the update response data.
It is described that the historical responses number of client has been returned in buffer area using updating response data and update in a kind of embodiment According to the step of, comprising: by the back-end services cluster return update response data be put into thread pool;Successively from the thread It is read in pond and updates receptance function asynchronous refresh into buffer area, cover the historical responses data.The embodiment of the present application passes through The update response data that back-end services cluster returns is placed in buffer area as transfer area, has updated buffer area by thread pool Data storage, and response data will be updated by way of asynchronous refresh and be placed in buffer area, data redundancy amount is advantageously reduced, Improve user experience.
The update response data received is placed in buffer area, stored historical responses data in buffer area are updated, The subsequent request received again to the response data can return to the update response data of the request from buffer area, improve The response speed and response accuracy of the request.
In a kind of embodiment, the realization process of scheme provided herein is as shown in figure 4, receive client request, institute It states client request and enters agency service, in agency service, on the one hand read the data of buffer area, it on the other hand, will be described Client request and renewal function are packaged into queue, and the encapsulation function after packing is taken out one by one, are stored in thread pool, Encapsulation function is extracted from thread pool and is sent to back-end services cluster, processing returns to update to respond through back-end services cluster The update response data is back in thread pool by data, and it is asynchronous that update receptance function is successively read from the thread pool It is updated in buffer area, realizes the update of data in buffer area.
Response data update method provided by the present application is stored in thread pool by that will encapsulate function, enhancing system processing Each encapsulation function is sent to the processing of back-end services cluster by parallel mode, further increased by the ability of a large amount of request datas The strong processing speed to mass data request, using back-end services cluster, treated updates response data and update buffer area Historical responses data, so that subsequent request transfers the response data.
Further, the embodiment of the invention also provides a kind of response data updating device, structural schematic diagram such as Fig. 5 institutes Show, comprising: read module 51, extraction module 52, update module 53, specific as follows:
The encapsulation function is stored in thread pool for reading the encapsulation function in deposit queue by read module 51;It is described Encapsulation function is packaged to obtain by client request and renewal function;
Extraction module 52, for extracting multiple encapsulation functions from the thread pool, by parallel mode by each encapsulation Function is sent to back-end services cluster, receives the back-end services cluster and responds what each client request for encapsulating function returned Update response data;
Update module 53, for updating the historical responses for having returned to client in buffer area using the update response data Data.
About the response data updating device in above-described embodiment, wherein modules, unit execute the specific side of operation Formula is described in detail in the embodiment of the method, and no detailed explanation will be given here.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the program Response data update method described in above-mentioned any one is realized when being executed by processor.Wherein, the storage medium include but Be not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, Read-only memory), RAM (Random AcceSS Memory, immediately memory), EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card Piece.It is, storage medium includes by equipment (for example, computer) with any Jie for the form storage or transmission information that can be read Matter.It can be read-only memory, disk or CD etc..
Further, the embodiment of the present invention also provides a kind of computer equipment, and the computer equipment can be service Device, the computer equipment include:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes response data update method described in above-mentioned any one.
Fig. 6 is the structural schematic diagram of computer equipment of the present invention, including processor 620, storage device 630, input unit The devices such as 640 and display unit 650.It will be understood by those skilled in the art that the structure devices shown in Fig. 6 are not constituted to institute There is the restriction of computer equipment, may include than illustrating more or fewer components, or the certain components of combination.Storage device 630 can be used for storing application program 610 and each functional module, and processor 620 runs the application journey for being stored in storage device 630 Sequence 610, thereby executing the various function application and data processing of equipment.Storage device 630 can be built-in storage or external memory Reservoir, or including both built-in storage and external memory.Built-in storage may include read-only memory, programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory or random storage Device.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..Storage device disclosed in this invention includes but not It is limited to the storage device of these types.Storage device 630 disclosed in this invention is only used as example rather than as restriction.
Input unit 640 is used to receive the input of signal, and input unit 640 may include that touch panel and other inputs are set It is standby.Touch panel collects the touch operation of user on it or nearby, and (for example user is any suitable using finger, stylus etc. The operation of object or attachment on touch panel or near touch panel), and driving is corresponding according to a pre-set procedure Attachment device;Other input equipments can include but is not limited to physical keyboard, function key (such as play control button, switch press Key etc.), trace ball, mouse, one of operating stick etc. or a variety of.Display unit 650 can be used for showing the information of user's input Or it is supplied to the information of user and the various menus of computer equipment.Liquid crystal display, You Jifa can be used in display unit 650 The forms such as optical diode.Processor 620 is the control centre of computer equipment, utilizes various interfaces and the entire computer of connection Various pieces, by running or execute the software program and/or module that are stored in storage device 630, and call storage Data in storage device perform various functions and handle data.
In one embodiment, computer equipment includes one or more processors 620, and one or more storage dresses 630 are set, one or more application program 610, wherein one or more of application programs 610 are stored in storage device 630 In and be configured as being executed by one or more of processors 620, one or more of application programs 610 are configured to hold Response data update method described in row above embodiments.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other At least part of the sub-step or stage of step or other steps executes in turn or alternately.
It should be understood that each functional unit in various embodiments of the present invention can be integrated in a processing module, It can be physically existed alone, can also be integrated in two or more units in a module with each unit.It is above-mentioned integrated Module both can take the form of hardware realization, can also be realized in the form of software function module.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of response data update method characterized by comprising
The encapsulation function in deposit queue is read, the encapsulation function is stored in thread pool;The encapsulation function is asked by client Summation renewal function is packaged to obtain;
Multiple encapsulation functions are extracted from the thread pool, and each encapsulation function is sent to by back-end services collection by parallel mode Group receives the back-end services cluster and responds the update response data that the client request of each encapsulation function returns;
The historical responses data that client has been returned in buffer area are updated using the update response data.
2. response data update method according to claim 1, which is characterized in that the encapsulation read in deposit queue Before the step of function, further includes:
The client request that client is sent is received, inquiring in buffer area whether there is the corresponding historical responses number of the request data According to;
If it exists, the historical responses data are returned, and the client request and its renewal function are packaged into encapsulation function, It is added in the queue.
3. response data update method according to claim 2, which is characterized in that if inquiring in buffer area, there is no should The corresponding historical responses data of request data, are sent to back-end services cluster for the client request;
The update response data that back-end services cluster returns is received, the update response data is back to client, and by institute Update response data is stated to be updated in buffer area.
4. response data update method according to claim 1, which is characterized in that be also packaged visitor in the encapsulation function The attribute information of family end request;
Described the step of each encapsulation function is sent to by back-end services cluster by parallel mode, comprising:
The attribute information for obtaining each encapsulation function, matched back-end services cluster is determined according to the attribute information Server;
Each encapsulation function matching server is sent to respectively by parallel mode to handle.
5. response data update method according to claim 4, which is characterized in that the extraction from the thread pool is more The step of a encapsulation function, comprising:
Specified quantity encapsulation function is extracted from the thread pool according to predetermined period.
6. response data update method according to claim 4, which is characterized in that the back-end services cluster response is each Encapsulate the method and step of the client request of function, comprising:
The encapsulation function is parsed, client request and renewal function are obtained;
The client request is run in the server to match with the encapsulation function, obtains corresponding update number of responses According to.
7. response data update method according to claim 1, which is characterized in that described to utilize the update response data Update the step of having returned to the historical responses data of client in buffer area, comprising:
The update response data that the back-end services cluster returns is put into the thread pool;
It is successively read from the thread pool and updates receptance function asynchronous refresh into buffer area, cover the historical responses data.
8. a kind of response data updating device characterized by comprising
The encapsulation function is stored in thread pool for reading the encapsulation function in deposit queue by read module;The encapsulation letter Number is packaged to obtain by client request and renewal function;
Extraction module is sent out each encapsulation function by parallel mode for extracting multiple encapsulation functions from the thread pool The update for receiving the client request return that the back-end services cluster responds each encapsulation function to back-end services cluster is sent to ring Answer data;
Update module, for updating the historical responses data for having returned to client in buffer area using the update response data.
9. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing computer Instruction, when run on a computer, allows computer to execute sound described in any one of the claims 1 to 7 The step of answering data-updating method.
10. a kind of computer equipment, which is characterized in that the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing Device executes, so that one or more of processors realize that response data as claimed in any of claims 1 to 7 in one of claims updates Method.
CN201811180230.5A 2018-10-10 2018-10-10 Response data update method, device and computer equipment Pending CN109284182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811180230.5A CN109284182A (en) 2018-10-10 2018-10-10 Response data update method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811180230.5A CN109284182A (en) 2018-10-10 2018-10-10 Response data update method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN109284182A true CN109284182A (en) 2019-01-29

Family

ID=65176722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811180230.5A Pending CN109284182A (en) 2018-10-10 2018-10-10 Response data update method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN109284182A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377299A (en) * 2019-06-14 2019-10-25 天津五八到家科技有限公司 Using update method, equipment and storage medium
CN111917511A (en) * 2020-07-06 2020-11-10 青岛海尔科技有限公司 Data receiving method
CN112422450A (en) * 2020-05-09 2021-02-26 上海哔哩哔哩科技有限公司 Computer equipment, and flow control method and device for service request
CN114104880A (en) * 2021-11-15 2022-03-01 云知声(上海)智能科技有限公司 Elevator call control system and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026413A (en) * 1997-08-01 2000-02-15 International Business Machines Corporation Determining how changes to underlying data affect cached objects
CN106156180A (en) * 2015-04-20 2016-11-23 苏宁云商集团股份有限公司 Asynchronous computing and the method and system of preprocessed data
CN106484713A (en) * 2015-08-27 2017-03-08 中国石油化工股份有限公司 A kind of based on service-oriented Distributed Request Processing system
CN107305477A (en) * 2016-04-25 2017-10-31 中国科学院微电子研究所 The caching read-write operation method and system of a kind of flashcache mixing storage system
CN107679108A (en) * 2017-09-14 2018-02-09 环球智达科技(北京)有限公司 A kind of method of persistence loading page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026413A (en) * 1997-08-01 2000-02-15 International Business Machines Corporation Determining how changes to underlying data affect cached objects
CN106156180A (en) * 2015-04-20 2016-11-23 苏宁云商集团股份有限公司 Asynchronous computing and the method and system of preprocessed data
CN106484713A (en) * 2015-08-27 2017-03-08 中国石油化工股份有限公司 A kind of based on service-oriented Distributed Request Processing system
CN107305477A (en) * 2016-04-25 2017-10-31 中国科学院微电子研究所 The caching read-write operation method and system of a kind of flashcache mixing storage system
CN107679108A (en) * 2017-09-14 2018-02-09 环球智达科技(北京)有限公司 A kind of method of persistence loading page

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377299A (en) * 2019-06-14 2019-10-25 天津五八到家科技有限公司 Using update method, equipment and storage medium
CN112422450A (en) * 2020-05-09 2021-02-26 上海哔哩哔哩科技有限公司 Computer equipment, and flow control method and device for service request
CN112422450B (en) * 2020-05-09 2023-05-23 上海哔哩哔哩科技有限公司 Computer equipment, and flow control method and device for service request
CN111917511A (en) * 2020-07-06 2020-11-10 青岛海尔科技有限公司 Data receiving method
CN111917511B (en) * 2020-07-06 2024-01-30 青岛海尔科技有限公司 Data receiving method
CN114104880A (en) * 2021-11-15 2022-03-01 云知声(上海)智能科技有限公司 Elevator call control system and control method thereof
CN114104880B (en) * 2021-11-15 2024-03-08 云知声(上海)智能科技有限公司 Elevator call control system and control method thereof

Similar Documents

Publication Publication Date Title
CN109284182A (en) Response data update method, device and computer equipment
CN109684358B (en) Data query method and device
CN100585598C (en) Method and system for updating portlet information
CN108710535A (en) A kind of task scheduling system based on intelligent processor
CN110443695A (en) Data processing method and its device, electronic equipment and medium
CN103270466A (en) Power management via coordination and selective operation of timer-elated tasks
CN108471366A (en) A kind of stereoscopic monitoring system of facing cloud native applications
CN107463434B (en) Distributed task processing method and device
CN111586126B (en) Applet pre-downloading method, device, equipment and storage medium
US8205202B1 (en) Management of processing threads
CN106484882A (en) A kind of management method of database connection pool and device
CN103020125A (en) Method for providing service resource, input method, server and electronic equipment
CN110096521A (en) Log information processing method and device
CN109428929A (en) Determination method, server and the user client of the location information of target object
CN111629224B (en) Live broadcast information processing method and device, computer storage medium and electronic equipment
EP4044044A1 (en) Method and apparatus for processing information
CN112084217A (en) Data processing method and related device
CN114490056A (en) Data processing method, device, equipment and storage medium
CN108494867A (en) Service method, apparatus, system and the routing server of gray proces
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110247963A (en) A kind of data push method and system
CN101551758B (en) System and method for implementing paralleling work of device management and tasks
CN111770043B (en) Game data communication method, device, storage medium and electronic equipment
CN107508787B (en) A kind of task executing method, apparatus and system
CN107766137A (en) A kind of task processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129