CN110266813A - 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
CN110266813A
CN110266813A CN201910611385.8A CN201910611385A CN110266813A CN 110266813 A CN110266813 A CN 110266813A CN 201910611385 A CN201910611385 A CN 201910611385A CN 110266813 A CN110266813 A CN 110266813A
Authority
CN
China
Prior art keywords
data
video
request
preset service
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910611385.8A
Other languages
Chinese (zh)
Other versions
CN110266813B (en
Inventor
林明星
张晓聪
张小斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910611385.8A priority Critical patent/CN110266813B/en
Publication of CN110266813A publication Critical patent/CN110266813A/en
Application granted granted Critical
Publication of CN110266813B publication Critical patent/CN110266813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Computer Graphics (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, the described method includes: when a request for data is received, it determines the preset service for handling the request of data, target data is obtained based on the preset service;If obtaining target data failure based on the preset service, target data is read from local file;Service acquisition information to be put corresponding with the target data is launched by information;The information to be put and the target data are back to the request of data transmitting terminal.By the technical solution of the embodiment of the present disclosure, the purpose for improving the advertisement benefit for guaranteeing operation system while target data obtains success rate is realized.

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 mentioned with realizing High target data guarantees the advertisement benefit of operation system while obtaining success rate.
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, it determines the preset service for handling the request of data, is based on the default clothes Business obtains target data;
If obtaining target data failure based on the preset service, target data is read from local file;
Service acquisition information to be put corresponding with the target data is launched by information;
The information to be put and the target data are back to the request of data transmitting terminal.
Further, when based on the preset service successfully getting target data every time, the target that will successfully get Data backup is to the local file.
Further, described to determine the preset service for handling the request of data when a request for data is received, packet It includes:
The preset service for handling the request of data is determined based on preset data request processing process;
Alternatively, the request target requested based on the data determines the preset service for handling the request of data.
Further, described based at preset request of data when the request of data received is video refresh request Reason process determines the preset service for handling the request of data, comprising:
Based on preset video refresh request process flow determine for obtain the first preset service of video identifier ID with And the second preset service for obtaining the corresponding video information of the video ID.
It is further, described that target data is obtained based on the preset service, comprising:
By first preset service, video ID is obtained according to the interest characteristics of the video refresh request sender;
By second preset service, the corresponding video information of the video ID is obtained;
It is corresponding, when successfully getting video information based on second preset service every time, the view that will successfully get Frequency information is based on setting regular backup to the local file.
Further, fail if obtaining the corresponding video information of the video ID by second preset service, from Local file is read after video information, further includes:
Disappeared to the video information read and handled again, is refreshed to avoid identical video information is returned to the video The transmitting terminal of request.
Further, described that the video information successfully got is based on setting regular backup to the local file, packet It includes:
Determine the target information of preset ratio at random from the video information successfully got;
The local file is written into determining target information.
Further, the method also includes: if based on first preset service obtain video ID failure, pass through institute The backup services for stating the first preset service, pageview or the amount of thumbing up based on video each in video library obtain video ID;
If obtaining the corresponding video information failure of the video ID based on second preset service, it is based on described second The backup services of preset service obtain the corresponding video information of the video ID.
Further, the information to be put and the target data are back to the request of data transmitting terminal, comprising:
The information to be put is spliced with the target data based on setting splicing construction;
Spliced data are back to the request of data transmitting terminal.Second aspect, the embodiment of the present disclosure additionally provide A kind of data request processing device, the device include:
First object data acquisition module, for when a request for data is received, determining for handling the request of data Preset service, based on the preset service obtain target data;
Second target data obtains module, if for obtaining target data failure based on the preset service, from local File reads target data;
Data obtaining module to be put, it is corresponding with the target data to be put for launching service acquisition by information Information;
Return module, for the information to be put and the target data to be back to the request of data transmitting terminal.
Further, when based on the preset service successfully getting target data every time, the target that will successfully get Data backup is to the local file.
Further, the first object data acquisition module comprises determining that unit, for being based on preset request of data Process flow determines the preset service for handling the request of data;Alternatively, the request target requested based on the data is true Determine the preset service for handling the request of data.
Further, when the request of data received is video refresh request, the determination unit is specifically used for: being based on Preset video refresh request process flow is determined for obtaining the first preset service of video identifier ID and for obtaining State the second preset service of the corresponding video information of video ID.
Further, the first object data acquisition module further include: first acquisition unit, for passing through described first Preset service obtains video ID according to the interest characteristics of the video refresh request sender;By second preset service, Obtain the corresponding video information of the video ID;
It is corresponding, when successfully getting video information based on second preset service every time, the view that will successfully get Frequency information is based on setting regular backup to the local file.
Further, described device further includes the molality block that disappears, if for obtaining the view by second preset service The corresponding video information failure of frequency ID disappears to the video information read then after local file reading video information It handles again, to avoid the transmitting terminal that identical video information is returned to the video refresh request.
Further, the first object data acquisition module further include: second acquisition unit, if for based on described the One preset service obtains video ID failure, then by the backup services of first preset service, based on each video in video library Pageview or the amount of thumbing up obtain video ID;If obtaining the corresponding video letter of the video ID based on second preset service Breath failure, then the backup services based on second preset service obtain the corresponding video information of the video ID.
Further, the return module includes concatenation unit and return unit, wherein the concatenation unit is for being based on Setting splicing construction splices the information to be put with the target data;
The return unit is used to spliced data being back to the request of data transmitting terminal.
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, determining and using In the preset service for handling the request of data, target data is obtained based on the preset service;If being based on the preset service Target data failure is obtained, then reads target data from local file;Service acquisition and the target data are launched by information Corresponding information to be put;The information to be put and the target data are back to the request of data transmitting terminal;Wherein, When successfully getting target data based on the preset service every time, the target data successfully got is backed up into the local The technological means of file realizes the mesh for improving the advertisement benefit for guaranteeing operation system while target data obtains success rate 's.
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 flow diagram for data request processing method that the embodiment of the present disclosure two provides;
Fig. 3 is a kind of structural schematic diagram for data request processing device that the embodiment of the present disclosure three provides;
Fig. 4 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 request of data, can be executed by data request processing device, which can be by hardware and/or soft Part is constituted, and is generally integrated in server.Shown in Figure 1, the method specifically comprises the following steps:
Step 110, when a request for data is received, determines the preset service for handling the request of data, is based on institute It states preset service and obtains target data.
Wherein, the request of data includes the request of any request data, such as user wants to check circle of friends by mobile phone Certain picture, then user can by mobile phone to server send obtain image data request;Such as user wants to pass through again Certain of mobile phone applies brush entertaining video, then the request etc. for obtaining video data can be sent by relevant video refresh page.Institute The preset service for handling the request of data is stated to refer to for responding the request of data to obtain corresponding target data Service.
Illustratively, the determination is used to handle the preset service of the request of data, comprising:
The preset service for handling the request of data is determined based on preset data request processing process;
Alternatively, the request target requested based on the data determines the preset service for handling the request of data.
Wherein, if carrying out processing to the request of data needs to rely on the services of at least two different function, and it is described extremely It interdepends, then need to determine according to preset data request processing process for handling between the service of few two different function State the preset service of request of data.Such as it when the request of data is the video refresh request sent by client, is based on Preset video refresh request process flow determination is respectively as follows: for handling the preset service of the video refresh request for obtaining Take the service of the service of video ID video information corresponding with for obtaining the video ID.If at the request of data Reason only needs an independent service, then the request target that can be requested based on the data is determined for handling the request of data Preset service.For example, when the display request that the request of data is certain particular picture sent by client, then basis The request target (requesting the particular picture data) of display request determines the preset service for handling the display request Are as follows: from the service of picture library downloading particular picture data.
If step 120 obtains target data failure based on the preset service, target data is read from local file.
Wherein, the case where obtaining target data failure based on the preset service includes: the preset service for described Request of data returns to wrong data or the preset service for the request of data not returned data within the set duration. The data of the local file obtain in the following way: when successfully getting target data based on the preset service every time, The target data successfully got is backed up into the local file.Specifically, the problem of considering local file memory capacity, When obtaining target data success by the preset service every time, default ratio is determined at random from the target data successfully got The local file is written in determining target information by the target information of example.For example, passing through preset service success when previous 100 video informations are got, then the local file are written into any 20 video informations therein.
Step 130 launches service acquisition information to be put corresponding with the target data by information.
Wherein, the information to be put generally includes advertising information, and the information is launched service and referred to for by presetting canal The service of road acquisition advertising information.In order to realize ad revenue, advertisement delivery system need to be based on certain strategy by advertising information It is delivered to user, so that user enters the page of viewing advertising information from the entrance of setting, so that advertisement delivery system can To obtain the flow of the user, to generate corresponding ad revenue.The information is launched service and is particularly used for from advertisement The service of jettison system acquisition advertising information.The target data is the data of user's request, corresponding with the target data Information to be put refers to the advertising information for wishing to show user simultaneously with the target data, if such as the target data is view Frequency information, then the information to be put refers to the advertising information being interspersed in video information, it is intended to be improved by the video information The conversion ratio of advertising information wishes that the advertising information is watched by more users, to realize ad revenue.
The preset service for being commonly used for handling the request of data launches service to information is connected to, that is, passing through Corresponding information to be put can also be got by stating while preset service obtains target data, i.e., the described target data include to Impression information, and the related service docked by the preset service can carry out Ack to the information to be put (Acknowledgement confirms character), so that available by the message to be put that the preset service is got Corresponding economic benefit.However, when the preset service can not work normally, if reading the number of targets of caching from local file Message to be put in, this part message to be put due to can not be docked again by the preset service related service (because Can not work normally for the preset service, the related service of docking can not be called) to part information to be put Ack is carried out, therefore this part message to be put can not obtain corresponding economic benefit.It is wide in order to ensure operation system based on this Accuse benefit, the present embodiment propose data request processing method in, when based on the preset service obtain target data failure, from When local file reads target data, primary information is individually called to launch service again corresponding with the target data to obtain Information to be put, to realize corresponding economic benefit, it is ensured that the advertisement benefit of operation system.
The information to be put and the target data are back to the request of data transmitting terminal by step 140.
Specifically, the information to be put and the target data are back to the request of data transmitting terminal, comprising:
The information to be put is spliced with the target data based on setting splicing construction;
Spliced data are back to the request of data transmitting terminal.
Wherein, set splicing construction determines the positional relationship between information to be put and the target data, and The data format of the information to be put and the target data.For example, if the information to be put is advertising information, the mesh Mark data are video information, then the splicing construction determines what advertising information was shown when video playing to which in stage Problem, while also determining that the advertising information and the video information need to be ultimately converted to what client can identify JSON format.
The technical solution of the present embodiment, by when a request for data is received, determining for handling the request of data Preset service obtains target data based on the preset service;If obtaining target data failure based on the preset service, from Local file reads target data;Service acquisition information to be put corresponding with the target data is launched by information;By institute It states information to be put and the target data is back to the request of data transmitting terminal;Wherein, it is based on the preset service every time When successfully getting target data, the target data successfully got is backed up to the technological means of the local file, is realized Improve the purpose for guaranteeing the advertisement benefit of operation system while target data obtains success rate.
Embodiment two
Fig. 2 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 Video refresh request is sent, when server-side corresponding with client receives the refresh requests, according to the client user Hobby calculate and search the interested video of the client user, finally to the client return user it is interested Video.Currently, there are many applications clients to recommend entertaining video exclusively for user, ideally cater to each user's Hobby, so that user's brush gets up to be so fond that will not let out of one's hand.In this way, causing Feed pages of client to need to carry number living of huge day Be also according to, the service pressure of server-side corresponding with client it is growing day by day, in order to improve the stability of server-side, propose this The data request processing scheme of embodiment.Referring specifically to shown in Fig. 2, the data request processing method includes the following steps:
Step 210, when receiving video refresh request, based on preset video refresh request process flow determination be used for Obtain the first preset service of video identifier ID and the second default clothes for obtaining the corresponding video information of the video ID Business.
Include two steps the step of most critical in Feed service framework: the first step is to obtain the interested recommendation video of user ID;Second step is that the video information that obtains corresponding video information based on the recommendation video ID got, and will acquire returns It is shown to client with the refreshing for realizing video.Any one in above-mentioned two step, which goes wrong, all cannot achieve client Video refresh function, i.e., can not carry out video display in client, user cannot then watch entertaining video.Based on this, when When receiving video refresh request, determine that first for obtaining video ID is pre- based on preset video refresh request process flow If service and the second preset service for obtaining the corresponding video information of the video ID, and based on the described first default clothes Business, which obtains, recommends video ID, after successfully getting recommendation video ID, obtains the recommendation view based on second preset service The corresponding video information of frequency ID.
Step 220 passes through first preset service, is obtained according to the interest characteristics of the video refresh request sender Video ID.
Wherein, the interest characteristics of the video refresh request sender can based on send the gender of user, the age, occupation, History viewing video type or history click behavior etc. are calculated.By will send user interest characteristics and each view The video type that frequency ID is represented is based on preset rules and is matched, and is ranked up according to matching degree to each video ID, finally will Preceding a certain number of video ID sort as recommendation video ID.
If step 230 obtains video ID failure based on first preset service, pass through first preset service Backup services, pageview or the amount of thumbing up based on video each in video library obtain video ID.
Specifically, in the present embodiment, the business of the backup services of first preset service and first preset service Logic is different, and the service logic of the backup services is simpler, and the service logic of first preset service is more complex, passes through institute Stating recommendation video ID that the first preset service is got is that video refresh request sends the interested video ID of user, by this The recommendation video ID that one preset service is got can send user to video refresh request and bring preferable user experience;And pass through The video ID that the backup services are got is only the ID of high fever video, does not account for the hobby of user, therefore, is passed through The video ID that the backup services are got can guarantee the basic experience of user, and preferable experience can not be brought to user, be come with this The stability of raising system.
It is understood that if the backup services of first preset service are identical as the first preset service setting Service logic then need the corresponding considerable business of configuration that is, both for obtaining interested the recommendations video ID of user Server carries the service logic, certainly will so will lead to operation system higher cost, therefore, usually pre- by described first If the service logic setting of the backup services of service is relatively simple, it is only used for realizing that basic service function is basic to guarantee User experience.
It should be noted that if by the backup services of first preset service, based on the clear of video each in video library The amount of looking at or the amount of thumbing up obtain video ID failure, then video information are read from local file, to guarantee basic user experience.
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 step 240 is directly executed, by second preset service, it is corresponding to obtain the video ID Video information.
Step 240 passes through second preset service, obtains the corresponding video information of the video ID.
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..
It is corresponding, when successfully getting video information based on second preset service every time, the view that will successfully get Frequency information is based on setting regular backup to the local file.It is understood that if the video ID is to pass through described first The interested recommendation video ID of the user that preset service is got, then back up to local file is video information to recommend video Information backs up to if the video ID is the high fever video ID got by the backup services of first preset service The video information of local file is high fever video information.
Illustratively, described that the video information successfully got is based on setting regular backup to the local file, packet It includes:
Determine the target information of preset ratio at random from the video information successfully got;
The local file is written into determining target information.
If step 250 obtains the corresponding video information failure of the video ID based on second preset service, from institute It states local file and reads video information.
Further, if obtaining the corresponding video information failure of the video ID based on second preset service, may be used also Preferentially the backup services based on second preset service obtain the corresponding video information of the video ID, when based on described second When the corresponding video information of the backup services acquisition video ID of preset service fails, then video letter is read from local file Breath.It is corresponding, when backup services based on second preset service obtain video information success every time, the video that will acquire Information is based on preset rules and backs up to the local file.
It is understood that if obtaining the corresponding video information success of the video ID based on second preset service, Or the backup services based on second preset service obtain the corresponding video information success of the video ID, then will successfully obtain It gets video information and is back to video refresh request transmitting terminal.
Step 260, disappeared to the video information read is handled again, described in returning to identical video information The transmitting terminal of video refresh request.
Wherein, to the video information read disappeared the purpose handled again be avoid by identical video information return institute State the transmitting terminal of video refresh request.Specifically, each corresponding user of the video refresh request transmitting terminal, for example, needle To user a, by being recorded to the video ID for returning to user a every time, when needing to return to video ID to user a again, The video ID that previous ought need to return to user a is compared with recorded video ID, by duplicate video ID from It is deleted when in the previous video ID list for needing to return to user a, is presented to the user a, shadow to avoid by identical video information Ring user experience.Wherein, the mark of each user by the Customs Assigned Number that carries in the video refresh request or can be set Standby number is indicated.If obtained video ID quantity is 0 after the processing again that disappears, or the weight processing operation failure that disappears, then from The video information that local file reads preset quantity at random returns to client.
Step 270 launches service acquisition information to be put corresponding with the video information after the weight that disappears by information, will be described Information to be put is back to the video refresh request transmitting terminal with the video information after the weight that disappears.
It should be noted that in Feed service framework, being based on preset video brush when receiving video refresh request Newly the determining preset service for handling the video refresh request of request processing flow has very more, and above-mentioned is used to obtain The first preset service of video identifier ID and the second preset service for obtaining the corresponding video information of the video ID are only It is two more crucial preset services, other preset services for example further include the service for obtaining video background music, are used In the service for obtaining video paster ID and service for obtaining video metamessage (such as author and title etc. of video) Deng, all these non-key preset services are collectively referred to as RPC (Remote Procedure Call, remote procedure call) service, If any one RPC service can not work normally or unknowable system mistake leads to not successfully obtain video information, Data request processing method provided in this embodiment can be used, i.e., directly video information is read from local file, to ensure base This user experience.
The technical solution of the present embodiment, when the first preset service for obtaining video ID goes wrong and can not obtain view When the second preset service when frequency ID, or for obtaining video information goes wrong and can not obtain video information, Huo Zheyou When any one RPC service can not work normally and lead to not obtain video information or unknowable system mistake causes When can not successfully obtain video information, video information is read from local file, is realized to each default in Feed service framework Revealing all the details for service, improves the stability of Feed service framework, while ensure that corresponding advertisement benefit.
Embodiment three
Fig. 3 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. 3, number It include: first object data acquisition module 310, the second target data acquisition module 320, information to be put according to request processing unit Obtain module 330 and return module 340;
Wherein, first object data acquisition module 310, it is described for handling for when a request for data is received, determining The preset service of request of data obtains target data based on the preset service;Second target data obtains module 320, is used for If obtaining target data failure based on the preset service, target data is read from local file;Acquisition of information mould to be put Block 330, for launching service acquisition information to be put corresponding with the target data by information;Return module 340, is used for The information to be put and the target data are back to the request of data transmitting terminal;Wherein, every time based on described default It services when successfully getting target data, the target data successfully got is backed up into the local file.
Further, first object data acquisition module 310 comprises determining that unit, for being based on preset request of data Process flow determines the preset service for handling the request of data;Alternatively, the request target requested based on the data is true Determine the preset service for handling the request of data.
Further, when the request of data received is video refresh request, the determination unit is specifically used for: being based on Preset video refresh request process flow is determined for obtaining the first preset service of video identifier ID and for obtaining State the second preset service of the corresponding video information of video ID.
Further, first object data acquisition module 310 further include: first acquisition unit, for passing through described first Preset service obtains video ID according to the interest characteristics of the video refresh request sender;By second preset service, Obtain the corresponding video information of the video ID;
It is corresponding, when successfully getting video information based on second preset service every time, the view that will successfully get Frequency information is based on setting regular backup to the local file.
Further, described device further includes the molality block that disappears, if for obtaining the view by second preset service The corresponding video information failure of frequency ID disappears to the video information read then after local file reading video information It handles again, to avoid the transmitting terminal that identical video information is returned to the video refresh request.
Further, first object data acquisition module 310 further include: second acquisition unit, if for based on described the One preset service obtains video ID failure, then by the backup services of first preset service, based on each video in video library Pageview or the amount of thumbing up obtain video ID;If obtaining the corresponding video letter of the video ID based on second preset service Breath failure, then the backup services based on second preset service obtain the corresponding video information of the video ID.
Further, return module 340 includes concatenation unit and return unit, wherein the concatenation unit is for being based on Setting splicing construction splices the information to be put with the target data;The return unit is used for will be spliced Data are back to the request of data transmitting terminal.
A kind of data request processing device provided in this embodiment, by when a request for data is received, determining for locating The preset service of the request of data is managed, target data is obtained based on the preset service;If being obtained based on the preset service Target data failure, then read target data from local file;It is corresponding with the target data that service acquisition is launched by information Information to be put;The information to be put and the target data are back to the request of data transmitting terminal;Wherein, every time When successfully getting target data based on the preset service, the target data successfully got is backed up into the local file Technological means, realize improve target data obtain success rate while guarantee operation system advertisement benefit purpose.
Data request processing method provided by disclosure any embodiment, tool can be performed in above-mentioned data request processing device The standby corresponding functional module of execution method and beneficial effect.
Example IV
Below with reference to Fig. 4, 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. 4 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 4, 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. 4 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, determining for handling the default of the request of data Service obtains target data based on the preset service;If target data failure is obtained based on the preset service, from local File reads target data;Service acquisition information to be put corresponding with the target data is launched by information;Will it is described to Impression information and the target data are back to the request of data transmitting terminal;Wherein, every time based on preset service success When getting target data, the target data successfully got is backed up into 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 (11)

1. a kind of data request processing method characterized by comprising
When a request for data is received, it determines the preset service for handling the request of data, is obtained based on the preset service Take target data;
If obtaining target data failure based on the preset service, target data is read from local file;
Service acquisition information to be put corresponding with the target data is launched by information;
The information to be put and the target data are back to the request of data transmitting terminal.
2. the method according to claim 1, wherein it is described when a request for data is received, determine for handling The preset service of the request of data, comprising:
The preset service for handling the request of data is determined based on preset data request processing process;
Alternatively, the request target requested based on the data determines the preset service for handling the request of data.
3. according to the method described in claim 2, it is characterized in that, when the request of data received be video refresh request when, The preset service determined based on preset data request processing process for handling the request of data, comprising:
The first preset service and use for obtaining video identifier ID are determined based on preset video refresh request process flow In the second preset service for obtaining the corresponding video information of the video ID.
4. according to the method described in claim 3, it is characterized in that, described obtain target data, packet based on the preset service It includes:
By first preset service, video ID is obtained according to the interest characteristics of the video refresh request sender;
The corresponding video information of the video ID is obtained by second preset service;
It is corresponding, when successfully getting video information based on second preset service every time, the video successfully got is believed Breath is based on setting regular backup to the local file.
5. according to the method described in claim 4, it is characterized in that, if obtaining the video ID by second preset service Corresponding video information failure, then after local file reading video information, the method also includes:
Disappeared to the video information read and is handled again.
6. according to the method described in claim 4, it is characterized by further comprising: if obtaining view based on first preset service Frequency ID failure pageview based on video each in video library or thumbs up then by the backup services of first preset service Amount obtains video ID;
It is default based on described second if obtaining the corresponding video information failure of the video ID based on second preset service The backup services of service obtain the corresponding video information of the video ID.
7. method according to claim 1-6, which is characterized in that by the information to be put and the number of targets According to being back to the request of data transmitting terminal, comprising:
The information to be put is spliced with the target data based on setting splicing construction;
Spliced data are back to the request of data transmitting terminal.
8. the method according to claim 1, wherein successfully getting number of targets based on the preset service every time According to when, the target data successfully got is backed up into the local file.
9. a kind of data request processing device characterized by comprising
First object data acquisition module, for when a request for data is received, determining for handling the pre- of the request of data If service, target data is obtained based on the preset service;
Second target data obtains module, if for obtaining target data failure based on the preset service, from local file Read target data;
Data obtaining module to be put, for launching service acquisition letter to be put corresponding with the target data by information Breath;
Return module, for the information to be put and the target data to be back to the request of data transmitting terminal.
10. 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 realization such as data request processing method described in any one of claims 1-8.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that program dress processed Such as data request processing method described in any one of claims 1-8 is realized when setting execution.
CN201910611385.8A 2019-07-08 2019-07-08 Data request processing method and device, terminal equipment and storage medium Active CN110266813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910611385.8A CN110266813B (en) 2019-07-08 2019-07-08 Data request processing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910611385.8A CN110266813B (en) 2019-07-08 2019-07-08 Data request processing method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110266813A true CN110266813A (en) 2019-09-20
CN110266813B CN110266813B (en) 2022-03-15

Family

ID=67924992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910611385.8A Active CN110266813B (en) 2019-07-08 2019-07-08 Data request processing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110266813B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241137A (en) * 2020-01-08 2020-06-05 北京字节跳动网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN114547369A (en) * 2022-02-17 2022-05-27 上海连尚网络科技有限公司 Method, apparatus, medium, and program product for providing video

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239661A1 (en) * 2007-12-07 2012-09-20 Patrick Giblin Method and System for Meta-Tagging Media Content and Distribution
CN105100886A (en) * 2014-04-22 2015-11-25 腾讯科技(北京)有限公司 Publish control method and system of network media information, device and server
WO2018064939A1 (en) * 2016-10-09 2018-04-12 腾讯科技(深圳)有限公司 Method for disaster recovery of audio and video communication connection, apparatus and system
CN108108996A (en) * 2017-11-29 2018-06-01 北京百度网讯科技有限公司 Advertisement placement method, device, computer equipment and readable medium in video
CN109600672A (en) * 2018-10-19 2019-04-09 北京微播视界科技有限公司 Video content method for pushing and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120239661A1 (en) * 2007-12-07 2012-09-20 Patrick Giblin Method and System for Meta-Tagging Media Content and Distribution
CN105100886A (en) * 2014-04-22 2015-11-25 腾讯科技(北京)有限公司 Publish control method and system of network media information, device and server
WO2018064939A1 (en) * 2016-10-09 2018-04-12 腾讯科技(深圳)有限公司 Method for disaster recovery of audio and video communication connection, apparatus and system
CN108108996A (en) * 2017-11-29 2018-06-01 北京百度网讯科技有限公司 Advertisement placement method, device, computer equipment and readable medium in video
CN109600672A (en) * 2018-10-19 2019-04-09 北京微播视界科技有限公司 Video content method for pushing and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DOUGLAS MCILWRAITH DEL: ""Optimising Toward Completed Videos in an Online Video Advertising Exchange"", 《2018 IEEE 42ND ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC)》 *
战科宇等: "分布式文件系统元数据服务器高可用性设计", 《小型微型计算机系统》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241137A (en) * 2020-01-08 2020-06-05 北京字节跳动网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN111241137B (en) * 2020-01-08 2023-08-22 北京字节跳动网络技术有限公司 Data processing method, device, electronic equipment and storage medium
CN114547369A (en) * 2022-02-17 2022-05-27 上海连尚网络科技有限公司 Method, apparatus, medium, and program product for providing video

Also Published As

Publication number Publication date
CN110266813B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
US11586772B2 (en) Method and device for displaying information
US20240364940A1 (en) Resource processing method and apparatus, and electronic device, storage medium and program product
CN110334246A (en) A kind of data request processing method, apparatus, terminal device and storage medium
US12160620B2 (en) Information interaction method, apparatus and device
CN109753332A (en) Method and apparatus for showing information
WO2022022619A1 (en) Document editing method and apparatus, and electronic device
CN110351581A (en) A kind of data request processing method, apparatus, terminal device and storage medium
CN114053697A (en) Cloud game interaction method and device, readable medium and electronic equipment
CN110618768A (en) Information presentation method and device
CN110266813A (en) A kind of data request processing method, apparatus, terminal device and storage medium
CN110619101B (en) Method and apparatus for processing information
CN110347467A (en) A kind of data request processing method, apparatus, terminal device and storage medium
EP4207775A1 (en) Method and apparatus for determining object addition mode, electronic device, and medium
CN111641691B (en) Session message transmission method and device and electronic equipment
CN114417214A (en) Information display method, device and electronic device
EP4451143A1 (en) Template selection method and apparatus, and electronic device and storage medium
CN118368494A (en) Multimedia resource sharing method, device, medium, electronic equipment and program product
CN119067726A (en) Material creation method, device, electronic device, computer readable medium and product
CN109640023A (en) A kind of video recording method, device, server and storage medium
CN114648363A (en) Display content determining method and device, readable medium and electronic equipment
CN110347951A (en) A kind of data request processing method, apparatus, terminal device and storage medium
CN117636529A (en) An interactive method, device, electronic device, computer-readable medium
JP7797562B2 (en) Program, method, and information processing device
CN109918357A (en) Information playback method, device, electronic equipment and computer readable storage medium
CN109710070A (en) Information interacting method, device, electronic equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant