CN110347488A - A kind of service processing method, device, terminal device and storage medium - Google Patents

A kind of service processing method, device, terminal device and storage medium Download PDF

Info

Publication number
CN110347488A
CN110347488A CN201910611407.0A CN201910611407A CN110347488A CN 110347488 A CN110347488 A CN 110347488A CN 201910611407 A CN201910611407 A CN 201910611407A CN 110347488 A CN110347488 A CN 110347488A
Authority
CN
China
Prior art keywords
service
destination service
destination
working condition
video
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
CN201910611407.0A
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 CN201910611407.0A priority Critical patent/CN110347488A/en
Publication of CN110347488A publication Critical patent/CN110347488A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present disclosure discloses a kind of service processing method, device, terminal device and storage medium, which comprises the working condition of monitoring objective service;If the working condition of the destination service meets trigger condition, fusing mechanism is triggered, the destination service is closed, forbids the destination service accessed;When receiving the access request of the destination service, the service in addition to the destination service is called;Wherein, the destination service and the service in addition to the destination service include the service realizing system function and being relied on.By the technical solution of the embodiment of the present disclosure, avalanche effect caused by avoiding because of destination service exception improves the stability of system.

Description

A kind of service processing method, device, 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 service processing method, device, end End equipment 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.Due to some application software clients The interest of the Feed pages of presentation content at end and the accuracy of commending contents have ideally catered to the interest love of each user It is good, attract 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, leading to some application software clients Feed pages of end needs 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 may bring huge economic loss to developer, while also will affect customer experience.Therefore, it answers Stability with Feed pages of software client is extremely important.
In the design of Feed frame, very more service routines is deployed, these service routines are referred to as realized specific The dependence service of Feed function.Such as the service routine for obtaining video ID (Identification, mark) list, it is used for Obtain the service routine of video elementary information or the service routine etc. for obtaining video background music.Each service routine simultaneously Between be likely present relation of interdependence, such as service routine for obtaining video elementary information needs to rely on for obtaining The service routine of video ID list, the service routine for obtaining video elementary information need to rely on for obtaining video ID list Service routine returns the result to obtain the basic information of associated video.The case where there are chain type calling between each service routine, However, some or certain several service routines may be because that some reasons can not be just in each service routine practical work process It often works and loses response, so will lead to other services for relying on the service routine (referring to the service routine that can not work normally) There is the overstocked situation of service request because that can not obtain response message in time in program, and it will cause avalanche effects when serious, lead It causes with the service routine (referring to the service routine that can not work normally) there are other service routines of dependence are unavailable, finally Lead to the collapse of entire frame.
Summary of the invention
The embodiment of the present disclosure provides a kind of service processing method, device, terminal device and storage medium, to avoid because of target Service avalanche effect caused by exception, the stability of lifting system.
In a first aspect, the embodiment of the present disclosure provides a kind of service processing method, comprising:
The working condition of monitoring objective service;
If the working condition of the destination service meets trigger condition, fusing mechanism is triggered, by the destination service It closes, forbids the destination service accessed;
When receiving the access request of the destination service, the service in addition to the destination service is called;
Wherein, the destination service and the service in addition to the destination service include realizing what system function was relied on Service.
Further, the working condition of the monitoring objective service includes:
Count the destination service it is called when, there is the error rate of mistake;
It is corresponding, if the working condition of the destination service meets trigger condition, trigger fusing mechanism, comprising:
If the destination service is called, the error rate for mistake occur reaches given threshold, then triggers fusing mechanism.
Further, the working condition of the monitoring objective service includes:
Count CPU (Central Processing Unit, the central processing list generated when the destination service is called Member) load;
It is corresponding, if the working condition of the destination service meets trigger condition, trigger fusing mechanism, comprising:
If the cpu load that the destination service generates when called reaches given threshold, fusing mechanism is triggered.
Further, when receiving the access request of the destination service, the clothes in addition to the destination service are called Business includes: to call the backup services of the destination service;
Wherein, the backup services of the destination service and the destination service have identical service function.
Further, when the destination service includes servicing for obtaining the Sati of video ID list, the calling institute The backup services for stating destination service include:
Rankedlist service is called, video ID list is read with the database serviced from Rankedlist;
Wherein, the Rankedlist service is the backup services of Sati service;
Video ID list in the database of the Rankedlist service is written by recommendation service, the recommendation service Function is acquired for realizing video information.
Further, the method also includes: triggering fusing mechanism when, start timing, and first setting duration after close Fusing mechanism is closed, the destination service is opened, allows the destination service accessed.
Further, the method also includes: count the destination service pent number in the second preset duration, It is if the number reaches threshold value, the destination service is offline.
Second aspect, the embodiment of the present disclosure additionally provide a kind of service processing device, which includes:
Monitoring modular, the working condition for monitoring objective service;
The module that fuses triggers fusing mechanism if the working condition for the destination service meets trigger condition, will The destination service is closed, and forbids the destination service accessed;
Calling module, for calling in addition to the destination service when receiving the access request of the destination service Service;
Wherein, the destination service and the service in addition to the destination service include realizing what system function was relied on Service.
Further, the monitoring modular includes:
When being called for counting the destination service, there is the error rate of mistake in statistic unit;
Corresponding, the fusing module is specifically used for:
If the destination service is called, the error rate for mistake occur reaches given threshold, then triggers fusing mechanism.
Further, the statistic unit is also used to: counting the cpu load generated when the destination service is called;
Corresponding, the fusing module is specifically used for:
If the cpu load that the destination service generates when called reaches given threshold, fusing mechanism is triggered.
Further, the calling module is specifically used for: calling the backup services of the destination service;
Wherein, the backup services of the destination service and the destination service have identical service function.
Further, when the destination service includes servicing for obtaining the Sati of video ID list, the calling mould Block is specifically used for Rankedlist service being called, to service from Rankedlist when receiving the access request of Sati service Database read video ID list;Wherein, the Rankedlist service is the backup services of Sati service;
Video ID list in the database of the Rankedlist service is written by recommendation service, the recommendation service Function is acquired for realizing video information.
Further, described device further include: timing module, for when trigger fusing mechanism, beginning timing, and the Fusing mechanism is closed after one setting duration, the destination service is opened, allows the destination service accessed.
Further, described device further include: statistical module, for counting the destination service in the second preset duration Pent number, it is if the number reaches threshold value, the destination service is offline.
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 service 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 service processing method as described in the embodiment of the present disclosure when program is executed by processing unit.
The service processing method that the embodiment of the present disclosure provides, meets trigger condition by the working condition in destination service When, fusing mechanism is triggered, the destination service is closed, forbids the destination service accessed, when receiving the target When the access request of service, service in addition to the destination service is called, wherein the destination service and remove the target Service except service includes the service realizing system function and being relied on, and realizes when destination service exception, skips the target The purpose of service improves the stability of system so as to avoid because of avalanche effect caused by destination service exception.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for service processing method that the embodiment of the present disclosure one provides;
Fig. 2 is a kind of flow diagram for service processing method that the embodiment of the present disclosure two provides;
Fig. 3 is a kind of flow diagram for service processing method that the embodiment of the present disclosure three provides;
Fig. 4 is a kind of structural schematic diagram for service processing device that the embodiment of the present disclosure four provides;
Fig. 5 is a kind of hardware structural diagram for terminal device that the embodiment of the present disclosure five 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 service processing method that the embodiment of the present disclosure one provides.This method is applicable to When the service that system relies on occurs abnormal, the case where being handled the service to avoid system avalanche effect, this method It can be executed by service processing device, which can be implemented by software and/or hardware, and be typically integrated into terminal, such as service Device.Referring specifically to shown in Fig. 1, the service processing method includes the following steps:
Step 110, the working condition of monitoring objective service.
Wherein, the destination service includes the service realizing system function and being relied on, by taking Feed system as an example, the target Service includes the Sati service realized the service of Feed stream various functions, such as obtain video ID list, obtains each video display The clause Item service of information, RPC (Remote Procedure Call, the remote procedure call) service for obtaining music etc. or Person is used to be packaged packing Pack service of each video related information etc..
Illustratively, the working condition of monitoring objective service, comprising:
Count the destination service it is called when, there is the error rate of mistake;
Specifically, in window phase, counting the calling when destination service is called with 10s for a sliding window As a result the number occurred respectively, wherein call result includes that successfully (indicating to return to correct information), failure (indicate to return wrong Information accidentally) and time-out (indicating in setting duration without return information).When destination service is called, there is the error rate of mistake (in window phase)=sum (fail+timeout)/calling is total (in window phase), i.e., call result " failure " occurs in window phase Number and " time-out " occur number and with invocation target service total degree ratio.
Alternatively, monitoring objective can also be taken by way of the cpu load generated when counting the destination service and being called The working condition of business.
The cpu load refers specifically to the CPU memory rate occupied when destination service operation.
If the working condition of step 120, the destination service meets trigger condition, fusing mechanism is triggered, it will be described Destination service is closed, and forbids the destination service accessed.
Wherein, the trigger condition includes: that error rate reaches given threshold, alternatively, what destination service generated when called Cpu load reaches given threshold.Specifically, if the error rate for mistake occur reaches setting threshold when the destination service is called Value, then trigger fusing mechanism;Alternatively, being triggered if the cpu load that the destination service generates when called reaches given threshold Fusing mechanism.
The fusing machine system is specifically the mechanism for closing the destination service, and the purpose is to forbid the destination service quilt The avalanche effect that system is caused in the destination service node is overstock in access to prevent a large amount of access request.Specifically, can lead to Closing of the setting Sofe Switch realization to the destination service is crossed, that is, automatically controls or manual control Sofe Switch is opened, cut off institute The accessed path of destination service is stated, forbids the destination service accessed to realize.Alternatively, real by setting physical switch Now to the closing of the destination service, such as kiosk closing or the power-off etc. that the destination service will be carried.
Step 130, when receiving the access request of the destination service, call clothes in addition to the destination service Business.
Wherein, the service in addition to the destination service includes the service realizing system function and being relied on, with Feed For system, it is assumed that the destination service is to obtain the service of Video Music, then the service in addition to the destination service can be with It is to be serviced for being packaged the packing Pack of each video related information.Further, the service in addition to the destination service is specific It can also be the downstream service of the destination service.The downstream service specifically refers to: when realizing specific system function, holding It has gone after the destination service, the service just executed.
The following process for illustrating above-mentioned service processing method in conjunction with concrete scene:
By taking Feed system as an example, the displaying function of video is now realized, implement process are as follows: by calling Sati service The ID list of high fever video is obtained, the high fever video refers to the higher video of pageview, is then based on described in Item service acquisition The displaying information (such as brief introduction, frame per second or code rate information of video) of each video in high fever video ID list, then it is based on music The background music of each video in service acquisition high fever video ID list arranges the ID of the video finally by Pack service is packaged The background music of table, the displaying information of each video and each video is packaged into the file for the Json format that client can identify. Assuming that the destination service is that music service then triggers fusing when the efforts state of music service meets trigger condition Mechanism closes the music service, when receiving the access request of music service, skips music service, calls directly and beats The Json format that packet Pack service can identify the displaying information package of the ID list of the video, each video at client File.By being turned off in time when something goes wrong in the music service, under the premise of ensuring basic system function, keep away Exempted to request to overstock in music service node because of a large amount of music service, so as to cause avalanche effect, improve entire Feed The stability of system.
The technical solution of the present embodiment, by triggering fusing machine when the working condition of destination service meets trigger condition System, the destination service is closed, and forbids the destination service accessed, when the access request for receiving the destination service When, call the service in addition to the destination service, wherein the destination service and the service in addition to the destination service The service relied on including realizing system function, realizes the purpose that the destination service is skipped when destination service exception, thus Avalanche effect caused by avoiding because of destination service exception improves the stability of system.
Embodiment two
Fig. 2 is a kind of flow diagram for service processing method that the embodiment of the present disclosure two provides.The present embodiment is with above-mentioned It is embodied based on each optinal plan in embodiment, provides optional service processing method, it is specifically molten in triggering After off line system, when receiving the access request of destination service, the backup services of the destination service are preferentially called, to avoid Ensure that system has preferable service function while avalanche effect.Shown in Figure 2, the service processing method specifically includes Following steps:
Step 210, the working condition of monitoring objective service.
If the working condition of step 220, the destination service meets trigger condition, fusing mechanism is triggered, it will be described Destination service is closed, and forbids the destination service accessed.
Step 230, when receiving the access request of the destination service, call the backup services of the destination service.
Wherein, the backup services of the destination service are also referred to as the service of revealing all the details of the destination service, refer to it is described Destination service has the service of same services function.Specifically, when receiving the access request of the destination service, it will be current Process automatically switches to the backup services of the destination service.
By taking Feed system as an example, it is assumed that the destination service is to service for obtaining the Sati of high fever video ID list, should Sati service is very important service in Feed system, because subsequent for obtaining each video display information in ID list Item service and the music service for obtaining each Video Music information in ID list all rely on the return knot of Sati service Fruit, if Sati service is abnormal, subsequent other services for relying on Sati service also be can not work normally, in this way, entire Feed system The video display function of system then cannot achieve.Therefore, when the system core services exception, in order to ensure the basic service function of system Can, the present embodiment proposes the scheme for automatically switching to the backup services of destination service when destination service exception, that is, works as Sati After service is blown, if receiving the access request of Sati service, the backup services for calling Sati to service obtain high thermovision The backup services of frequency ID list, the Sati service are, for example, that the service of video ID list, local file are read from local file The generating process of middle video ID list are as follows: when history calls Sati to service successfully, the video ID list of return is cached to this Ground file.
Further, calling the backup services of Sati service may also is that
Rankedlist service is called, video ID list is read with the database serviced from Rankedlist;
Wherein, the Rankedlist service is the backup services of Sati service;The Rankedlist service Video ID list in database is written by recommendation service, and the recommendation service acquires function for realizing video information.It pushes away The database that Sati service is written in the ID list of the high fever video filtered out by service in real time is recommended, therefore, Sati service can obtain Get the highest video ID list of real-time.In order to reduce the workload of server to the greatest extent, setting recommendation service will be filtered out The database of Rankedlist service is periodically written in the ID list of high fever video, therefore the video ID of Rankedlist service acquisition is arranged The real-time of table is lower than the real-time for the video ID list that Sati service acquisition arrives, but learns the two difference by business practice And less, therefore when Sati service exception is blown, the video ID column of quantity can be set based on Rankedlist service acquisition Table, to guarantee the basic service function of Feed system.
In this way, can ensure the basic clothes of system by switching to the backup services of destination service when destination service exception Business function, and then ensure basic user experience, to realize the purpose for improving system stability.
Step 240 continues to call the downstream service of the destination service.
Continuing to use the example above, it is assumed that the destination service is to service for obtaining the Sati of high fever video ID list, Then the downstream service of the destination service includes servicing and using for obtaining the Item of the basic information of each video in ID list In the music service etc. for obtaining the music information of each video in ID list.
The technical solution of the present embodiment after destination service is blown extremely, passes through on the basis of the above embodiments The backup services for automatically switching to destination service are realized when the kernel service exception of system, while avoiding avalanche effect The purpose for ensuring basic services function improves the stability of system, and the user experience is improved.
Embodiment three
Fig. 3 is a kind of flow diagram for service processing method that the embodiment of the present disclosure three provides.The present embodiment is with above-mentioned It is embodied based on each optinal plan in embodiment, provides optional service processing method, it is specifically molten in triggering When off line, starts timing, and close fusing mechanism after the first setting duration, the destination service is opened, institute is allowed It is accessed to state destination service, with cope with destination service because of unknown cause of short duration abnormal situation.It is shown in Figure 3, the clothes Business processing method specifically comprises the following steps:
Step 310, the working condition of monitoring objective service.
If the working condition of step 320, the destination service meets trigger condition, fusing mechanism is triggered, it will be described Destination service is closed, and it is accessed to forbid the destination service, and start timing.
Step 330, when receiving the access request of the destination service, call clothes in addition to the destination service Business.
Step 340 closes fusing mechanism after the first setting duration, and the destination service is opened, the mesh is allowed Mark service is accessed.
Wherein, the first setting duration can be set according to business experience.For example, in actual business procession In, when a service can not work normally because not knowing reason while restarting (such as kiosk), usually how long after can Voluntarily restore, then can by it is described first setting duration be set as how long.
Further, for the stability of lifting system, the service processing method further include: count the destination service The pent number in the second preset duration, it is if the number reaches threshold value, the destination service is offline, described second Preset duration is typically larger than the first setting duration, it is intended to the stability of the destination service is examined, if the destination service Often there is exception, then shows that the destination service does not adapt to current system, need to be improved, therefore the target is taken It is engaged in offline.
The technical solution of the present embodiment, on the basis of the above embodiments, when destination service exception-triggered fuses mechanism, Start timing, and close fusing mechanism after the first setting duration, the destination service is opened, the destination service is allowed It is accessed, with cope with destination service because of unknown cause of short duration abnormal situation, and it is default second to count the destination service Pent number in duration, it is if the number reaches threshold value, the destination service is offline, it realizes and avoids avalanche effect While, the purpose of each destination service stability is promoted, and then improve the stability of system.
Example IV
Fig. 4 is a kind of structural schematic diagram for service processing device that the embodiment of the present disclosure four provides.It is shown in Figure 4, clothes Business processing unit includes: monitoring modular 410, fusing module 420 and calling module 430;
Wherein, monitoring modular 410, the working condition for monitoring objective service;Fuse module 420, if being used for the mesh The working condition of mark service meets trigger condition, then triggers fusing mechanism, the destination service is closed, forbid the target Service is accessed;Calling module 430, for when receiving the access request of the destination service, calling except the target takes Service except business;Wherein, the destination service and the service in addition to the destination service include realizing system function institute The service of dependence.
Further, monitoring modular 410 includes:
When being called for counting the destination service, there is the error rate of mistake in statistic unit;
Corresponding, fusing module 420 is specifically used for:
If the destination service is called, the error rate for mistake occur reaches given threshold, then triggers fusing mechanism.
Further, the statistic unit is also used to: counting the cpu load generated when the destination service is called;
Corresponding, the fusing module 420 is specifically used for:
If the cpu load that the destination service generates when called reaches given threshold, fusing mechanism is triggered.
Further, calling module 430 is specifically used for: calling the backup services of the destination service;
Wherein, the backup services of the destination service and the destination service have identical service function.
Further, when the destination service includes servicing for obtaining the Sati of video ID list, the calling mould Block 430 is specifically used for Rankedlist service being called, to take from Rankedlist when receiving the access request of Sati service The database of business reads video ID list;
Wherein, the Rankedlist service is the backup services of Sati service;The Rankedlist service Video ID list in database is written by recommendation service, and the recommendation service acquires function for realizing video information.
Further, described device further include: timing module, for when trigger fusing mechanism, beginning timing, and the Fusing mechanism is closed after one setting duration, the destination service is opened, allows the destination service accessed.
Further, described device further include: statistical module, for counting the destination service in the second preset duration Pent number, it is if the number reaches threshold value, the destination service is offline.
The technical solution of the present embodiment, by triggering fusing machine when the working condition of destination service meets trigger condition System, the destination service is closed, and forbids the destination service accessed, when the access request for receiving the destination service When, call the service in addition to the destination service, wherein the destination service and the service in addition to the destination service The service relied on including realizing system function, realizes the purpose that the destination service is skipped when destination service exception, thus Avalanche effect caused by avoiding because of destination service exception improves the stability of system.
Method provided by disclosure any embodiment can be performed in the said goods, has the corresponding functional module of execution method And beneficial effect.
Embodiment five
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: the working condition of monitoring objective service;If the working condition of the destination service accords with Trigger condition is closed, then triggers fusing mechanism, the destination service is closed, forbids the destination service accessed;Work as reception To the destination service access request when, call service in addition to the destination service;Wherein, the destination service and Service in addition to the destination service includes the service realizing system function and being relied on.
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 service processing method characterized by comprising
The working condition of monitoring objective service;
If the working condition of the destination service meets trigger condition, fusing mechanism is triggered, the destination service is closed, Forbid the destination service accessed;
When receiving the access request of the destination service, the service in addition to the destination service is called;
Wherein, the destination service and the service in addition to the destination service include the clothes realizing system function and being relied on Business.
2. the method according to claim 1, wherein the working condition of the monitoring objective service includes:
Count the destination service it is called when, there is the error rate of mistake;
It is corresponding, if the working condition of the destination service meets trigger condition, trigger fusing mechanism, comprising:
If the destination service is called, the error rate for mistake occur reaches given threshold, then triggers fusing mechanism.
3. the method according to claim 1, wherein the working condition of the monitoring objective service includes:
Count the central processing unit CPU load generated when the destination service is called;
It is corresponding, if the working condition of the destination service meets trigger condition, trigger fusing mechanism, comprising:
If the cpu load that the destination service generates when called reaches given threshold, fusing mechanism is triggered.
4. method according to claim 1-3, which is characterized in that when the access for receiving the destination service is asked When asking, calling the service in addition to the destination service includes: to call the backup services of the destination service;
Wherein, the backup services of the destination service and the destination service have identical service function.
5. according to the method described in claim 4, it is characterized in that, when the destination service includes for obtaining video identifier ID When the Sati service of list, the backup services for calling the destination service include:
Ranked list Rankedlist service is called, video ID list is read with the database serviced from Rankedlist;
Wherein, the Rankedlist service is the backup services of Sati service;The data of the Rankedlist service Video ID list in library is written by recommendation service, and the recommendation service acquires function for realizing video information.
6. method according to claim 1-3, which is characterized in that further include: when triggering fusing mechanism, start to count When, and fusing mechanism is closed after the first setting duration, the destination service is opened, allows the destination service interviewed It asks.
7. method according to claim 1-3, which is characterized in that further include: the destination service is counted Pent number in two preset durations, it is if the number reaches threshold value, the destination service is offline.
8. a kind of service processing device characterized by comprising
Monitoring modular, the working condition for monitoring objective service;
The module that fuses triggers fusing mechanism if the working condition for the destination service meets trigger condition, will be described Destination service is closed, and forbids the destination service accessed;
Calling module, for calling the clothes in addition to the destination service when receiving the access request of the destination service Business;
Wherein, the destination service and the service in addition to the destination service include the clothes realizing system function and being relied on Business.
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 service 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 service processing method realized as described in any in claim 1-7 when execution.
CN201910611407.0A 2019-07-08 2019-07-08 A kind of service processing method, device, terminal device and storage medium Pending CN110347488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910611407.0A CN110347488A (en) 2019-07-08 2019-07-08 A kind of service processing method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910611407.0A CN110347488A (en) 2019-07-08 2019-07-08 A kind of service processing method, device, terminal device and storage medium

