CN110399178A - A kind of call method of third party's service, device, electronic equipment and storage medium - Google Patents

A kind of call method of third party's service, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110399178A
CN110399178A CN201910515186.7A CN201910515186A CN110399178A CN 110399178 A CN110399178 A CN 110399178A CN 201910515186 A CN201910515186 A CN 201910515186A CN 110399178 A CN110399178 A CN 110399178A
Authority
CN
China
Prior art keywords
party
service
specified
class
shunt
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
CN201910515186.7A
Other languages
Chinese (zh)
Other versions
CN110399178B (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.)
58tongcheng Information Technology Co ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201910515186.7A priority Critical patent/CN110399178B/en
Publication of CN110399178A publication Critical patent/CN110399178A/en
Application granted granted Critical
Publication of CN110399178B publication Critical patent/CN110399178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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

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 invention discloses a kind of call method of third party's service, device, electronic equipment and storage mediums, the third party that will be dispersed in each operation system, which calls, is packaged into unified third party's service, creates for realizing the interface method of the corresponding function of multiple third party's services is called;Initial shunt ratio is configured in configuration center;It defines dynamic shunt proxy class and calls processing class, obtain specified services classification using dynamic shunt proxy class, and choose interface class corresponding with specified services classification and interface method;According to initial shunt ratio and random shunt ratio, realization class corresponding with the interface class and interface method of specified third party's service is matched;Class is handled using calling, calls implementation method corresponding with the realization class of specified third party's service.As it can be seen that method provided by the invention, by dynamic shunt mechanism, can configure suitable shunt ratio in the calling process of third party's service, to reach flexible calling process.

Description

