CN110347951A - A kind of data request processing method, apparatus, terminal device and storage medium - Google Patents

A kind of data request processing method, apparatus, terminal device and storage medium Download PDF

Info

Publication number
CN110347951A
CN110347951A CN201910612128.6A CN201910612128A CN110347951A CN 110347951 A CN110347951 A CN 110347951A CN 201910612128 A CN201910612128 A CN 201910612128A CN 110347951 A CN110347951 A CN 110347951A
Authority
CN
China
Prior art keywords
video
data
service instance
request
service
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
CN201910612128.6A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910612128.6A priority Critical patent/CN110347951A/en
Publication of CN110347951A publication Critical patent/CN110347951A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present disclosure discloses a kind of data request processing method, apparatus, terminal device and storage medium, which comprises when a request for data is received, judges whether Service Instance corresponding with the request of data works normally;If the Service Instance works normally, the request of data is handled based on the Service Instance, to obtain target data;If the Service Instance can not work normally, target data is read from local file;Wherein, the Service Instance is the Service Instance for carrying all preset services of current business server, and when successfully getting target data by the Service Instance every time, the target data that will acquire is based on setting regular backup to the local file.By the technical solution of the embodiment of the present disclosure, realizes and improve the purpose that target data obtains success rate.

Description

A kind of data request processing method, apparatus, terminal device and storage medium
Technical field
The embodiment of the present disclosure is related to application of software data processing technique more particularly to a kind of data request processing method, dress It sets, terminal device and storage medium.
Background technique
With being widely used for intelligent terminal, various application software are continued to introduce new.Wherein, list page is (commonly referred to as Feed pages) it is a kind of relatively common interface appearance form in existing application software client.Can be shown one by one in Feed pages or Person recommends display list items according to the hobby of user, checks for user, and user can be entered by clicking corresponding list items Details page checks details or triggers the broadcasting of related column list item.
It is complete due to the interest of Feed pages of presentation content of some application software clients and the accuracy of commending contents The hobby for beauteously having catered to each user has attracted a large amount of bean vermicelli user, so that bean vermicelli user brush gets up to be so fond that will not let out of one's hand. In this way, causing Feed pages of some application software clients to need to carry huge day live data.
As it can be seen that Feed pages of the application software client most of advertising income for carrying each application software developer, Primary small Feed accident (be often referred to normally to show information list or cannot respond to user checks request) may Huge economic loss is brought to developer, while also will affect customer experience.Therefore, Feed pages of application software client steady It is qualitative extremely important.
Summary of the invention
The embodiment of the present disclosure provides a kind of data request processing method, apparatus, terminal device and storage medium, is obtained with improving Take the success rate of target data.
In a first aspect, the embodiment of the present disclosure provides a kind of data request processing method, comprising:
When a request for data is received, judge whether Service Instance corresponding with the request of data works normally;
If the Service Instance works normally, the request of data is handled based on the Service Instance, to obtain Take target data;
If the Service Instance can not work normally, target data is read from local file;
Wherein, the Service Instance is the Service Instance for carrying all preset services of current business server, each When successfully getting target data by the Service Instance, the target data that will acquire is based on setting regular backup to described Local file.
Further, judge whether Service Instance corresponding with the request of data works normally, comprising:
When the Service Instance is less than preset value for the response identification that the request of data returns, the service is determined Example works normally;
When the Service Instance is more than or equal to the preset value for the response identification that the request of data returns, determine The Service Instance can not work normally.
Further, the target data that will acquire is based on setting regular backup to the local file, comprising:
Determine the data of preset ratio at random from the target data got;
By determining data backup to the local file.
Further, when the request of data is Feed video refresh request, based on the Service Instance to the number It is handled according to request, to obtain target data, comprising:
Based on the first default clothes for being used to obtain video ID (Identification, identity) in Feed Service Instance Business obtains video ID list;
Based in Feed Service Instance for obtaining the of the corresponding video information of each video ID in the video ID list Two preset services obtain the corresponding video information of each video ID in the video ID list;
It is corresponding, when successfully getting video information by second preset service every time, the video that will acquire Information is based on setting regular backup to the local file.
Further, described that view is obtained based on the first preset service for being used to obtain video identifier ID in Feed Service Instance Frequency ID list, comprising:
By first preset service, video is obtained according to the interest characteristics of the Feed video refresh request sender ID list.
Further, the method also includes: if based on default for obtaining the first of video ID in Feed Service Instance Service acquisition video ID list failure, then the backup services based on the first preset service described in Feed Service Instance obtain video ID list;
If based on the video ID list is obtained for obtaining the second preset service of video information in Feed Service Instance In the corresponding video information failure of each video ID, then the backup services based on the second preset service described in Feed Service Instance obtain Take the corresponding video information of each video ID in the video ID list.
Further, the backup services based on the first preset service described in Feed Service Instance obtain video ID list, Include:
By the backup services, pageview or the amount of thumbing up based on video each in video library obtain video ID list.
Second aspect, the embodiment of the present disclosure additionally provide a kind of data request processing device, which includes:
Judgment module, for when a request for data is received, whether judging Service Instance corresponding with the request of data It works normally;
First processing module, if being worked normally for the Service Instance, based on the Service Instance to the data Request is handled, to obtain target data;
Second processing module reads target data from local file if can not work normally for the Service Instance;
Wherein, the Service Instance includes all preset services of current business server carrying, every time by described When Service Instance successfully gets target data, the target data that will acquire is based on setting regular backup to the local text Part.
Further, the judgment module is specifically used for:
When the Service Instance is less than preset value for the response identification that the request of data returns, the service is determined Example works normally;
When the Service Instance is more than or equal to the preset value for the response identification that the request of data returns, determine The Service Instance can not work normally.
Further, the target data that will acquire is based on setting regular backup to the local file, comprising:
Determine the data of preset ratio at random from the target data got;
By determining data backup to the local file.
Further, when the request of data is Feed video refresh request, the first processing module is specifically included First processing units and the second processing unit, wherein first processing units are used for: it is regarded based on being used to obtain in Feed Service Instance The first preset service that frequency marking knows ID obtains video ID list;The second processing unit is used to be based in Feed Service Instance for obtaining The second preset service of the corresponding video information of each video ID in the video ID list is taken to obtain each in the video ID list The corresponding video information of video ID;
It is corresponding, when successfully getting video information by second preset service every time, the video that will acquire Information is based on setting regular backup to the local file.
Further, the first processing units are specifically used for: by first preset service, being regarded according to the Feed The interest characteristics of frequency refresh requests sender obtain video ID list.
Further, the first processing module further include: third processing unit and fourth processing unit, wherein third If processing unit is used to obtain video ID list based on the first preset service for being used to obtain video ID in Feed Service Instance and lose It loses, then the backup services based on the first preset service described in Feed Service Instance obtain video ID list;Fourth processing unit If for based on each in the second preset service acquisition video ID list in Feed Service Instance for obtaining video information The corresponding video information failure of video ID, then the backup services based on the second preset service described in Feed Service Instance obtain institute State the corresponding video information of each video ID in video ID list.
Further, the third processing unit is specifically used for: by the backup services, based on each video in video library Pageview or the amount of thumbing up obtain video ID list.
The third aspect, the embodiment of the present disclosure additionally provide a kind of terminal device, which includes:
One or more processing units;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processing units, so that one or more of places Manage data request processing method of the device realization as described in the embodiment of the present disclosure.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the data request processing method as described in the embodiment of the present disclosure when program is executed by processing unit.
A kind of data request processing method that the embodiment of the present disclosure provides, by when a request for data is received, judgement with Whether the corresponding Service Instance of the request of data works normally;If the Service Instance works normally, it is based on the service Example handles the request of data, to obtain target data;If the Service Instance can not work normally, from local File reads target data;Wherein, the Service Instance is the service reality for carrying all preset services of current business server Example, when successfully getting target data by the Service Instance every time, the target data that will acquire is based on setting rule The technological means for backing up to the local file realizes and improves the purpose that target data obtains success rate.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for data request processing method that the embodiment of the present disclosure one provides;
Fig. 2 is a kind of service system structure schematic diagram that the embodiment of the present disclosure one provides;
Fig. 3 is a kind of flow diagram for data request processing method that the embodiment of the present disclosure two provides;
Fig. 4 is a kind of structural schematic diagram for data request processing device that the embodiment of the present disclosure three provides;
Fig. 5 is a kind of hardware structural diagram for terminal device that the embodiment of the present disclosure four provides.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the disclosure, rather than the restriction to the disclosure.It also should be noted that in order to just Part relevant to the disclosure is illustrated only in description, attached drawing rather than entire infrastructure.
In following each embodiments, optional feature and example are provided simultaneously in each embodiment, that records in embodiment is each A feature can be combined, and form multiple optinal plans, and the embodiment of each number should not be considered merely as to a technical solution.
Embodiment one
Fig. 1 is a kind of flow diagram for data request processing method that the embodiment of the present disclosure one provides.This method can fit The case where for responding to the request of data that client is sent, can be executed by data request processing device, which can By hardware and/or software sharing, and generally it is integrated in the parent server of service server.Specifically, shown in Figure 2 one Kind service system structure schematic diagram, including parent server 210 and service server 220, wherein parent server 210 is used for The request of data that client is sent is received, and the request of data received is distributed to service server 220, to be taken by business The Service Instance that business device 220 carries handles the request of data.Based on above-mentioned service system structure shown in Fig. 2 referring to Shown in Fig. 1, the data request processing method specifically comprises the following steps:
Step 110, when a request for data is received judges the whether normal work of Service Instance corresponding with the request of data Make, if the Service Instance works normally, continue to execute step 120, otherwise, executes step 130.
Specifically, the request of data includes the request of any request data, such as user wants to check friend by mobile phone Certain picture of circle, then user can send the request for obtaining image data by mobile phone to server;For example user comes round again Cross mobile phone certain using brush entertaining video, then can pass through relevant video refresh page and send the request etc. for obtaining video data.
The Service Instance is the Service Instance for carrying all preset services of current business server, it is possible to understand that It is that the Service Instance includes the preset service for handling the request of data.When parent server receives request of data When, the request of data further can be sent to service server, with the Service Instance that carries by service server to institute It states request of data to be handled, after the Service Instance receives the request of data, meeting superior server returns corresponding Identification information, to inform that request of data has been received in parent server, likewise, if the Service Instance can not receive institute State request of data, also can superior server return to corresponding identification information, to inform that parent server can not receive data Request.
Illustratively, judge whether Service Instance corresponding with the request of data works normally, comprising:
When the Service Instance is less than preset value for the response identification that the request of data returns, the service is determined Example works normally;
When the Service Instance is more than or equal to the preset value for the response identification that the request of data returns, determine The Service Instance can not work normally.
Wherein, the case where Service Instance can not work normally includes: that the Service Instance can not integrally start.
Step 120 is handled the request of data based on the Service Instance, to obtain target data.
Specifically, by calling in the Service Instance for handling the preset service of the request of data to the data Request is handled, to obtain corresponding target data.
By the request of data be Feed video refresh request for, based on the Service Instance to the request of data into Row processing, to obtain target data, comprising:
Video ID list is obtained based on the first preset service for being used to obtain video ID in Feed Service Instance;
Based in Feed Service Instance for obtaining the of the corresponding video information of each video ID in the video ID list Two preset services obtain the corresponding video information of each video ID in the video ID list, which is the Feed view The corresponding target data of frequency refresh requests.
Step 130 reads target data from local file.
Wherein, when successfully getting target data by the Service Instance every time, the target data base that will acquire In setting regular backup to the local file.Continue so that above-mentioned request of data is Feed video refresh request as an example, each base For obtaining the second preset service of the corresponding video information of each video ID in the video ID list in Feed Service Instance When obtaining the corresponding video information success of each video ID in the video ID list, by video information successfully got based on setting Set pattern then backs up to the local file.The local file refers specifically to the disk file of service server.
Illustratively, the target data that will acquire is based on setting regular backup to the local file, comprising:
Determine the data of preset ratio at random from the target data got;
By determining data backup to the local file.
For example, successfully having got 20 in a Feed video refresh request based on second preset service and having pushed away Recommend the video information of video, it is contemplated that the memory space problem of local file only believes the video of any 12 videos therein Breath is stored to local file.
The technical solution of the present embodiment, when the Service Instance of service server carrying can not integrally start, then from local File reads the response results that target data is requested as current data, realizes and reveals all the details to Service Instance entirety, improves The success rate of target data is obtained, and then improves the stability of operation system processing request of data.
Embodiment two
Fig. 3 is a kind of flow diagram for data request processing method that the embodiment of the present disclosure two provides.The present embodiment with It is embodied based on each optinal plan in above-described embodiment, provides optional data request processing method.Specifically The data request processing method is applied in Feed request scene, the Feed requests scene are as follows: user passes through client Feed video refresh request is sent, it, will when parent server corresponding with client receives the Feed video refresh request The Feed video refresh request is sent to corresponding service server, with the Service Instance by service server according to The hobby of client user calculates and searches the interested recommendation video of the client user, finally to the client Return to the interested recommendation video of user.Currently, there are many applications clients to recommend entertaining video exclusively for user, it is perfect Ground has catered to the hobby of each user, so that user's brush gets up to be so fond that will not let out of one's hand.In this way, leading to Feed pages of needs of client Carry huge day live data, the service pressure of service server corresponding with client be also it is growing day by day, in order to improve industry The stability of business server, proposes the data request processing scheme of the present embodiment.Referring specifically to shown in Fig. 3, the data are asked Processing method is asked to include the following steps:
Step 310, when receiving Feed video refresh request, judge it is corresponding with the Feed video refresh request Whether Feed Service Instance works normally, if the Service Instance works normally, continues to execute step 320, otherwise executes step Rapid 330.
Specifically, current each Feed Service Instance has a corresponding " 81nginx reality in Feed service framework Example ", nginx is a free, open source, high performance HTTP server and Reverse Proxy.The skill of the present embodiment Art scheme is substantially on the 81nginx plus one layer is revealed all the details, by judging Feed Service Instance for current Feed video brush Whether new request reports 500 or more error codes, if it is, determining that the Feed Service Instance can not start, directly from local File reads video information and returns to the Feed video refresh request transmission client, to guarantee basic user experience.
It should be noted that in Feed service framework, due to the enormous amount of the Feed video refresh request received, Very more Feed Service Instances can be set generally directed to the Feed video refresh request, when parent server receives Feed When video refresh request, it is real that the Feed video refresh request received can be sent at random to wherein any one Feed service Example, if the Feed Service Instance is directed to current 500 or more error code of Feed video refresh request report, then the Feed that will be received Video refresh request is sent to other Feed Service Instances, if all Feed Service Instances refresh for current Feed video 500 or more error codes are reported in request, then read video information from local file and return to client.
Step 320 obtains video ID based on the first preset service for being used to obtain video identifier ID in Feed Service Instance List;Based on pre- for obtaining the second of the corresponding video information of each video ID in the video ID list in Feed Service Instance If the corresponding video information of each video ID in video ID list described in service acquisition.
Wherein, the video information is the corresponding video content information of the video ID, is specifically included: video title letter Breath, the background music information of video, the code rate of video, frame per second information and author information of video etc..
Specifically, described obtain video based on the first preset service for being used to obtain video identifier ID in Feed Service Instance ID list, comprising:
By first preset service, video is obtained according to the interest characteristics of the Feed video refresh request sender ID list.
Wherein, the interest characteristics of the Feed video refresh request sender can be based on gender, the age, duty for sending user Industry, history viewing video type or history click behavior etc. are calculated.By will send the interest characteristics of user with The video type that each video ID is represented is based on preset rules and is matched, and is ranked up according to matching degree to each video ID, most Preceding a certain number of video ID are sorted at last as recommendation video ID list.
Further, if based on video ID column are obtained for obtaining the first preset service of video ID in Feed Service Instance Table failure, then the backup services based on the first preset service described in Feed Service Instance obtain video ID list.Based on Feed The backup services of first preset service described in Service Instance obtain video ID list, comprising:
By the backup services, pageview or the amount of thumbing up based on video each in video library obtain high fever video ID column Table.
In the present embodiment, the backup services are different from the service logic of first preset service, the clothes of backup services Logic of being engaged in is simpler, and the service logic of the first preset service is more complex, is regarded by the recommendation that first preset service is got Each video ID in frequency ID list is that Feed video refresh request sends the interested video ID of user, passes through the first default clothes The recommendation video ID that business obtains can send user to video refresh request and bring preferable user experience;And it is taken by the backup Each video ID being engaged in the video ID list got is the ID of high fever video, does not account for the hobby of user, therefore, It can guarantee the basic experience of user by the video ID that the backup services are got.It is corresponding, the first preset service processing The priority of Feed video refresh request is higher than the priority of backup services processing Feed video refresh request, when business takes When business device receives Feed video refresh request, is preferentially obtained based on first preset service and recommend video ID list, if base It is obtained in first preset service and recommends video ID list failure, then obtain high fever video ID column based on the backup services Table, to improve the stability of Feed service system.
It is understood that it is pre- not enable described first if obtaining video ID success based on first preset service If the backup services of service, and directly by second preset service, the corresponding video information of the video ID is obtained, and will The video information got is back to the transmitting terminal of Feed video refresh request, and the video information that will acquire simultaneously backs up to The local file of service server.
Further, if based on the view is obtained for obtaining the second preset service of video information in Feed Service Instance The corresponding video information failure of each video ID in frequency ID list, then based on the standby of the second preset service described in Feed Service Instance The corresponding video information of each video ID in video ID list described in part service acquisition, to improve the stability of Feed service system.
Step 330, from local file reading video data.
Wherein, when successfully getting video information by second preset service every time, or pass through described second When the backup services of preset service successfully get video information, the video information that will acquire is based on setting regular backup to institute Local file is stated, when can not integrally start to prevent the Feed Service Instance, the case where video information can not be obtained.It is understood that If the video ID is the interested recommendation video ID of user got by first preset service, back up What it is to local file is video information to recommend video information, if the video ID is the backup by first preset service The high fever video ID that service acquisition arrives, then the video information for backing up to local file is high fever video information.When the Feed takes When pragmatic example can not integrally start, by obtaining video information from the local file, so that client at least video can be with It plays, although the video may not be the interested video of existing customer end subscriber, user can at least be made to have video can be with Viewing, ensure that basic user experience, and then improve the stability of Feed service system.
The technical solution of the present embodiment is being based in Feed Service Instance every time for obtaining each video in video ID list When second preset service of the corresponding video information of ID successfully gets video information, the video information successfully got is backed up Video information is obtained as current from local file when all Feed Service Instances can not integrally start to local file The target data of Feed video refresh request returns to client, realizes and improves Feed service system stability, guarantees user Substantially the purpose experienced.
Embodiment three
Fig. 4 is a kind of structural schematic diagram for data request processing device that the embodiment of the present disclosure three provides.With reference to Fig. 4, number It include: judgment module 410, first processing module 420 and Second processing module 430 according to request processing unit;
Wherein, judgment module 410, for when a request for data is received, judging service corresponding with the request of data Whether example works normally;First processing module 420, it is real based on the service if being worked normally for the Service Instance Example handles the request of data, to obtain target data;Second processing module 430, if for the Service Instance without Method works normally, then reads target data from local file;Wherein, the Service Instance includes what current business server carried All preset services, when successfully getting target data by the Service Instance every time, the target data base that will acquire In setting regular backup to the local file.
Further, judgment module 410 is specifically used for:
When the Service Instance is less than preset value for the response identification that the request of data returns, the service is determined Example works normally;
When the Service Instance is more than or equal to the preset value for the response identification that the request of data returns, determine The Service Instance can not work normally.
Further, the target data that will acquire is based on setting regular backup to the local file, comprising:
Determine the data of preset ratio at random from the target data got;
By determining data backup to the local file.
Further, when the request of data is Feed video refresh request, first processing module 420 specifically includes the One processing unit and the second processing unit, wherein first processing units are used for: based in Feed Service Instance for obtaining video The first preset service for identifying ID obtains video ID list;The second processing unit is used to be based in Feed Service Instance for obtaining The second preset service of the corresponding video information of each video ID obtains in the video ID list respectively regards in the video ID list The corresponding video information of frequency ID;It is corresponding, when successfully getting video information by second preset service every time, will obtain The video information got is based on setting regular backup to the local file.
Further, the first processing units are specifically used for: by first preset service, being regarded according to the Feed The interest characteristics of frequency refresh requests sender obtain video ID list.
Further, first processing module 420 further include: third processing unit and fourth processing unit, wherein at third If reason unit is used to obtain video ID list failure based on the first preset service for being used to obtain video ID in Feed Service Instance, Then the backup services based on the first preset service described in Feed Service Instance obtain video ID list;Fourth processing unit is used for If based on each video in the video ID list is obtained for obtaining the second preset service of video information in Feed Service Instance The corresponding video information failure of ID, then the backup services based on the second preset service described in Feed Service Instance obtain the view The corresponding video information of each video ID in frequency ID list.
Further, the third processing unit is specifically used for: by the backup services, based on each video in video library Pageview or the amount of thumbing up obtain video ID list.
The technical solution of the present embodiment, when Service Instance corresponding with request of data can not integrally start, then from local File reads target data, realizes and reveals all the details to Service Instance, improves the success rate for obtaining target data, and then improve The stability of operation system processing request of data.
Method provided by disclosure any embodiment can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Example IV
Below with reference to Fig. 5, it illustrates the structural representations for the terminal device 400 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.End shown in Fig. 5 End equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 5, terminal device 400 may include processing unit (such as central processing unit, graphics processor etc.) 401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 408 Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with terminal device Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404 Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device 409, which can permit terminal device 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 5 shows tool There is the terminal device 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 409, or from storage device 408 It is mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned terminal device;It is also possible to individualism, and not It is fitted into the terminal device.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the end When end equipment executes, so that the terminal device: when a request for data is received, judging that service corresponding with the request of data is real Whether example works normally;If the Service Instance works normally, based on the Service Instance to the request of data at Reason, to obtain target data;If the Service Instance can not work normally, target data is read from local file;Wherein, institute Stating Service Instance is the Service Instance for carrying all preset services of current business server, is passing through the Service Instance every time When successfully getting target data, the target data that will acquire is based on setting regular backup to the local file.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or holds on remote computer or service server completely on the user computer for part Row.In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize internet Service provider is connected by internet).
Flow chart and block diagram in attached drawing, illustrate the method and computer program product according to the various embodiments of the disclosure Architecture, function and operation in the cards.In this regard, each box in flowchart or block diagram can represent one A part of module, program segment or code, a part of the module, program segment or code include it is one or more for realizing The executable instruction of defined logic function.It should also be noted that in some implementations as replacements, function marked in the box It can also can occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated can actually base Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.Being described in module or unit involved in the embodiment of the present disclosure can be realized by way of software, can also It is realized in a manner of through hardware.Wherein, module or the title of unit are not constituted under certain conditions to the module or list The restriction of member itself.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.
Note that above are only the preferred embodiment and institute's application technology principle of the disclosure.It will be appreciated by those skilled in the art that The present disclosure is not limited to specific embodiments described here, be able to carry out for a person skilled in the art it is various it is apparent variation, The protection scope readjusted and substituted without departing from the disclosure.Therefore, although being carried out by above embodiments to the disclosure It is described in further detail, but the disclosure is not limited only to above embodiments, in the case where not departing from disclosure design, also It may include more other equivalent embodiments, and the scope of the present disclosure is determined by the scope of the appended claims.