Publications (1)

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

Family

ID=68178440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910611407.0A Pending CN110347488A (en) 2019-07-08 2019-07-08 A kind of service processing method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110347488A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143069A (en) * 2019-12-27 2020-05-12 杭州数梦工场科技有限公司 Service management method, device, electronic equipment and storage medium
CN111178888A (en) * 2019-12-30 2020-05-19 中国银行股份有限公司 Management method and system for payment service
CN111770134A (en) * 2020-05-25 2020-10-13 国电南瑞科技股份有限公司 Service fusing method based on service quality
CN111882067A (en) * 2020-07-24 2020-11-03 北京睿知图远科技有限公司 Dynamic fusing algorithm based on data statistics and electronic equipment
CN112000394A (en) * 2020-08-27 2020-11-27 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for accessing an applet
CN113676434A (en) * 2020-05-13 2021-11-19 华为技术有限公司 Network resource fusing method and device, electronic equipment and storage medium
CN113760589A (en) * 2021-02-05 2021-12-07 北京京东振世信息技术有限公司 Service fusing method and device based on real-time stream processing framework

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1943090A (en) * 2004-04-13 2007-04-04 C.&E.泛音有限公司 Series motor and method for controlling the same
JP2012164116A (en) * 2011-02-07 2012-08-30 Hitachi Systems Ltd Mail server protection system and mail server protection method
CN107171828A (en) * 2017-04-18 2017-09-15 北京思特奇信息技术股份有限公司 It is a kind of to tackle overtime blowout method and the system that far call is relied on
CN107819797A (en) * 2016-09-12 2018-03-20 平安科技(深圳)有限公司 Access request treating method and apparatus
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN108429812A (en) * 2018-03-21 2018-08-21 上海艾融软件股份有限公司 A kind of IP curings that traditional financial system micro services are implemented
CN108712309A (en) * 2018-06-11 2018-10-26 郑州云海信息技术有限公司 A kind of micro services node means of defence under micro services framework and system
CN109032783A (en) * 2018-08-01 2018-12-18 杭州朗和科技有限公司 Information interacting method, medium, device and calculating equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1943090A (en) * 2004-04-13 2007-04-04 C.&E.泛音有限公司 Series motor and method for controlling the same
JP2012164116A (en) * 2011-02-07 2012-08-30 Hitachi Systems Ltd Mail server protection system and mail server protection method
CN107819797A (en) * 2016-09-12 2018-03-20 平安科技(深圳)有限公司 Access request treating method and apparatus
CN107171828A (en) * 2017-04-18 2017-09-15 北京思特奇信息技术股份有限公司 It is a kind of to tackle overtime blowout method and the system that far call is relied on
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN108429812A (en) * 2018-03-21 2018-08-21 上海艾融软件股份有限公司 A kind of IP curings that traditional financial system micro services are implemented
CN108712309A (en) * 2018-06-11 2018-10-26 郑州云海信息技术有限公司 A kind of micro services node means of defence under micro services framework and system
CN109032783A (en) * 2018-08-01 2018-12-18 杭州朗和科技有限公司 Information interacting method, medium, device and calculating equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143069A (en) * 2019-12-27 2020-05-12 杭州数梦工场科技有限公司 Service management method, device, electronic equipment and storage medium
CN111178888A (en) * 2019-12-30 2020-05-19 中国银行股份有限公司 Management method and system for payment service
CN113676434A (en) * 2020-05-13 2021-11-19 华为技术有限公司 Network resource fusing method and device, electronic equipment and storage medium
CN113676434B (en) * 2020-05-13 2023-03-24 华为技术有限公司 Network resource fusing method and device, electronic equipment and storage medium
CN111770134A (en) * 2020-05-25 2020-10-13 国电南瑞科技股份有限公司 Service fusing method based on service quality
CN111770134B (en) * 2020-05-25 2024-03-29 国电南瑞科技股份有限公司 Service fusing method based on service quality
CN111882067A (en) * 2020-07-24 2020-11-03 北京睿知图远科技有限公司 Dynamic fusing algorithm based on data statistics and electronic equipment
CN112000394A (en) * 2020-08-27 2020-11-27 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for accessing an applet
CN112000394B (en) * 2020-08-27 2024-01-09 北京百度网讯科技有限公司 Method, apparatus, device and storage medium for accessing applet
CN113760589A (en) * 2021-02-05 2021-12-07 北京京东振世信息技术有限公司 Service fusing method and device based on real-time stream processing framework