A kind of call method of third party's service, device, electronic equipment and storage medium
Technical field
The present invention relates to internet information processing technology field more particularly to a kind of call methods of third party's service, dress It sets, electronic equipment and storage medium.
Background technique
For the business demand for meeting Current software system, software systems usually require to call a lot of other third party's services Interface.But in practical applications, and the definition of the interface of not all third party's service all follows the framework specification of called side, The request protocol that the interface of each third party's service defines, parameter, head information return to Value Types, and returning to code type may not It is identical.Therefore, when calling third party's service, the mode generallyd use be for each third party's service interface exploitation it is a set of Caller integrates in systems.
According to the business demand of software systems, software systems needs are docked with the interface of a variety of third party's services, and The various third party's services docked are dispersed in multiple operation systems in software systems.When realizing calling, business system System calls corresponding interface by a set of caller, to call corresponding third party's service by the interface.As it can be seen that most of Third party's service needs to carry out independent calling, so that there are diversified forms for the method for calling of interface in software systems.
In the case that each third party's service distribution in software systems is more dispersed, it is understood that there may be a third party's service Have in multiple operation systems the different method of calling of multiplicity or an operation system call two kinds with function of the same race the The case where call relations dispersion such as tripartite's service.If the call relation of third party's service excessively disperses, software systems can be made It is difficult to be managed concentratedly.
Summary of the invention
The present invention provides a kind of call method of third party's service, device, electronic equipment and storage mediums, existing to solve The inflexible problem of call method calling process of some third party's services.
In a first aspect, the present invention provides a kind of call methods of third party's service, comprising the following steps:
It creates for realizing the interface method of the corresponding function of multiple third party's services is called;
The specified services classification of the third party's service is obtained using dynamic shunt proxy class, and is chosen and the specified clothes The corresponding interface class of classification of being engaged in and interface method;
According to initial shunt ratio and random shunt ratio, matches and the interface class of the specified third party's service and connect The realization class of the corresponding specified third party's service of mouth method;The random shunt ratio generates at random in the matching process, described Initial shunt ratio is configured in configuration center;
Class is handled using calling, calls implementation method corresponding with the realization class of the specified third party's service.
Further, before the acquisition specified services classification using dynamic shunt proxy class, further includes:
In the initialization procedure of class, the third party's service attribute of configuration in load configuration center;
The key-value pair of the third party's service attribute of each service type and configuration and storage are established, dynamic shunt is formed Proxy class.
Further, described using processing class is called, call reality corresponding with the realization class of the specified third party's service Before existing method, further includes:
The metadata attributes of the corresponding implementation method of realization class of third party's service are obtained by reflection;
Fuse assembly is initialized according to the metadata attributes, realization side is called by the fuse assembly after initialization Method forms and calls processing class.
Further, it is described using dynamic shunt proxy class obtain third party's service specified services classification, and choose with The process of the specified services classification corresponding interface class and interface method, comprising:
The function for the third party's service called as needed chooses specified services classification;
Interface class corresponding with the specified services classification and interface method are obtained using the dynamic shunt proxy class.
Further, the initial shunt ratio of the basis and random shunt ratio are matched and are taken with the specified third party The process of the realization class of the corresponding specified third party's service of the interface class and interface method of business, comprising:
According to the initial shunt ratio, several random shunt ratios are generated;
Each random shunt ratio is matched with the initial shunt ratio, it is described random if there is one Shunt ratio is identical as the initial shunt ratio, and the realization of specified third party's service is identified according to the random shunt ratio Class;The realization class of the specified third party's service and the interface class and interface method of specified third party's service are corresponding.
Further, dynamic shunt attribute is configured in the interface method;When the dynamic shunt attribute includes time-out Between threshold value, fusing threshold values, window measurement period and health examination time.
Further, the method also includes:
After calling the function of corresponding third party's service according to the implementation method of the specified third party's service, institute is detected Whether the calling process for stating specified third party's service there is the case where overtime exception error;
If the specified third party's service has the case where overtime exception error, calculates the specified third party's service and go out The now time-out exception error corresponding period triggers degraded operation if the period is greater than the time-out time threshold value;
In the window measurement period, the number that overtime exception error occurs in the specified third party's service is counted, and Calculate error rate;
If the error rate is more than the fusing threshold values, the switch of fuse assembly is opened, and described will specify the Tripartite services corresponding shunt ratio and is configured to zero, terminates the calling process of the specified third party's service.
Further, the method also includes:
In the case where overtime exception error occurs in the specified third party's service, start thread pool dispatch service method, And according to specified third party's service described in health examination polling cycle recursive call;
If the specified third party's service response is timely within the health examination time, and, receive specified third The normal response that side's service returns, restores the calling process of the specified third party's service, and configures specified third party's clothes The shunt ratio of business is initial shunt ratio.
Second aspect, the embodiment of the invention provides a kind of calling devices of third party's service, comprising:
Interface method creation module, for creating the interface side for realizing the corresponding function of multiple third party's services is called Method;
Interface class and interface method choose module, for obtaining the specified clothes of third party's service using dynamic shunt proxy class Business classification, and choose interface class corresponding with the specified services classification and interface method;
Matching module, for matching and the specified third according to the initial shunt ratio and random shunt ratio The realization class of the corresponding specified third party's service of the interface class and interface method just serviced;The random shunt ratio was matching It is generated at random in journey, the initial shunt ratio is configured in configuration center;
Calling module, for calling reality corresponding with the realization class of the specified third party's service using processing class is called Existing method.
Further, further includes:
Loading unit, the third party's service attribute for being configured in load configuration center in the initialization procedure of class;
Dynamic shunt proxy class generation unit, for establishing the third party's service attribute of each service type and configuration Key-value pair and storage, formed dynamic shunt proxy class.
Further, further includes:
Information acquisition unit, the metadata of the corresponding implementation method of realization class for obtaining third party's service by reflection Attribute;
Processing class generation unit is called, for initializing fuse assembly according to the metadata attributes, passes through initialization Fuse assembly afterwards calls implementation method, is formed and calls processing class.
Further, the interface class and interface method choose module, comprising:
Specified services classification selection unit, the function of the third party's service for calling as needed choose specified services Classification;
Interface class and interface method selection unit, for being obtained and the specified services using the dynamic shunt proxy class The corresponding interface class of classification and interface method.
Further, the matching module, comprising:
Random shunt ratio generation unit, for generating several random shunt ratios according to the initial shunt ratio;
Matching unit, for matching each random shunt ratio with the initial shunt ratio, if deposited It is identical as the initial shunt ratio in a random shunt ratio, specified is identified according to the random shunt ratio The realization class of tripartite's service;The realization class of the specified third party's service and the interface class of specified third party's service and interface method It is corresponding.
Further, dynamic shunt attribute is configured in the interface method;When the dynamic shunt attribute includes time-out Between threshold value, fusing threshold values, window measurement period and health examination time.
Further, further includes:
Abnormal conditions detection module, for calling corresponding third party according to the implementation method of the specified third party's service After the function of service, whether the calling process for detecting the specified third party's service there is the case where overtime exception error;
Degraded operation trigger module is used for when the specified third party's service has overtime exception error, described in calculating There is the overtime exception error corresponding period in specified third party's service, and is greater than the time-out time threshold value in the period When, trigger degraded operation;
Error rate computing module occurs in the window measurement period, counting the specified third party's service The number of overtime exception error, and calculate error rate;
Calling process terminates module, for opening fuse assembly when the error rate is more than the fusing threshold values Switch, and configure zero for the corresponding shunt ratio of the specified third party's service, terminate the specified third party's service Calling process.
Further, further includes:
Service starting and recursive call module, for there is the case where overtime exception error in the specified third party's service Under, start thread pool dispatch service method, and, specify third party to take according to described in health examination polling cycle recursive call Business;
Calling process recovery module was used within the health examination time, and the specified third party's service response is timely, And the normal response that specified third party's service returns is received, restore the calling process of the specified third party's service, and configure The shunt ratio of the specified third party's service is initial shunt ratio.
The third aspect, the present invention also provides a kind of electronic equipment, comprising:
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize third described in first aspect The call method just serviced.
Fourth aspect is stored with computer program in the storage medium the present invention also provides a kind of storage medium, when When at least one processor of the calling device of third party's service executes the computer program, the calling device of third party's service Execute the call method of third party's service described in first aspect.
From the above technical scheme, the present invention provides a kind of call method of third party's service, device, electronic equipments And storage medium, the third party that will be dispersed in each operation system, which calls, is packaged into unified third party's service, creation for realizing Call the interface method of the corresponding function of multiple third party's services;Initial shunt ratio is configured in configuration center;Definition dynamic point It flows proxy class and calls processing class, obtain specified services classification using dynamic shunt proxy class, and choose and specified services classification Corresponding interface class and interface method;According to initial shunt ratio and random shunt ratio, match and specified third party's service Interface class and the corresponding specified third party's service of interface method realization class;Class is handled using calling, is called and specified third The corresponding implementation method of realization class just serviced.As it can be seen that method provided by the invention can be in the calling process of third party's service In, by dynamic shunt mechanism, suitable shunt ratio is configured, to reach flexible calling process.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, letter will be made to attached drawing needed in the embodiment below Singly introduce, it should be apparent that, for those of ordinary skills, without any creative labor, It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart of the call method of third party's service provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram provided in an embodiment of the present invention for forming dynamic shunt proxy class;
Fig. 3 is the method flow diagram provided in an embodiment of the present invention for obtaining interface class and interface method;
Fig. 4 is the method flow diagram of the realization class of identification third party's service provided in an embodiment of the present invention;
Fig. 5 is the method flow diagram provided in an embodiment of the present invention for being formed and calling processing class;
Fig. 6 is the flow chart of the call method for the third party's service that further embodiment of this invention provides;
Fig. 7 is the flow chart of the call method for the third party's service that yet another embodiment of the invention provides;
Fig. 8 is the structural block diagram of built-in resource testing device provided in an embodiment of the present invention;
Fig. 9 is the structural block diagram of software systems provided in an embodiment of the present invention;
Figure 10 is the hardware structural diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
A kind of call method of third party's service provided in an embodiment of the present invention, can collapse and be dispersed in each operation system Third party's service is packaged into the service that unified one calls comprising third party, is provided to each operation system and calls.Collecting All third party's services of middle administrative department's docking encapsulate the API unification that each third party's service is provided according to third party, And for providing the third party's service of same specified function, realizes and be based on dynamic proxy, the dynamic point of fusing and health examination Stream mechanism, while according to the overtime abnormal conditions of calling, the shunt ratio of flexible configuration third party's service reaches optimal third The calling effect just serviced.
Fig. 1 is the flow chart of the call method of third party's service provided in an embodiment of the present invention.Specifically, referring to Fig. 1, originally A kind of call method for third party's service that inventive embodiments provide, comprising the following steps:
S1, creation are for realizing the interface method for calling the corresponding function of multiple third party's services.
Each third party's service can provide a kind of function so that some operation system in software systems is called, and When the function is called, it is all made of unique method and realizes calling process.Specifically, it is mentioned for one or more third party's services The function of confession abstracts specific method and forms interface, and for being communicatively coupled with called side, this method is and third Side services corresponding interface method.
Different called sides realizes this interface method, can call the corresponding function of third service, each calling root The API provided according to third party's service realizes the calling logic of oneself for this interface method.
S2, specified services classification is obtained using dynamic shunt proxy class, and choose interface corresponding with specified services classification Class and interface method.
In the calling process of third party's service, the service class of specified third party's service is passed in dynamic shunt proxy class Not with corresponding interface class, interface method, the interface class and interface method are interface class and the interface side for specifying third party's service Method, for realizing calling process with called side.
To realize that the dynamic shunt in calling process, the present embodiment are realized using dynamic shunt proxy class, the dynamic It shunts proxy class to be determined according to the relationship between the service type of current third party service and third party's service attribute, i.e. basis The corresponding relationship of each service type and third party's service attribute generates dynamic shunt proxy class.
Agency is a kind of design pattern, provides an agent object to some object, and controlled for original by agent object The access of object does not manipulate former object directly, but manipulates former object indirectly by agent object.Dynamic proxy is agency Object agent way for creating when program is run, in this case, proxy class be not defined in the program code, and It is in program operation according to the instruction dynamic generation in code.That is, dynamic shunt proxy class can be in third party During service call, the shunt ratio of each third party's service is adjusted in real time.
For the generation for realizing dynamic shunt proxy class, initial shunt ratio and third party's service need to be configured in configuration center Attribute, third party's service attribute include the service type of all third party's services, the interface class and interface of all third party's services Method, and the realization class and implementation method of corresponding different third party's services.
And be to realize calling process, association attributes corresponding with each third party's service need to be configured.Specifically, in software system Configuration attribute relevant to current third party service in the configuration center of system, and, there is same specified function there are multiple Third party's service when, the initial shunt ratio of each third party's service.
The service type of third party's service refers to the affiliated type of each third party's service;The interface class of third party's service is The set of finger serial of methods feature, the interface class only methodical feature, but the realization without method, third party's service Interface class provides corresponding interface for called side, and the interface method of third party's service is used to provide for called side and realizes interface Mode.The interface method of each third party's service can be realized by different classes, and the interface method of the third party's service may be implemented Class be realize class, and specifically use realization the third party's service interface method for the implementation method of third party's service.
Initial shunt ratio refers to the accuracy and error rate that service is called according to history, distributes for each third party's service Default shunt ratio, if some third party's service mistake easily occurs in history calling process, then in subsequent calls In the process, then the assignment of traffic of the third party's service can be reduced;And if another third party's service in history calling process, There is the probability very little of mistake, calls success rate very high, then then will increase the third party's service during subsequent calls Assignment of traffic.
Initial shunt ratio is not the shunt ratio in current calling process of multiple third party's services, specific point Stream ratio needs to call situation to be readjusted according to current, to call multiple third parties to take using optimal shunt ratio Business, improves the flexibility of calling process.
Specifically, as shown in Fig. 2, method provided in this embodiment, is obtaining the third using dynamic shunt proxy class Before the specified services classification just serviced, that is, form the process of dynamic shunt proxy class, comprising:
S021, in the initialization procedure of class, load configuration center in configure third party's service attribute.
S022, establish each service type and configuration third party's service attribute key-value pair and storage, formed dynamic State shunts proxy class.
After at least one third party's service for determining to need to call, load what current needs called in configuration center The association attributes of third party's service, the service type including current third party service and connect the interface class of current third party service Mouth method, and the realization class and implementation method of corresponding different third party's services.
Current service classification and current third party Service Properties are established into key-value pair, and are stored in local cache, this mistake Journey is to form the process of dynamic shunt proxy class.
After generating Dynamic Separation proxy class, specified services classification need to be obtained using dynamic shunt proxy class.Specifically, As shown in figure 3, obtaining the specified services classification of third party's service using dynamic shunt proxy class, and choose and specified services classification The process of corresponding interface class and interface method, comprising:
The function of S21, the third party's service called as needed choose specified services classification.
S22, interface class corresponding with the specified services classification and interface side are obtained using the dynamic shunt proxy class Method.
The function of each third party's service corresponds to a kind of service type, can be true according to the function of specified third party's service It makes and needs the specified services classification called, and every kind of specified services classification corresponds to a kind of interface class and interface method therefore can The interface class and interface method of current third party service are obtained by dynamic shunt proxy class, are connected in order to realize with called side, And then according to the key-value pair of service type and third party's service in local cache, the realization class and reality of calling third party's service are gone Existing method.
S3, according to initial shunt ratio and random shunt ratio, match the interface class with specified third party's service and connect The realization class of the corresponding specified third party's service of mouth method;Random shunt ratio generates at random in the matching process, initial to shunt Ratio is configured in configuration center.
After the interface class and interface method for determining third party's service, need according at least one currently called third Shunt ratio is redistributed in side's service, determines the shunt ratio value of each third party's service, the present embodiment, which will use, initially to be divided Stream ratio and random shunt ratio carry out matched mode, to match the shunt ratio value of every kind of third party's service, and then really Make the realization class of the interface class and interface method for realizing third party's service.
Specifically, it as shown in figure 4, according to initial shunt ratio and random shunt ratio, matches and is taken with specified third party The process of the realization class of the corresponding specified third party's service of the interface class and interface method of business, comprising:
S31, according to initial shunt ratio, generate several random shunt ratios.
S32, each random shunt ratio is matched with the initial shunt ratio, if there is a random shunting Ratio is identical as initial shunt ratio, and the realization class of specified third party's service is identified according to random shunt ratio;Specified third The realization class just serviced is corresponding with the interface class and interface method of specified third party's service.
Random shunt ratio generates at random in the matching process, for example, if the third with same specified function Side's service is two, and the initial shunt ratio of two third party's services is 8:2, in order to accurately determine two third party's services Between shunt ratio, generate multiple random shunt ratios at random, can be for 7:3,6:4,5:5,4:6,3:7,8:2,2:8 etc., will Each random shunt ratio is matched with initial shunt ratio.
In the matching process, need to consider error rate of each third party's service in history calling process, if third Side service A shows high error rate in history calling process, then in this calling, it can be by the stream of third party's service A Amount distribution is turned down;If third party's service A shows low error rate in history calling process, calling process is smooth, then In this calling, the assignment of traffic of third party's service A can be turned up.Likewise, if third party's service B was called in history High error rate is shown in journey, then can turn down the assignment of traffic of third party's service B in this calling;If third Side service B shows low error rate in history calling process, and calling process is smooth, can be by the then in this calling The assignment of traffic that tripartite services B is turned up.
Therefore, random shunt ratio float with initial shunt ratio and be compared, if there is a random split ratio When example is identical as initial shunt ratio, illustrate that the shunt ratio of third party's service A and third party's service B is optimum ratio Value.Finally, identifying the realization class of specified third party's service according to the random shunt ratio that this is matched;Specified third party's service Realization class it is corresponding with the interface class and interface method of specified third party's service.
S4, class is handled using calling, calls implementation method corresponding with the realization class of specified third party's service.
After the realization class for determining specified third party's service, by calling processing class to go to call the corresponding realization of realization class Method completes the dynamic shunt mechanism in a normal calling procedure immediately.
After adjusting the shunt ratio of each third party's service using dynamic shunt proxy class dynamic, in the present embodiment, Realize the implementation method of interested third party service by calling processing class, therefore, it is necessary to according to the realization class of third party's service and Implementation method, and initialize generation calling processing class after fuse assembly.
The similar insurance wire feed mechanism of fuse assembly, if a line voltage distribution is excessively high, fuse can fuse, and prevent fire. And in distributed system calling process, if some service call is slow or has a large amount of time-out, the tune for the service that fuses at this time With subsequent calls request is not continuing invocation target third party's service, directly returns, with quick release resource.If target The improvement of tripartite's service scenario then restores to call.Therefore, fuse assembly handles class as a kind of calling, can be in some third party When the calling process of service occurs abnormal, the calling process of the third party's service is cut off, so that calling process restores normal.
Specifically, as shown in figure 5, method provided in this embodiment, handles class using calling, call and the specified third Before the corresponding implementation method of realization class just serviced, that is, as steps described below, generates and calls processing class:
S41, the metadata attributes that the corresponding implementation method of realization class of third party's service is obtained by reflecting.
S42, fuse assembly is initialized according to the metadata attributes, is called by the fuse assembly after initialization real Existing method forms and calls processing class.
During each calling third party's service, the note of the implementation method of current proxied class is obtained by reflection Metadata attributes, the as currently called third party's service of current proxied class.Note or metadata, belong to a kind of mark Note, usually statement is before class, field, method, for illustrating these elements.
Metadata attributes are the attribute explained, for characterizing the relevant parameter of class, field, method.According to metadata category Property characterization relevant parameter, initialize fuse assembly, finally, using initialization after fuse assembly call third party's service Implementation method, the process be formed call processing class process.
It, can be corresponding with the realization class of specified third party's service by calling processing class to call after generating calling processing class Implementation method.
From the above technical scheme, the embodiment of the invention provides a kind of call methods of third party's service, will disperse It is called in the third party of each operation system and is packaged into unified third party's service, creation is for realizing the multiple third party's services of calling The interface method of corresponding function;Initial shunt ratio is configured in configuration center;Define dynamic shunt proxy class and calling processing Class obtains specified services classification using dynamic shunt proxy class, and chooses interface class corresponding with specified services classification and interface Method;According to initial shunt ratio and random shunt ratio, the interface class and interface method with specified third party's service are matched The realization class of corresponding specified third party's service;Class is handled using calling, is called corresponding with the realization class of specified third party's service Implementation method.As it can be seen that method provided by the invention can pass through dynamic shunt machine in the calling process of third party's service System, configures suitable shunt ratio, to reach flexible calling process.
After a normal call, fuse assembly is started to work, if third party's service responds always normally, is melted The switch of disconnected device assembly is constantly in closed state.But if there are overtime abnormal conditions in third party's service less stable, at this time Switch need to be opened, currently called third party's service is handled using fuse assembly.
Whether there is calling response abnormality in order to more accurately determine current third party service, in the present embodiment, Dynamic shunt attribute is configured in interface method;Dynamic shunt attribute includes time-out time threshold value, fusing threshold values, window statistics Period and health examination time.
In the interface method that the function modeling provided according to third party's service obtains, dynamic shunt attribute is configured immediately, To configure the relevant parameter detected to third party's service.Time-out time threshold value is third party's service when called because can not The longest duration for needing to handle in time is responded, fusing threshold values is the receptible threshold values for causing minimum influence of fuse assembly, window Mouthful measurement period is the duration of the fixed statistics frequency of abnormity of fuse assembly setting, and the health examination time is to set in software systems The period for the progress security inspection set.
As shown in fig. 6, another embodiment of the present invention provides third party's service call method, further includes:
S701, according to specify third party's service implementation method call the function of corresponding third party's service after, detection Whether the calling process of specified third party's service there is the case where overtime exception error.
It is carried out in a calling process in third party's service, whether the real-time detection calling process overtime exception error occurs The case where, if there is overtime exception error, illustrate third party's service calling can not normal response, need to the calling process It is handled in time, in order to avoid there is the case where wasting of resources.
If S702, specified third party's service have the case where overtime exception error, calculates specified third party's service and occur The overtime exception error corresponding period triggers degraded operation if the period is greater than the time-out time threshold value.
After detecting that specified third party's service has the case where overtime exception error, time-out occurs for statistics abnormal wrong immediately Period accidentally can trigger degraded operation, if the period is more than time-out time threshold value to adjust the distribution of flow.
S703, in window measurement period, count specified third party's service and the number of overtime exception error occur, and calculate Error rate.
After carrying out downgrade processing, the number of overtime exception error occurs for statistics, and calculates in window measurement period, hair The error rate of raw time-out exception error, accurately to determine the need for opening the switch of fuse assembly.The error rate is used Whether the exception error situation occurred when illustrating that current third party service is called is serious, if error rate is less, explanation The case where overtime exception error, is not serious, can wait for a period of time and be responded for third party's service again, without being handled;But If error rate is more, the case where illustrating overtime exception error, is extremely serious, the third party's services such as no longer needs at this time and continues to ring It answers, but directly takes measures, avoid the wasting of resources.
If S704, error rate are more than fusing threshold values, the switch of fuse assembly is opened, and by specified third party's service Corresponding shunt ratio is configured to zero, terminates the calling process of specified third party's service.
Fusing threshold values is set according to the history error rate of each third party's service, the minimum shadow of the acceptable generation of system Loud error rate is the threshold values that fuses.For example, if third party's service A there are 100 mistakes, is directed to third party's service A Fusing threshold values be 100, if third party's service B exist 300 mistakes, be directed to third party's service B fusing threshold values be 300。
Whether the error rate for judging current third party service is more than fusing threshold values, if it does, illustrating current third party The case where response process appearance time-out exception error of service, is serious, need to open the switch of fuse assembly in time, and dropping In grade operating process, zero is configured by the shunt ratio of current third party service, directly rejects the flow of current third party service It calls, completes the dynamic shunt mechanism based on fuse in the case of overtime exception error immediately.
As it can be seen that, if overtime exception error situation occurs in third party's service, the present embodiment mentions after accessing third party's service The method of confession can carry out the downgrade processing that fuses in real time, it is ensured that current system can operate normally, and by effective disaster tolerance, prevent snowslide Effect.
As shown in fig. 7, the call method for the third party's service that further embodiment of this invention provides, further includes:
S801, in the case where there is overtime exception error in specified third party's service, start thread pool dispatch service method, And according to specified third party's service described in health examination polling cycle recursive call.
In the case where overtime exception error occurs in specified third party's service, fuse switch is opened, and in degraded operation In the process, while by current third party service it is added to health examination mechanism, utilizes health examination mechanism real-time detection third party Whether the calling process of service restores normally, i.e., starts a thread pool dispatch service method on system program backstage, according to strong Health checks the current third party service of polling cycle recursive call, to determine whether the third party's service can also be restored to respond.
If S802, within the health examination time, third party's service response is specified in time, and, receive specified third party The normal response returned is serviced, the calling process of specified third party's service is restored, and configures the split ratio of specified third party's service Example is initial shunt ratio.
Within the health detection time, if recursive call third party's service is gone using thread pool dispatch service method, at this Third party's service response in time, and can be returned the result normally, illustrate that current third party service can restore to respond, and restore current at this time The calling process of third party's service.And when re-calling third party's service, the shunt ratio of current third party service is initial Shunt ratio is completed third party's service immediately and is restored after there is overtime exception error situation, then through monitor check mechanism The dynamic shunt mechanism re-called.
In addition, when each third party's service normal request is called, or be blown device fusing and degrade, or in health examination Period, relevant information can be all recorded in log, with record it is current call time-consuming, fuse switch closing open number, Then degradation number carries out off-line analysis according to the log, form third party's service and call situation report.
As it can be seen that if there are many third party's services for providing identical function to be called, the method provided through this embodiment, Using dynamic shunt mechanism, service invariant report can be formed, and then suitable shunt ratio can be configured, reaches optimal tune With state, the flexibility of calling is improved.
As shown in figure 8, the embodiment of the invention provides a kind of calling device of third party's service, for executing such as Fig. 1 institute The correlation step of the call method for the third party's service shown, the device include:
Interface method creation module 10, for creating the interface for realizing the corresponding function of multiple third party's services is called Method;Interface class and interface method choose module 20, for obtaining the specified clothes of third party's service using dynamic shunt proxy class Business classification, and choose interface class corresponding with the specified services classification and interface method;Matching module 30, for according to Initial shunt ratio and random shunt ratio, match corresponding with the interface class of the specified third party's service and interface method The realization class of specified third party's service, the random shunt ratio generate at random in the matching process, the initial shunt ratio It is configured in configuration center;Calling module 40, for calling the reality with the specified third party's service using processing class is called The existing corresponding implementation method of class.
Further, further includes: loading unit, for being configured in load configuration center in the initialization procedure of class Third party's service attribute;Dynamic shunt proxy class generation unit, for establishing the third party of each service type and configuration The key-value pairs of Service Properties and storage form dynamic shunt proxy class.
Further, further includes: information acquisition unit, the realization class for obtaining third party's service by reflection are corresponding The metadata attributes of implementation method;Processing class generation unit is called, for initializing fuse group according to the metadata attributes Part calls implementation method by the fuse assembly after initialization, is formed and calls processing class.
Further, the interface class and interface method choose module 20, comprising: specified services classification selection unit is used In the function for the third party's service called as needed, specified services classification is chosen;Interface class and interface method selection unit are used Interface class corresponding with the specified services classification and interface method are obtained in the utilization dynamic shunt proxy class.
Further, the matching module 30, comprising: random shunt ratio generation unit, for according to described initial point Stream ratio generates several random shunt ratios;Matching unit is used for each random shunt ratio and the initial shunting Ratio is matched, identical as the initial shunt ratio if there is a random shunt ratio, according to described random Shunt ratio identifies the realization class of specified third party's service;The realization class of the specified third party's service and specified third party take The interface class and interface method of business are corresponding.
Further, dynamic shunt attribute is configured in the interface method;When the dynamic shunt attribute includes time-out Between threshold value, fusing threshold values, window measurement period and health examination time.
Further, further includes: abnormal conditions detection module, in the realization side according to the specified third party's service After method calls the function of corresponding third party's service, it is different whether the calling process of the detection specified third party's service time-out occurs The often situation of mistake;Degraded operation trigger module, for calculating when the specified third party's service has overtime exception error There is the overtime exception error corresponding period in the specified third party's service, and is greater than the time-out time in the period When threshold value, degraded operation is triggered;Error rate computing module counts described specified the in the window measurement period Tripartite services the number for overtime exception error occur, and calculates error rate;Calling process terminates module, in the mistake When ratio is more than the fusing threshold values, the switch of fuse assembly is opened, and by the corresponding shunting of the specified third party's service Proportional arrangement is zero, terminates the calling process of the specified third party's service.
Further, further includes: service starting and recursive call module, for surpassing in the specified third party's service When exception error in the case where, start thread pool dispatch service method, and, according to health examination polling cycle recursive call institute State specified third party's service;Calling process recovery module is used for the specified third party's service within the health examination time It responds in time, and, the normal response that the specified third party's service of reception returns, the calling of the recovery specified third party's service Journey, and the shunt ratio for configuring the specified third party's service is initial shunt ratio.
The call method and device of third party's service provided in this embodiment are applied to software systems, the framework of software systems As shown in figure 9, software systems include that dynamic shunt acts on behalf of total module 100, dynamic shunt assembly module 200 and calls processing module 300, dynamic shunt is acted on behalf of total module 100 and is obtained for relevant information needed for carrying out local cache processing and corresponding calling service It takes;Dynamic shunt assembly module 200 for realizing the dynamic shunt mechanism in calling process, mainly include fuse assembly, Downgrade processing module, notification module, data statistics module, shunts configuration module, report output module and deposits health examination module Store up module.
In the specific implementation, can by the calling device of third party's service interface method creation module 10, interface class and Interface method chooses module 20, loading unit, dynamic shunt proxy class generation unit, information acquisition unit and calls processing class raw It is acted on behalf of in total module 100 at dynamic shunt of the unit configuration in software systems;Matching module 30 can be configured in dynamic shunt In assembly module 200;Calling module 40, service starting and the configuration of recursive call module can called in processing module 300;It can By the configuration of abnormal conditions detection module in health examination module;Degraded operation trigger module can be configured in downgrade processing module It is interior;Error rate computing module can be configured in data statistics module;Calling process can be terminated to module configuration to match in shunting It sets in module;Calling process recovery module can be configured in fuse assembly, to execute correlation method step.
When fuse assembly is used to occur in third party's service calling process overtime exception error situation, current the is cut off The calling process of tripartite's service;Downgrade processing module is used to the overtime exception error corresponding period occur in third party's service big Degraded operation is carried out when time-out time threshold value;Health examination module is used to surpass using thread pool call method real-time detection When exception error third party's service whether restore normal;Notification module in the calling process of third party's service for surpassing Shi Yichang or restore it is normal when notice software systems execute corresponding program;Data statistics module is for counting overtime exception error Number;Configuration module is shunted for carrying out matching for shunt ratio value when calling multiple third party's services with the same function It sets;Report output module, which is used to generate log for the calling process of each third party's service and be formed, calls situation report;It deposits Storage module is used to store the calling process result and relevant parameter of each third party's service.
Call processing module 300 to be used to execute the calling process of interested third party service, mainly include handle before happening module, Client call module and post-processing module, handle before happening module is for matching third party's service attribute before calling It sets, client call module is for executing specific calling process, and post-processing module is for reporting call result.
When calling third party's service, total control of module 100 is acted on behalf of by dynamic shunt, processing module 300 is called to configure correlation Parameter, while according to calling the call result of processing module 300 to call correlation function to dynamic shunt assembly module 200, it calls Data interaction is carried out between processing module 300 and dynamic shunt assembly module 200, dynamic shunt assembly module 200 is according to calling The data that processing module 300 reports act on behalf of total module 100 to dynamic shunt and send corresponding functional module, such as call fuse group Part executes and cuts off current calling process, calling downgrade processing module carries out downgrade processing, it is related to call data statistics module to carry out The statistics etc. of data.Dynamic shunt is acted on behalf of total module 100, dynamic shunt assembly module 200 and is called between processing module 300 The flexible calling process of data interaction realization third party's service.
Figure 10 is the hardware structural diagram of electronic equipment provided in an embodiment of the present invention.As shown in Figure 10, the present invention is gone back Provide a kind of electronic equipment, comprising: memory 601, for storing program instruction;Processor 602, for calling and executing institute The program instruction in memory is stated, to realize the call method of third party's service described in first aspect.
In the present embodiment, processor 602 can be connected with memory 601 by bus or other modes.Processor can be General processor, such as central processing unit, digital signal processor, specific integrated circuit, or be configured to implement the present invention One or more integrated circuits of embodiment.Memory may include volatile memory, such as random access memory;Storage Device also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid state hard disk.
The present invention also provides a kind of storage medium, it is stored with computer program in the storage medium, when third party takes When at least one processor of the calling device of business executes the computer program, the calling device of third party's service executes first The call method of third party's service described in aspect.
The readable storage medium storing program for executing can for magnetic disk, CD, read-only memory (English: read-only memory, Referred to as: ROM) or random access memory (English: random access memory, referred to as: RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present invention can add by software The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present invention substantially or Say that the part that contributes to existing technology can be embodied in the form of software products, which can deposit Storage is in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that computer equipment (can be with It is personal computer, server or the network equipment etc.) execute certain part institutes of each embodiment of the present invention or embodiment The method stated.
Same and similar part may refer to each other between each embodiment in this specification.It is taken especially for third party For the calling device embodiment of business, since it is substantially similar to the method embodiment, so being described relatively simple, related place Referring to the explanation in embodiment of the method.
Invention described above embodiment is not intended to limit the scope of the present invention..

Claims (18)

1. a kind of call method of third party's service, which comprises the following steps:
It creates for realizing the interface method of the corresponding function of multiple third party's services is called;
The specified services classification of the third party's service is obtained using dynamic shunt proxy class, and is chosen and the specified services class Not corresponding interface class and interface method;
According to initial shunt ratio and random shunt ratio, match and the interface class of the specified third party's service and interface side The realization class of the corresponding specified third party's service of method;The random shunt ratio generates at random in the matching process, described initial Shunt ratio is configured in configuration center;
Class is handled using calling, calls implementation method corresponding with the realization class of the specified third party's service.
2. the method according to claim 1, wherein obtaining specified services using dynamic shunt proxy class described Before classification, further includes:
In the initialization procedure of class, the third party's service attribute of configuration in load configuration center;
The key-value pair of the third party's service attribute of each service type and configuration and storage are established, dynamic shunt agency is formed Class.
3. the method according to claim 1, wherein described using processing class is called, call and described specified the Before the corresponding implementation method of realization class of tripartite's service, further includes:
The metadata attributes of the corresponding implementation method of realization class of third party's service are obtained by reflection;
Fuse assembly is initialized according to the metadata attributes, implementation method is called by the fuse assembly after initialization, It is formed and calls processing class.
4. the method according to claim 1, wherein described obtain the third party using dynamic shunt proxy class The specified services classification of service, and choose the process of corresponding with the specified services classification interface class and interface method, comprising:
The function for the third party's service called as needed chooses specified services classification;
Interface class corresponding with the specified services classification and interface method are obtained using the dynamic shunt proxy class.
5. the method according to claim 1, wherein the initial shunt ratio of the basis and random shunt ratio, Match the mistake of the realization class of specified third party's service corresponding with the interface class of the specified third party's service and interface method Journey, comprising:
According to the initial shunt ratio, several random shunt ratios are generated;
Each random shunt ratio is matched with the initial shunt ratio, if there is a random shunting Ratio is identical as the initial shunt ratio, and the realization class of specified third party's service is identified according to the random shunt ratio; The realization class of the specified third party's service and the interface class and interface method of specified third party's service are corresponding.
6. the method according to claim 1, wherein being configured with dynamic shunt attribute in the interface method;Institute Stating dynamic shunt attribute includes time-out time threshold value, fusing threshold values, window measurement period and health examination time.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
After calling the function of corresponding third party's service according to the implementation method of the specified third party's service, the finger is detected Whether the calling process for determining third party's service there is the case where overtime exception error;
If the specified third party's service has the case where overtime exception error, calculates the specified third party's service and surpass When the exception error corresponding period, if the period be greater than the time-out time threshold value, trigger degraded operation;
In the window measurement period, counts the specified third party's service and the number of overtime exception error occur, and calculate Error rate;
If the error rate is more than the fusing threshold values, the switch of fuse assembly is opened, and by the specified third party It services corresponding shunt ratio and is configured to zero, terminate the calling process of the specified third party's service.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
In the case where overtime exception error occurs in the specified third party's service, start thread pool dispatch service method, and, According to specified third party's service described in health examination polling cycle recursive call;
If the specified third party's service response is timely within the health examination time, and, receive specified third party's clothes The normal response that business returns, restores the calling process of the specified third party's service, and configures the specified third party's service Shunt ratio is initial shunt ratio.
9. a kind of calling device of third party's service characterized by comprising
Interface method creation module, for creating the interface method for realizing the corresponding function of multiple third party's services is called;
Interface class and interface method choose module, for obtaining the specified services class of third party's service using dynamic shunt proxy class Not, and interface class corresponding with the specified services classification and interface method are chosen;
Matching module takes for matching according to the initial shunt ratio and random shunt ratio with the specified third party The realization class of the corresponding specified third party's service of the interface class and interface method of business;The random shunt ratio is in the matching process Random to generate, the initial shunt ratio is configured in configuration center;
Calling module, for calling realization side corresponding with the realization class of the specified third party's service using processing class is called Method.
10. device according to claim 9, which is characterized in that further include:
Loading unit, the third party's service attribute for being configured in load configuration center in the initialization procedure of class;
Dynamic shunt proxy class generation unit, the key of the third party's service attribute for establishing each service type and configuration Value to and store, formed dynamic shunt proxy class.
11. device according to claim 9, which is characterized in that further include:
Information acquisition unit, the metadata category of the corresponding implementation method of realization class for obtaining third party's service by reflection Property;
Processing class generation unit is called, for initializing fuse assembly according to the metadata attributes, after initialization Fuse assembly calls implementation method, is formed and calls processing class.
12. device according to claim 9, which is characterized in that the interface class and interface method choose module, comprising:
Specified services classification selection unit, the function of the third party's service for calling as needed choose specified services classification;
Interface class and interface method selection unit, for being obtained and the specified services classification using the dynamic shunt proxy class Corresponding interface class and interface method.
13. device according to claim 9, which is characterized in that the matching module, comprising:
Random shunt ratio generation unit, for generating several random shunt ratios according to the initial shunt ratio;
Matching unit, for matching each random shunt ratio with the initial shunt ratio, if there is one A random shunt ratio is identical as the initial shunt ratio, identifies specified third party according to the random shunt ratio The realization class of service;The realization class of the specified third party's service and the interface class of specified third party's service and interface method pair It answers.
14. device according to claim 9, which is characterized in that be configured with dynamic shunt attribute in the interface method;Institute Stating dynamic shunt attribute includes time-out time threshold value, fusing threshold values, window measurement period and health examination time.
15. device according to claim 14, which is characterized in that further include:
Abnormal conditions detection module, for calling corresponding third party's service according to the implementation method of the specified third party's service Function after, whether the calling process for detecting the specified third party's service there is the case where overtime exception error;
Degraded operation trigger module, for calculating described specified when the specified third party's service has overtime exception error There is the overtime exception error corresponding period in third party's service, and when the period being greater than the time-out time threshold value, Trigger degraded operation;
There is time-out in the window measurement period, counting the specified third party's service in error rate computing module The number of exception error, and calculate error rate;
Calling process terminates module, for opening opening for fuse assembly when the error rate is more than the fusing threshold values It closes, and configures zero for the corresponding shunt ratio of the specified third party's service, terminate the calling of the specified third party's service Process.
16. device according to claim 14, which is characterized in that further include:
Service starting and recursive call module are used in the case where overtime exception error occurs in the specified third party's service, Start thread pool dispatch service method, and, according to specified third party's service described in health examination polling cycle recursive call;
Calling process recovery module was used within the health examination time, and the specified third party's service response is timely, with And the normal response that specified third party's service returns is received, restore the calling process of the specified third party's service, and configure institute The shunt ratio for stating specified third party's service is initial shunt ratio.
17. a kind of electronic equipment characterized by comprising
Memory, for storing program instruction;
Processor, for calling and executing the program instruction in the memory, to realize described in any one of claim 1~8 Third party's service call method.
18. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when third party's service When at least one processor of calling device executes the computer program, the calling device perform claim requirement of third party's service The call method of 1~8 described in any item third party's services.
CN201910515186.7A 2019-06-14 2019-06-14 Third-party service calling method and device, electronic equipment and storage medium Active CN110399178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910515186.7A CN110399178B (en) 2019-06-14 2019-06-14 Third-party service calling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910515186.7A CN110399178B (en) 2019-06-14 2019-06-14 Third-party service calling method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110399178A true CN110399178A (en) 2019-11-01
CN110399178B CN110399178B (en) 2022-09-27

Family

ID=68323234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910515186.7A Active CN110399178B (en) 2019-06-14 2019-06-14 Third-party service calling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110399178B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181777A (en) * 2019-12-17 2020-05-19 深圳前海环融联易信息科技服务有限公司 Service degradation method, device, computer equipment and storage medium
CN111209122A (en) * 2019-12-24 2020-05-29 广州华多网络科技有限公司 Interface calling method and device, electronic equipment and storage medium
CN111814178A (en) * 2020-06-29 2020-10-23 四川长虹电器股份有限公司 Data callback fusing protection method for third-party application
CN112637196A (en) * 2020-12-21 2021-04-09 上海销氪信息科技有限公司 Method and device for calling third-party service, electronic equipment and storage medium
CN112988434A (en) * 2019-12-13 2021-06-18 ***股份有限公司 Service fuse, service fusing method and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137142A (en) * 2010-11-09 2011-07-27 华为技术有限公司 Method for controlling download of third party content and SDP (Service Delivery Platform)
CN104219316A (en) * 2014-09-12 2014-12-17 微梦创科网络科技(中国)有限公司 Method and device for processing call request in distributed system
CN105450461A (en) * 2014-06-05 2016-03-30 阿里巴巴集团控股有限公司 Shunting method and network equipment
CN105677466A (en) * 2015-12-31 2016-06-15 百度在线网络技术(北京)有限公司 Method and device for degrading handling of third-party application interface
CN106375355A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Load balancing processing 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
US20180143857A1 (en) * 2016-11-23 2018-05-24 Amazon Technologies, Inc. Back-end task fulfillment for dialog-driven applications
CN108667882A (en) * 2017-04-01 2018-10-16 北京京东尚科信息技术有限公司 Load-balancing method, device and electronic equipment based on changeable weight adjustment
US20180359223A1 (en) * 2017-06-08 2018-12-13 Microsoft Technology Licensing, Llc Privacy as a service by offloading user identification and network protection to a third party

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137142A (en) * 2010-11-09 2011-07-27 华为技术有限公司 Method for controlling download of third party content and SDP (Service Delivery Platform)
CN105450461A (en) * 2014-06-05 2016-03-30 阿里巴巴集团控股有限公司 Shunting method and network equipment
CN104219316A (en) * 2014-09-12 2014-12-17 微梦创科网络科技(中国)有限公司 Method and device for processing call request in distributed system
CN106375355A (en) * 2015-07-20 2017-02-01 中兴通讯股份有限公司 Load balancing processing method and apparatus
CN105677466A (en) * 2015-12-31 2016-06-15 百度在线网络技术(北京)有限公司 Method and device for degrading handling of third-party application interface
US20180143857A1 (en) * 2016-11-23 2018-05-24 Amazon Technologies, Inc. Back-end task fulfillment for dialog-driven applications
CN108667882A (en) * 2017-04-01 2018-10-16 北京京东尚科信息技术有限公司 Load-balancing method, device and electronic equipment based on changeable weight adjustment
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
US20180359223A1 (en) * 2017-06-08 2018-12-13 Microsoft Technology Licensing, Llc Privacy as a service by offloading user identification and network protection to a third party

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HELLOWORDDM: ""第三方接口该如何调用"", 《BLOG.CSDN.NET/HELLOWORLDDM/ARTICLE/DETAILS/80521505?UTM_SOURCE=APP&APP_VERSION=4.15.1》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988434A (en) * 2019-12-13 2021-06-18 ***股份有限公司 Service fuse, service fusing method and computer-readable storage medium
CN112988434B (en) * 2019-12-13 2024-05-03 ***股份有限公司 Service fuse, service fusing method and computer readable storage medium
CN111181777A (en) * 2019-12-17 2020-05-19 深圳前海环融联易信息科技服务有限公司 Service degradation method, device, computer equipment and storage medium
CN111209122A (en) * 2019-12-24 2020-05-29 广州华多网络科技有限公司 Interface calling method and device, electronic equipment and storage medium
CN111814178A (en) * 2020-06-29 2020-10-23 四川长虹电器股份有限公司 Data callback fusing protection method for third-party application
CN112637196A (en) * 2020-12-21 2021-04-09 上海销氪信息科技有限公司 Method and device for calling third-party service, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110399178B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN110399178A (en) A kind of call method of third party's service, device, electronic equipment and storage medium
EP0909056B1 (en) Network management event correlation in environments containing inoperative network elements
US10057136B2 (en) Method and apparatus for visualized network operation and maintenance
US8738760B2 (en) Method and system for providing automated data retrieval in support of fault isolation in a managed services network
US6550024B1 (en) Semantic error diagnostic process for multi-agent systems
US7525422B2 (en) Method and system for providing alarm reporting in a managed network services environment
US20200382362A1 (en) Alarm information processing method, related device, and system
US8924533B2 (en) Method and system for providing automated fault isolation in a managed services network
CN107294808A (en) The methods, devices and systems of interface testing
CN111274604B (en) Service access method, device, equipment and computer readable storage medium
TW200525938A (en) Remote system administration using command line environment
CN110784374A (en) Method, device, equipment and system for monitoring operation state of service system
EP1229685B1 (en) Service level agreement manager for a data network
US8086718B2 (en) Automated process and apparatus for providing integrated management and control of computer networks
CN110968479A (en) Business-level full-link monitoring method for application program and server
JP3766540B2 (en) Notification transmission method in network including notification service and network for using the same
CN116974805A (en) Root cause determination method, apparatus and storage medium
CN111431733A (en) Service alarm coverage information evaluation method and device
US20030110243A1 (en) Method, system and policy decision point (PDP) for policy-based test management
CN106933694B (en) Application error localization method and device
CN112291302B (en) Internet of things equipment behavior data analysis method and processing system
CN112527635B (en) Fault injection method and device, electronic equipment and storage medium
CN106230666A (en) A kind of monitoring method of service availability and monitoring system
CN114285756A (en) Service call dependency relationship analysis method and related device
CN105516010B (en) A kind of information processing method and electronic equipment

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
TR01 Transfer of patent right

Effective date of registration: 20230920

Address after: Room 210-03, 2nd floor, block C, office building, Nangang Industrial Zone, Tianjin Binhai New Area Economic and Technological Development Zone, 300450

Patentee after: 58Tongcheng Information Technology Co.,Ltd.

Address before: Room 210-03, 2nd floor, block C, office building, Nangang Industrial Zone, Tianjin Binhai New Area Economic and Technological Development Zone, 300450

Patentee before: 58 Co.,Ltd.

TR01 Transfer of patent right