Claims (10)

1. a kind of data request processing method, which is characterized in that applied to the parent server of service server, the method packet It includes:
When a request for data is received, judge whether Service Instance corresponding with the request of data works normally;
If the Service Instance works normally, the request of data is handled based on the Service Instance, to obtain mesh Mark data;
If the Service Instance can not work normally, target data is read from local file;Wherein, the Service Instance is to hold The Service Instance for carrying all preset services of current business server, is successfully getting target by the Service Instance every time When data, the target data that will acquire is based on setting regular backup to the local file.
2. the method according to claim 1, wherein whether judging Service Instance corresponding with the request of data It works normally, comprising:
When the Service Instance is less than preset value for the response identification that the request of data returns, the Service Instance is determined It works normally;
When the Service Instance is more than or equal to the preset value for the response identification that the request of data returns, described in determination Service Instance can not work normally.
3. the method according to claim 1, wherein the target data that will acquire is standby based on setting rule Part to the local file, comprising:
Determine the data of preset ratio at random from the target data got;
By determining data backup to the local file.
4. method according to claim 1-3, which is characterized in that when the request of data is the refreshing of Feed video When request, the request of data is handled based on the Service Instance, to obtain target data, comprising:
Video ID list is obtained based on the first preset service for being used to obtain video identifier ID in Feed Service Instance;
Based on pre- for obtaining the second of the corresponding video information of each video ID in the video ID list in Feed Service Instance If the corresponding video information of each video ID in video ID list described in service acquisition;
It is corresponding, when successfully getting video information by second preset service every time, the video information that will acquire Based on setting regular backup to the local file.
5. according to the method described in claim 4, it is characterized in that, described be based in Feed Service Instance for obtaining video mark The first preset service for knowing ID obtains video ID list, comprising:
By first preset service, video ID column are obtained according to the interest characteristics of the Feed video refresh request sender Table.
6. according to the method described in claim 4, it is characterized by further comprising: if based on being used to obtain in Feed Service Instance The first preset service of video ID obtains video ID list failure, then based on the first preset service described in Feed Service Instance Backup services obtain video ID list;
If based on being obtained in the video ID list respectively in Feed Service Instance for obtaining the second preset service of video information The corresponding video information failure of video ID, then the backup services based on the second preset service described in Feed Service Instance obtain institute State the corresponding video information of each video ID in video ID list.
7. according to the method described in claim 6, it is characterized in that, based on the first preset service described in Feed Service Instance Backup services obtain video ID list, comprising:
By the backup services, pageview or the amount of thumbing up based on video each in video library obtain video ID list.
8. a kind of data request processing device characterized by comprising
Judgment module, for when a request for data is received, judging whether Service Instance corresponding with the request of data is normal Work;
First processing module, if being worked normally for the Service Instance, based on the Service Instance to the request of data It is handled, to obtain target data;
Second processing module reads target data from local file if can not work normally for the Service Instance;Its In, the Service Instance include current business server carrying all preset services, every time pass through the Service Instance at When function gets target data, the target data that will acquire is based on setting regular backup to the local file.
9. a kind of terminal device, which is characterized in that the equipment includes:
One or more processing units;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processing units, so that one or more of processing fill Set the data request processing method realized as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that program dress processed Set the data request processing method realized as described in any in claim 1-7 when execution.
CN201910612128.6A 2019-07-08 2019-07-08 A kind of data request processing method, apparatus, terminal device and storage medium Pending CN110347951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910612128.6A CN110347951A (en) 2019-07-08 2019-07-08 A kind of data request processing method, apparatus, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910612128.6A CN110347951A (en) 2019-07-08 2019-07-08 A kind of data request processing method, apparatus, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN110347951A true CN110347951A (en) 2019-10-18