Similar Documents

Publication Publication Date Title
CN110347488A (en) A kind of service processing method, device, terminal device and storage medium
US9143625B2 (en) Selection of wireless devices and service plans
US20150178657A1 (en) Systems and methods for incident queue assignment and prioritization
CN105991694B (en) A kind of method and apparatus realizing Distributed Services and calling
US20230244541A1 (en) Cloud Resource Management Method and Apparatus, Computer Device, and Storage Medium
CN110022227A (en) Method for processing business, device, equipment and storage medium
CN108536578A (en) A kind of test method and device
CN108737132A (en) A kind of alarm information processing method and device
CN107239987A (en) Order processing method and device
CN108734317A (en) Net about vehicle order information processing method and processing device
CN109992473A (en) Monitoring method, device, equipment and the storage medium of application system
CN109428977A (en) Interactive voice answering exchange method and device
CN112770145B (en) Scheduling method and system for video monitoring platform
US10382977B2 (en) Apparatus and method for monitoring operations in a satellite communication system
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN107592343A (en) Data processing method, device, computer-readable recording medium and electronic equipment
CN109814863A (en) A kind of processing method, device, computer equipment and computer storage medium for requesting returned data
CN108153795A (en) A kind of data processing method, system and the device of electronics red packet
CN110347467A (en) A kind of data request processing method, apparatus, terminal device and storage medium
CN112799824A (en) Current limiting method, device, equipment and storage medium
CN109933508A (en) Method and apparatus for sending information
CN109740307A (en) A kind of right management method and equipment
CN107438097A (en) Network request processing method and processing device
CN110489392A (en) Data access method, device, system, storage medium and equipment between multi-tenant
CN106528733A (en) Webpage display method and apparatus

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