Family

ID=68178459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910612128.6A Pending CN110347951A (en) 2019-07-08 2019-07-08 A kind of data request processing method, apparatus, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110347951A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925528A (en) * 2021-01-28 2021-06-08 北京达佳互联信息技术有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681860A (en) * 2016-12-01 2017-05-17 广东欧珀移动通信有限公司 Data backup method and data backup device
US20170142454A1 (en) * 2015-11-13 2017-05-18 Le Holdings (Beijing) Co., Ltd. Third-party video pushing method and system
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN109600672A (en) * 2018-10-19 2019-04-09 北京微播视界科技有限公司 Video content method for pushing and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170142454A1 (en) * 2015-11-13 2017-05-18 Le Holdings (Beijing) Co., Ltd. Third-party video pushing method and system
CN106681860A (en) * 2016-12-01 2017-05-17 广东欧珀移动通信有限公司 Data backup method and data backup device
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN109600672A (en) * 2018-10-19 2019-04-09 北京微播视界科技有限公司 Video content method for pushing and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925528A (en) * 2021-01-28 2021-06-08 北京达佳互联信息技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN112925528B (en) * 2021-01-28 2024-06-04 北京达佳互联信息技术有限公司 Data transmission method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10242336B1 (en) Inventory and delivery management
US10162870B2 (en) Historical summary visualizer for news events
US20220366459A1 (en) System and method for a professional services marketplace
US11269844B2 (en) Automated data labeling
US20180047038A1 (en) Leveraging hashtags to dynamically scope a target audience for a social network message
US8554776B1 (en) Prioritizing tasks
CN110334246A (en) A kind of data request processing method, apparatus, terminal device and storage medium
US10999333B2 (en) Contemporaneous feedback during web-conferences
US20090299868A1 (en) Method and system for providing bid information to a user in response to a service request
US20200034893A1 (en) Social infusion of media content
US20200133439A1 (en) Chat session dynamic user interface
CN110677267A (en) Information processing method and device
CN110351581A (en) A kind of data request processing method, apparatus, terminal device and storage medium
US9959562B1 (en) Method, medium, and system for local item fulfillment in a market hierarchy
CN110020162A (en) User identification method and device
US8055639B2 (en) System and method for offering complementary products / services
US20210103971A1 (en) Dynamic display of product features related to customer relevant preferences
US20200412682A1 (en) Feedback enabled network curation of relevant content thread
CN110347467A (en) A kind of data request processing method, apparatus, terminal device and storage medium
CN111782933B (en) Method and device for recommending book lists
US20190163830A1 (en) Customer service advocacy on social networking sites using natural language query response from site-level search results
WO2023246350A1 (en) Information display method and apparatus, and device and medium
US20200118193A1 (en) Digital content publisher negotiated transactional advertiser
CN110347951A (en) A kind of data request processing method, apparatus, terminal device and storage medium
US10397171B2 (en) Managing content disclosure on social networking sites

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: 20191018