+

CN108062256A - The access method and device of a kind of application program - Google Patents

The access method and device of a kind of application program Download PDF

Info

Publication number
CN108062256A
CN108062256A CN201711107308.6A CN201711107308A CN108062256A CN 108062256 A CN108062256 A CN 108062256A CN 201711107308 A CN201711107308 A CN 201711107308A CN 108062256 A CN108062256 A CN 108062256A
Authority
CN
China
Prior art keywords
access
request message
access request
closed state
application program
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
CN201711107308.6A
Other languages
Chinese (zh)
Inventor
肖祖军
陈龙
李宗杰
周敬敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Minsheng Banking Corp Ltd
Original Assignee
China Minsheng Banking Corp 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 China Minsheng Banking Corp Ltd filed Critical China Minsheng Banking Corp Ltd
Priority to CN201711107308.6A priority Critical patent/CN108062256A/en
Publication of CN108062256A publication Critical patent/CN108062256A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/076Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/81Threshold
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/875Monitoring of systems including the internet
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/88Monitoring involving counting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明实施例提供了一种应用程序的访问方法和装置,所述方法包括:在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。本发明实施例可以在应用程序访问各种被访问对象时,提供熔断保护机制,满足对应用程序提供保护的需求。

An embodiment of the present invention provides a method and device for accessing an application program. The method includes: counting the number of times an access response message meets a preset condition within a preset statistical period; The access request message sent by the program is returned; when the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application program sends the access request message, an exception is thrown, and the described An access request message is sent to the accessed object. The embodiment of the present invention can provide a fuse protection mechanism when an application program accesses various accessed objects, so as to meet the requirement for protection of the application program.

Description

一种应用程序的访问方法和装置Application program access method and device

技术领域technical field

本发明涉及程序技术领域,特别是涉及一种应用程序的访问方法和一种应用程序的访问装置。The present invention relates to the technical field of programs, in particular to an application program access method and an application program access device.

背景技术Background technique

无论是在SOA(Service-Oriented Architecture,面向服务的架构)架构时代还是微服务时代,通过服务调用进行系统的集成与交互已经是软件行业的共识。随着服务数量的急剧膨胀,尤其是云服务时代的到来,服务治理已经成为服务时代不可缺少的能力。其包含的主要功能包括:服务注册与发现、服务路由、负载均衡、流量控制、并发控制、安全认证以及熔断机制等。Whether in the era of SOA (Service-Oriented Architecture, Service-Oriented Architecture) architecture or the era of microservices, the integration and interaction of systems through service calls has become a consensus in the software industry. With the rapid expansion of the number of services, especially the advent of the cloud service era, service governance has become an indispensable capability in the service era. Its main functions include: service registration and discovery, service routing, load balancing, flow control, concurrency control, security authentication, and fuse mechanism.

本地应用调用远程服务时,由于远程服务处理能力下降或者其他问题导致服务出现大量的超时,由此导致本地虚拟机的线程不能得到及时释放,由于线程是虚拟机的宝贵资源,一旦大量占用将会导致本地应用没有多余的线程处理其他请求从而导致本地应用的服务能力降低,再加上大量的服务超时会导致许多服务调用结果未知,在要求数据事务一致性高的金融业造成的影响更为巨大。为了解决这一问题,增加了对本地应用与目标服务的保护机制—熔断机制。When a local application calls a remote service, a large number of service timeouts occur due to the decline in the processing capacity of the remote service or other problems. As a result, the threads of the local virtual machine cannot be released in time. Since the thread is a valuable resource of the virtual machine, once a large number of resources are used, it will As a result, local applications do not have extra threads to process other requests, resulting in reduced service capabilities of local applications. Coupled with a large number of service timeouts, many service call results are unknown, and the impact is even greater in the financial industry that requires high data transaction consistency. . In order to solve this problem, a protection mechanism for local applications and target services—fuse mechanism is added.

熔断机制大致的原理如下:The general principle of the fusing mechanism is as follows:

对服务超时以及调用异常进行统计计数,在周期时间内如果超时的次数或者异常次数达到了设置的阈值,则直接抛出异常。在设定的时间内(例如5秒内)的服务访问都会直接抛出异常,超过设定时间会发起一次试探访问,如果访问结果为成功则计数清零;如果试探访问失败,则在设定时间内的服务访问依然抛出异常,直到设定时间结束再发起下一次试探访问。Count service timeouts and call exceptions. If the number of timeouts or exceptions reaches the set threshold within the cycle time, an exception will be thrown directly. Any service access within the set time (for example, within 5 seconds) will directly throw an exception. If the set time exceeds the set time, a trial access will be initiated. If the access result is successful, the count will be cleared; if the trial access fails, the set The service access within the time still throws an exception, and the next trial access is not initiated until the set time is over.

目前的熔断机制在软件业并没有形成规范,The current circuit breaker mechanism has not formed a standard in the software industry.

目前现有的技术方案基本上针对的都是服务的,在软件系统的运行过程中除了调用远程服务超时会导致业务数据不一致以及线程资源不能得到释放外,数据库、文件系统的访问等操作也可能导致这些问题的出现。At present, the existing technical solutions are basically aimed at services. In the running process of the software system, in addition to the inconsistency of business data and the inability to release thread resources due to the timeout of calling remote services, operations such as access to databases and file systems are also possible. lead to these problems.

发明内容Contents of the invention

鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种应用程序的访问方法和相应的一种应用程序的访问装置。In view of the above problems, embodiments of the present invention are proposed to provide an application program access method and a corresponding application program access device that overcome the above problems or at least partially solve the above problems.

为了解决上述问题,本发明实施例公开了一种应用程序的访问方法,包括:In order to solve the above problems, the embodiment of the present invention discloses an application program access method, including:

在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;In the preset statistical period, count the number of times that the access response message meets the preset condition; the access response message is returned by the access request message sent by the accessed object for the application program;

当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。When the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application sends an access request message, an exception is thrown, and the access request message is prohibited from being sent to the accessed object .

优选的,所述当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态的步骤包括:Preferably, when the number of times the access response message meets the preset condition is greater than the preset threshold, the step of triggering the shutdown state includes:

当针对带有特定访问参数的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数时,则触发关闭状态。When the access response message of the access request message with a specific access parameter meets the fuse condition for a preset number of times, the closed state is triggered.

优选的,还包括:Preferably, it also includes:

若访问响应消息所针对的应用程序为目标应用程序,则保持正常状态;在正常状态下,不对应用程序发送的访问请求消息进行限制。If the application program targeted by the access response message is the target application program, the normal state is maintained; in the normal state, the access request message sent by the application program is not restricted.

优选的,还包括:Preferably, it also includes:

当访问响应消息包括预设返回参数时,抛出异常。An exception is thrown when the access response message includes preset return parameters.

优选的,预设条件包括:访问请求消息访问失败、访问请求消息超时、访问请求消息被拒绝。Preferably, the preset conditions include: the access request message fails to access, the access request message times out, and the access request message is rejected.

优选的,还包括:Preferably, it also includes:

在到达触发关闭状态之后的预设时间段时,切换为半关闭状态;在半关闭状态下,禁止应用程序发送大于预设个数的访问请求消息。When the preset time period after the shutdown state is triggered, switch to the half-closed state; in the half-closed state, the application is prohibited from sending more than a preset number of access request messages.

优选的,还包括:Preferably, it also includes:

在半关闭状态下,若应用程序发送的访问请求消息访问成功,则切换为正常状态,并重置统计周期;In the semi-closed state, if the access request message sent by the application is successfully accessed, it will switch to the normal state and reset the statistical cycle;

在半关闭状态下,若应用程序发送的访问请求消息访问失败,则切换为关闭状态。In the half-closed state, if the access request message sent by the application program fails to access, it will switch to the closed state.

本发明实施例还公开了一种应用程序的访问装置,包括:The embodiment of the present invention also discloses an application program access device, including:

统计模块,用于在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;A statistical module, configured to count the number of times the access response message meets the preset condition within the preset statistical period; the access response message is returned by the access request message sent by the accessed object for the application program;

关闭状态触发模块,用于当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。The closed state trigger module is used to trigger the closed state when the number of times the access response message meets the preset condition is greater than the preset threshold; in the closed state, when the application sends an access request message, an exception is thrown to prohibit the access A request message is sent to the accessed object.

本发明实施例还公开了一种装置,包括:The embodiment of the invention also discloses a device, comprising:

一个或多个处理器;和one or more processors; and

其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如上所述的一个或多个的方法。One or more machine-readable media having instructions stored thereon which, when executed by the one or more processors, cause the apparatus to perform one or more of the methods described above.

本发明实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如上所述的一个或多个的方法。The embodiment of the present invention also discloses one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the device executes one or more of the above-mentioned methods.

本发明实施例包括以下优点:Embodiments of the present invention include the following advantages:

在本发明实施例中,熔断功能执行程序可以获取应用程序访问各种被访问对象(如:远程服务、数据库)时返回的访问响应消息,并统计访问响应消息符合预设条件的次数。当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止访问请求消息发送到被访问对象。本发明实施例的熔断功能执行程序可以在应用程序访问各种被访问对象时,提供熔断保护机制,满足对应用程序提供保护的需求。In the embodiment of the present invention, the fuse function execution program can obtain the access response message returned when the application program accesses various accessed objects (such as: remote service, database), and count the number of times the access response message meets the preset condition. When the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application sends an access request message, an exception is thrown, and the access request message is prohibited from being sent to the accessed object. The execution program of the fuse function in the embodiment of the present invention can provide a fuse protection mechanism when the application program accesses various accessed objects, so as to meet the requirement of providing protection for the application program.

在本发明实施例中,可以不只是根据访问是否超时、访问是否异常来作为触发关闭状态的依据。用户可以根据需要自行配置预设条件。In the embodiment of the present invention, whether the access is timed out or whether the access is abnormal may be used as the basis for triggering the shutdown state. Users can configure preset conditions according to their needs.

在本发明实施例中,熔断功能执行程序可以分别统计带有不同访问参数的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数,实现多维度的统计。In the embodiment of the present invention, the fusing function execution program can separately count the access response messages of the access request messages with different access parameters, and the number of times meeting the fusing conditions reaches the preset number, so as to realize multi-dimensional statistics.

附图说明Description of drawings

图1是本发明的一种应用程序的访问方法实施例1的步骤流程图;Fig. 1 is a flow chart of the steps of Embodiment 1 of an application program access method of the present invention;

图2是本发明的一种应用程序的访问方法实施例2的步骤流程图Fig. 2 is a flow chart of the steps of Embodiment 2 of an application program access method of the present invention

图3是本发明实施例中熔断功能执行程序的工作示意图;Fig. 3 is a working schematic diagram of the execution program of the fusing function in the embodiment of the present invention;

图4是本发明的一种应用程序的访问装置实施例的结构框图。Fig. 4 is a structural block diagram of an embodiment of an application program access device in the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

参照图1,示出了本发明的一种应用程序的访问方法实施例1的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of an application program access method of the present invention, which may specifically include the following steps:

步骤101,在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;Step 101, within a preset statistical period, count the number of times the access response message meets the preset condition; the access response message is returned by the access request message sent by the accessed object for the application program;

当应用程序需要访问被访问对象时,向被访问对象发送访问请求消息。在本发明实施例中,被访问对象可以包括:远程服务、数据库、文件系统、缓存等可以被应用程序访问的对象。When the application program needs to access the accessed object, it sends an access request message to the accessed object. In this embodiment of the present invention, the accessed objects may include: remote services, databases, file systems, caches, and other objects that can be accessed by applications.

熔断功能执行程序可以按照可配置的统计周期统计被访问对象返回的访问响应消息。The fuse function execution program can count the access response messages returned by the accessed object according to the configurable statistical cycle.

开发者只需要在关键的代码拦截器上根据文档进行少量代码编写或者在基于Spring框架开发的代码进行配置即可实现对应用程序的熔断保护机制。Developers only need to write a small amount of code on the key code interceptor according to the document or configure the code developed based on the Spring framework to implement the fuse protection mechanism for the application.

在本发明实施例中,预设条件可以包括:访问请求消息访问失败、访问请求消息超时、访问请求消息被拒绝。In this embodiment of the present invention, the preset conditions may include: the access request message fails to access, the access request message times out, and the access request message is rejected.

在本发明实施例中,可以不只是根据访问是否超时、访问是否异常来作为触发关闭状态的依据。在实际中,用户可以根据需要自行配置预设条件。例如,设置基于条件表达式的熔断阈值配置,closeCondition:“accessCount>100and timeoutRate>50”表示访问请求消息总数大于100并且超时率大于50%时触发关闭状态。In the embodiment of the present invention, whether the access is timed out or whether the access is abnormal may be used as the basis for triggering the shutdown state. In practice, users can configure preset conditions according to their needs. For example, set the circuit breaker threshold configuration based on conditional expressions, closeCondition: "accessCount>100and timeoutRate>50" indicates that the shutdown state is triggered when the total number of access request messages is greater than 100 and the timeout rate is greater than 50%.

步骤102,当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。Step 102, when the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application sends an access request message, an exception is thrown, and the access request message is prohibited from being sent to The object being accessed.

在本发明实施例中,熔断功能执行程序可以获取应用程序访问各种被访问对象(如:远程服务、数据库)时返回的访问响应消息,并统计访问响应消息符合预设条件的次数。当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止访问请求消息发送到被访问对象。本发明实施例的熔断功能执行程序可以在应用程序访问各种被访问对象时,提供熔断保护机制,满足需求。In the embodiment of the present invention, the fuse function execution program can obtain the access response message returned when the application program accesses various accessed objects (such as: remote service, database), and count the number of times the access response message meets the preset condition. When the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application sends an access request message, an exception is thrown, and the access request message is prohibited from being sent to the accessed object. The fuse function execution program in the embodiment of the present invention can provide a fuse protection mechanism when an application program accesses various accessed objects, so as to meet requirements.

参照图2,示出了本发明的一种应用程序的访问方法实施例2的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 2 of an application program access method of the present invention, which may specifically include the following steps:

步骤201,在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;Step 201, within a preset statistical period, count the number of times that the access response message meets the preset condition; the access response message is returned by the access request message sent by the accessed object for the application program;

在本发明实施例中,被访问对象可以包括:远程服务、数据库、文件系统、缓存等可以被应用程序访问的对象。In this embodiment of the present invention, the accessed objects may include: remote services, databases, file systems, caches, and other objects that can be accessed by applications.

熔断功能执行程序可以按照可配置的统计周期统计被访问对象返回的访问响应消息。The fuse function execution program can count the access response messages returned by the accessed object according to the configurable statistical cycle.

开发者只需要在关键的代码拦截器上根据文档进行少量代码编写或者在基于Spring框架开发的代码进行配置即可实现对应用程序的熔断保护机制。Developers only need to write a small amount of code on the key code interceptor according to the document or configure the code developed based on the Spring framework to implement the fuse protection mechanism for the application.

在本发明实施例中,预设条件可以包括:访问请求消息访问失败、访问请求消息超时、访问请求消息被拒绝。In this embodiment of the present invention, the preset conditions may include: the access request message fails to access, the access request message times out, and the access request message is rejected.

在本发明实施例中,提供了判断失败的表达式,“failedCondition:respParam.returnCode.type=E”表示访问响应消息中的returnCode的type属性为字符串“E”时表示应用程序的访问结果为失败。In the embodiment of the present invention, an expression for judging failure is provided, "failedCondition:respParam.returnCode.type=E" means that when the type attribute of returnCode in the access response message is the string "E", it means that the access result of the application is fail.

在本发明实施例中,可以不只是根据访问是否超时、访问是否异常来作为触发关闭状态的依据。用户可以根据需要自行配置预设条件。In the embodiment of the present invention, whether the access is timed out or whether the access is abnormal may be used as the basis for triggering the shutdown state. Users can configure preset conditions according to their needs.

步骤202,当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。Step 202, when the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application sends an access request message, an exception is thrown, and the access request message is prohibited from being sent to The object being accessed.

在本发明实施例中,所述步骤202可以包括如下子步骤:In the embodiment of the present invention, the step 202 may include the following sub-steps:

子步骤S11,当针对带有特定访问参数的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数时,则触发关闭状态。In sub-step S11 , when the number of access response messages of access request messages with specific access parameters meeting the fuse condition reaches a preset number of times, the shutdown state is triggered.

在本发明实施例中,访问请求消息中可以包括有多种参数。例如,在访问银行系统时,访问请求消息中的访问参数可以包括:接口名称、渠道号、应用程序编号等。In the embodiment of the present invention, the access request message may include various parameters. For example, when accessing the banking system, the access parameters in the access request message may include: interface name, channel number, application program number, etc.

熔断功能执行程序可以分别统计带有不同访问参数的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数,实现多维度的统计。The fuse function execution program can separately count the access response messages of the access request messages with different access parameters, and the number of times that meet the fuse condition reaches the preset number, realizing multi-dimensional statistics.

例如,groupBys:[reqParam.interface+reqParam.channelId,reqParam.applicationId],groupBys表示多个分组,逗号“,”为分隔符。此示例中reqParam.interface+reqParam.channelId表示请求参数中的接口名称与渠道号的组合为一个计数维度,同时请求参数中的应用编号为另一计数维度,当两个计数维度中有一个计数信息触发了熔断条件都会触发熔断。For example, groupBys:[reqParam.interface+reqParam.channelId,reqParam.applicationId], groupBys means multiple groups, comma "," is the separator. In this example, reqParam.interface+reqParam.channelId means that the combination of the interface name and channel number in the request parameter is a counting dimension, and the application number in the request parameter is another counting dimension. When there is one counting information in the two counting dimensions A fuse will be triggered when the fuse condition is triggered.

维度1:统计针对带有相同的接口名称和渠道号的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数。Dimension 1: Count the access response messages for access request messages with the same interface name and channel number, and the number of times that meet the circuit breaker condition reaches the preset number of times.

维度2:统计针对带有相同的应用程序编号的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数。Dimension 2: Count the access response messages for access request messages with the same application number, and the number of times that meet the circuit breaker condition reaches the preset number of times.

步骤203,若访问响应消息所针对的应用程序为目标应用程序,则保持正常状态;在正常状态下,不对应用程序发送的访问请求消息进行限制。Step 203, if the application program targeted by the access response message is the target application program, keep the normal state; in the normal state, do not restrict the access request message sent by the application program.

在本发明实施例中,对于目标应用程序发起的访问,熔断功能执行程序不对其进行控制。In the embodiment of the present invention, the fuse function execution program does not control the access initiated by the target application program.

例如,提供熔断过滤机制,即对一些特殊交易场景取消熔断的限制,filterCondition:reqParam.application=‘cmbc’表示如果是cmbc应用程序发起的访问则不受熔断功能执行程序的控制。For example, a circuit breaker filtering mechanism is provided, that is, to cancel the circuit breaker restriction for some special transaction scenarios, filterCondition:reqParam.application='cmbc' means that if the access is initiated by the cmbc application, it will not be controlled by the circuit breaker function executive program.

步骤204,当访问响应消息包括预设返回参数时,抛出异常。Step 204, when the access response message includes a preset return parameter, an exception is thrown.

在一些情况下,虽然被访问对象返回的访问响应消息并不是访问超时消息、访问异常消息、而是返回了业务结果,但业务结果实际为空。此时,熔断功能执行程序可以认为访问失败,并抛出异常。In some cases, although the access response message returned by the accessed object is not an access timeout message or an access exception message, but returns a business result, the business result is actually empty. At this time, the fuse function execution program can consider the access failure and throw an exception.

例如,提供了熔断机制触发时程序返回结果的配置机制,rejectResult:“returnnull”表示返回空,默认是抛出异常。For example, it provides a configuration mechanism for the program to return results when the circuit breaker mechanism is triggered. rejectResult: "returnnull" means returning empty, and the default is to throw an exception.

步骤205,在到达触发关闭状态之后的预设时间段时,切换为半关闭状态;在半关闭状态下,禁止应用程序发送大于预设个数的访问请求消息。Step 205, switch to the half-closed state when the preset time period after the triggering of the closed state is reached; in the half-closed state, prohibit the application program from sending more than a preset number of access request messages.

预设时间段可以由用户配置,例如,在触发关闭状态的5秒之后,自动切换为半关闭状态。The preset time period can be configured by the user, for example, after 5 seconds after triggering the closed state, it will automatically switch to the half-closed state.

在半关闭状态下,熔断功能执行程序允许应用程序发送并发数为1的访问请求消息。In the half-closed state, the fuse function executor allows the application to send access request messages with a concurrent number of 1.

步骤206,在半关闭状态下,若应用程序发送的访问请求消息访问成功,则切换为正常状态,并重置统计周期;Step 206, in the semi-closed state, if the access request message sent by the application is successfully accessed, switch to the normal state and reset the statistical period;

步骤207,在半关闭状态下,若应用程序发送的访问请求消息访问失败,则切换为关闭状态。Step 207, in the semi-closed state, if the access request message sent by the application program fails to access, switch to the closed state.

为了使本领域技术人员能够更好地理解本发明实施例,下面通过一个例子对本发明实施例加以说明:In order to enable those skilled in the art to better understand the embodiment of the present invention, the following uses an example to illustrate the embodiment of the present invention:

参照图3所示为本发明实施例中熔断功能执行程序的工作示意图。Referring to FIG. 3 , it is a working schematic diagram of the execution program of the fusing function in the embodiment of the present invention.

熔断功能执行程序,获得被访问对象针对应用程序发送的访问请求消息返回的访问响应消息。分别统计访问次数、统计访问响应消息为访问失败、访问超时、访问拒绝的次数。The fuse function executes the program to obtain the access response message returned by the accessed object in response to the access request message sent by the application program. Count the number of visits and count the number of times the access response message is access failure, access timeout, and access rejection.

当在一个统计周期内,某种统计项的次数达到熔断阈值时,则熔断功能执行程序可以从正常状态切换为关闭状态。在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止访问请求消息发送到被访问对象。When the number of certain statistical items reaches the fusing threshold within a statistical cycle, the fusing function execution program can be switched from the normal state to the off state. In the closed state, when the application sends an access request message, an exception is thrown, which prohibits the access request message from being sent to the accessed object.

等待一段时间后,熔断功能执行程序从关闭状态切换为半关闭状态。在半关闭状态下,允许应用程序发送一个访问请求消息,其余的访问请求消息则被禁止发送到被访问对象。After waiting for a period of time, the fuse function executive program switches from the closed state to the half-closed state. In the half-closed state, the application is allowed to send an access request message, and the rest of the access request messages are prohibited from being sent to the accessed object.

在半关闭状态下,若应用程序发送的访问请求消息访问成功,则切换为正常状态,并重置统计周期;In the semi-closed state, if the access request message sent by the application is successfully accessed, it will switch to the normal state and reset the statistical cycle;

在半关闭状态下,若应用程序发送的访问请求消息访问失败,则切换为关闭状态。In the half-closed state, if the access request message sent by the application program fails to access, it will switch to the closed state.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

参照图4,示出了本发明的一种应用程序的访问装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of an embodiment of an application program access device of the present invention, which may specifically include the following modules:

统计模块401,用于在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;The statistics module 401 is used to count the number of times that the access response message meets the preset condition within the preset statistical period; the access response message is returned by the access request message sent by the accessed object for the application program;

关闭状态触发模块402,用于当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。Closed state trigger module 402, used for triggering the closed state when the number of times the access response message meets the preset condition is greater than the preset threshold; in the closed state, when the application program sends the access request message, an exception is thrown, and the described An access request message is sent to the accessed object.

在本发明实施例中,所述关闭状态触发模块402可以包括:In the embodiment of the present invention, the closed state triggering module 402 may include:

关闭状态触发子模块,用于当针对带有特定访问参数的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数时,则触发关闭状态。The closed state triggering submodule is used to trigger the closed state when the number of access response messages of the access request message with specific access parameters meeting the fuse condition reaches a preset number of times.

在本发明实施例中,所述装置还可以包括:In an embodiment of the present invention, the device may also include:

正常状态保持模块,用于若访问响应消息所针对的应用程序为目标应用程序,则保持正常状态;在正常状态下,不对应用程序发送的访问请求消息进行限制。The normal state maintaining module is used to maintain the normal state if the application program targeted by the access response message is the target application program; in the normal state, the access request message sent by the application program is not restricted.

在本发明实施例中,所述装置还可以包括:In an embodiment of the present invention, the device may also include:

参数异常模块,用于当访问响应消息包括预设返回参数时,抛出异常。The parameter exception module is used to throw an exception when the access response message includes preset return parameters.

在本发明实施例中,预设条件包括:访问请求消息访问失败、访问请求消息超时、访问请求消息被拒绝。In the embodiment of the present invention, the preset conditions include: the access request message fails to access, the access request message times out, and the access request message is rejected.

在本发明实施例中,所述装置还可以包括:In an embodiment of the present invention, the device may also include:

半关闭状态切换模块,用于在到达触发关闭状态之后的预设时间段时,切换为半关闭状态;在半关闭状态下,禁止应用程序发送大于预设个数的访问请求消息。The half-closed state switching module is used to switch to the half-closed state when the preset time period after the triggering of the closed state is reached; in the half-closed state, the application program is prohibited from sending more than a preset number of access request messages.

在本发明实施例中,所述装置还可以包括:In an embodiment of the present invention, the device may also include:

正常状态切换模块,用于在半关闭状态下,若应用程序发送的访问请求消息访问成功,则切换为正常状态,并重置统计周期;The normal state switching module is used to switch to the normal state and reset the statistical period if the access request message sent by the application program is accessed successfully in the semi-closed state;

关闭状态切换模块,用于在半关闭状态下,若应用程序发送的访问请求消息访问失败,则切换为关闭状态。The closed state switching module is used to switch to the closed state if the access request message sent by the application program fails to access in the semi-closed state.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.

本发明实施例还公开了一种装置,包括:The embodiment of the invention also discloses a device, comprising:

一个或多个处理器;和one or more processors; and

其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如上实施例所述的方法。One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, cause the apparatus to perform the methods described in the above embodiments.

本发明实施例还公开了一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如如上实施例所述的方法。The embodiment of the present invention also discloses one or more machine-readable media, on which instructions are stored, and when executed by one or more processors, the device executes the method described in the above embodiments.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, or computer program products. Accordingly, embodiments of the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present invention are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor or processor of other programmable data processing terminal equipment to produce a machine such that instructions executed by the computer or processor of other programmable data processing terminal equipment Produce means for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the The instruction means implements the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded into a computer or other programmable data processing terminal equipment, so that a series of operational steps are performed on the computer or other programmable terminal equipment to produce computer-implemented processing, thereby The instructions executed above provide steps for implementing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Having described preferred embodiments of embodiments of the present invention, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the embodiments of the present invention.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or end-equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上对本发明所提供的一种应用程序的访问方法和一种应用程序的访问装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。An application program access method and an application program access device provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, The contents of this description should not be construed as limiting the present invention.

Claims (10)

1.一种应用程序的访问方法,其特征在于,包括:1. An access method for an application program, comprising: 在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;In the preset statistical period, count the number of times that the access response message meets the preset condition; the access response message is returned by the access request message sent by the accessed object for the application program; 当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。When the number of times the access response message meets the preset condition is greater than the preset threshold, the closed state is triggered; in the closed state, when the application sends an access request message, an exception is thrown, and the access request message is prohibited from being sent to the accessed object . 2.根据权利要求1所述的方法,其特征在于,所述当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态的步骤包括:2. The method according to claim 1, wherein when the number of times the access response message meets the preset condition is greater than a preset threshold, the step of triggering the shutdown state comprises: 当针对带有特定访问参数的访问请求消息的访问响应消息,符合熔断条件的次数达到预设次数时,则触发关闭状态。When the access response message of the access request message with a specific access parameter meets the fuse condition for a preset number of times, the closed state is triggered. 3.根据权利要求1所述的方法,其特征在于,还包括:3. The method according to claim 1, further comprising: 若访问响应消息所针对的应用程序为目标应用程序,则保持正常状态;在正常状态下,不对应用程序发送的访问请求消息进行限制。If the application program targeted by the access response message is the target application program, the normal state is maintained; in the normal state, the access request message sent by the application program is not restricted. 4.根据权利要求1所述的方法,其特征在于,还包括:4. The method according to claim 1, further comprising: 当访问响应消息包括预设返回参数时,抛出异常。An exception is thrown when the access response message includes preset return parameters. 5.根据权利要求1所述的方法,其特征在于,预设条件包括:访问请求消息访问失败、访问请求消息超时、访问请求消息被拒绝。5. The method according to claim 1, wherein the preset conditions include: the access request message fails to access, the access request message times out, and the access request message is rejected. 6.根据权利要求1-5任一项所述的方法,其特征在于,还包括:6. The method according to any one of claims 1-5, further comprising: 在到达触发关闭状态之后的预设时间段时,切换为半关闭状态;在半关闭状态下,禁止应用程序发送大于预设个数的访问请求消息。When the preset time period after the shutdown state is triggered, switch to the half-closed state; in the half-closed state, the application is prohibited from sending more than a preset number of access request messages. 7.根据权利要求6所述的方法,其特征在于,还包括:7. The method according to claim 6, further comprising: 在半关闭状态下,若应用程序发送的访问请求消息访问成功,则切换为正常状态,并重置统计周期;In the semi-closed state, if the access request message sent by the application is successfully accessed, it will switch to the normal state and reset the statistical cycle; 在半关闭状态下,若应用程序发送的访问请求消息访问失败,则切换为关闭状态。In the half-closed state, if the access request message sent by the application program fails to access, it will switch to the closed state. 8.一种应用程序的访问装置,其特征在于,包括:8. An access device for an application program, comprising: 统计模块,用于在预设统计周期内,统计访问响应消息符合预设条件的次数;所述访问响应消息由被访问对象针对应用程序发送的访问请求消息返回;A statistical module, configured to count the number of times the access response message meets the preset condition within the preset statistical period; the access response message is returned by the access request message sent by the accessed object for the application program; 关闭状态触发模块,用于当访问响应消息符合预设条件的次数大于预设阈值时,则触发关闭状态;在关闭状态下,当应用程序发送访问请求消息时,抛出异常,禁止所述访问请求消息发送到被访问对象。The closed state trigger module is used to trigger the closed state when the number of times the access response message meets the preset condition is greater than the preset threshold; in the closed state, when the application sends an access request message, an exception is thrown to prohibit the access A request message is sent to the accessed object. 9.一种装置,其特征在于,包括:9. A device, characterized in that it comprises: 一个或多个处理器;和one or more processors; and 其上存储有指令的一个或多个机器可读介质,当由所述一个或多个处理器执行时,使得所述装置执行如权利要求1-7所述的一个或多个的方法。One or more machine-readable media having instructions stored thereon which, when executed by the one or more processors, cause the apparatus to perform one or more of the methods recited in claims 1-7. 10.一个或多个机器可读介质,其上存储有指令,当由一个或多个处理器执行时,使得装置执行如权利要求1-7所述的一个或多个的方法。10. One or more machine-readable media having stored thereon instructions which, when executed by one or more processors, cause an apparatus to perform one or more of the methods of claims 1-7.
CN201711107308.6A 2017-11-10 2017-11-10 The access method and device of a kind of application program Pending CN108062256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711107308.6A CN108062256A (en) 2017-11-10 2017-11-10 The access method and device of a kind of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711107308.6A CN108062256A (en) 2017-11-10 2017-11-10 The access method and device of a kind of application program

Publications (1)

Publication Number Publication Date
CN108062256A true CN108062256A (en) 2018-05-22

Family

ID=62135706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711107308.6A Pending CN108062256A (en) 2017-11-10 2017-11-10 The access method and device of a kind of application program

Country Status (1)

Country Link
CN (1) CN108062256A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274547A (en) * 2018-08-17 2019-01-25 中国平安人寿保险股份有限公司 Service blowout method, device, equipment and storage medium based on network security
CN109343955A (en) * 2018-09-14 2019-02-15 网易无尾熊(杭州)科技有限公司 Recommendation service call method, medium, device and calculating equipment
CN109408207A (en) * 2018-09-20 2019-03-01 北京小米移动软件有限公司 Micro services access control method, device and storage medium
CN110138669A (en) * 2019-04-15 2019-08-16 中国平安人寿保险股份有限公司 Interface access processing method, device, computer equipment and storage medium
CN110380987A (en) * 2019-09-10 2019-10-25 浪潮云信息技术有限公司 The method and device of the request serviced is called in a kind of processing
CN110554927A (en) * 2019-09-12 2019-12-10 北京笔新互联网科技有限公司 Micro-service calling method based on block chain
CN110795367A (en) * 2019-10-23 2020-02-14 北京达佳互联信息技术有限公司 Storage access control method and device
CN111866156A (en) * 2020-07-27 2020-10-30 网易(杭州)网络有限公司 Fusing processing method and device
CN112256454A (en) * 2020-10-30 2021-01-22 上海哔哩哔哩科技有限公司 Message delay processing method and system
CN112416636A (en) * 2020-10-29 2021-02-26 中国人寿保险股份有限公司 A fusing method and electronic device for accessing database
CN113238919A (en) * 2021-04-26 2021-08-10 北京京东拓先科技有限公司 Statistical method, device and system for user access number
CN113268290A (en) * 2021-06-16 2021-08-17 中移(杭州)信息技术有限公司 Software container optimization method, device, equipment and computer program product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976349A (en) * 2001-10-05 2007-06-06 Bea系统公司 System and method for receiving and sending asynchronous message between java servlets and HTTP client computer
CN101778004A (en) * 2006-01-23 2010-07-14 Lg电子株式会社 Be used to carry out terminal and method based on the equipment control of threshold value scheduling
CN103095786A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Online business request identification method and system and server and online sever cluster
CN104602277A (en) * 2014-12-26 2015-05-06 大唐移动通信设备有限公司 Optimizing handling method and system for abnormal switching
US20160034314A1 (en) * 1999-06-21 2016-02-04 Jia Xu Method of computing latest start times to allow real-time process overruns
CN106020948A (en) * 2016-05-10 2016-10-12 中国银联股份有限公司 Flow process scheduling method and device
CN107092660A (en) * 2017-03-28 2017-08-25 成都优易数据有限公司 A kind of Website server reptile recognition methods and device
CN107257363A (en) * 2017-05-27 2017-10-17 北京思特奇信息技术股份有限公司 A kind of method and system of respond request end request

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160034314A1 (en) * 1999-06-21 2016-02-04 Jia Xu Method of computing latest start times to allow real-time process overruns
CN1976349A (en) * 2001-10-05 2007-06-06 Bea系统公司 System and method for receiving and sending asynchronous message between java servlets and HTTP client computer
CN101778004A (en) * 2006-01-23 2010-07-14 Lg电子株式会社 Be used to carry out terminal and method based on the equipment control of threshold value scheduling
CN103095786A (en) * 2011-11-08 2013-05-08 阿里巴巴集团控股有限公司 Online business request identification method and system and server and online sever cluster
CN104602277A (en) * 2014-12-26 2015-05-06 大唐移动通信设备有限公司 Optimizing handling method and system for abnormal switching
CN106020948A (en) * 2016-05-10 2016-10-12 中国银联股份有限公司 Flow process scheduling method and device
CN107092660A (en) * 2017-03-28 2017-08-25 成都优易数据有限公司 A kind of Website server reptile recognition methods and device
CN107257363A (en) * 2017-05-27 2017-10-17 北京思特奇信息技术股份有限公司 A kind of method and system of respond request end request

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JOHN: "《https://johng.cn/circuit-breaker-pattern/》", 18 May 2017 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274547A (en) * 2018-08-17 2019-01-25 中国平安人寿保险股份有限公司 Service blowout method, device, equipment and storage medium based on network security
CN109343955A (en) * 2018-09-14 2019-02-15 网易无尾熊(杭州)科技有限公司 Recommendation service call method, medium, device and calculating equipment
CN109343955B (en) * 2018-09-14 2021-03-16 阿里巴巴(中国)有限公司 Recommendation service calling method, medium, device and computing equipment
CN109408207B (en) * 2018-09-20 2021-10-22 北京小米移动软件有限公司 Microservice access control method, microservice access control device and storage medium
CN109408207A (en) * 2018-09-20 2019-03-01 北京小米移动软件有限公司 Micro services access control method, device and storage medium
CN110138669A (en) * 2019-04-15 2019-08-16 中国平安人寿保险股份有限公司 Interface access processing method, device, computer equipment and storage medium
CN110380987A (en) * 2019-09-10 2019-10-25 浪潮云信息技术有限公司 The method and device of the request serviced is called in a kind of processing
CN110554927A (en) * 2019-09-12 2019-12-10 北京笔新互联网科技有限公司 Micro-service calling method based on block chain
CN110795367A (en) * 2019-10-23 2020-02-14 北京达佳互联信息技术有限公司 Storage access control method and device
CN111866156A (en) * 2020-07-27 2020-10-30 网易(杭州)网络有限公司 Fusing processing method and device
CN111866156B (en) * 2020-07-27 2023-07-18 网易(杭州)网络有限公司 Fusing processing method and device
CN112416636A (en) * 2020-10-29 2021-02-26 中国人寿保险股份有限公司 A fusing method and electronic device for accessing database
CN112256454A (en) * 2020-10-30 2021-01-22 上海哔哩哔哩科技有限公司 Message delay processing method and system
CN112256454B (en) * 2020-10-30 2023-05-12 上海哔哩哔哩科技有限公司 Message delay processing method and system
CN113238919A (en) * 2021-04-26 2021-08-10 北京京东拓先科技有限公司 Statistical method, device and system for user access number
CN113268290A (en) * 2021-06-16 2021-08-17 中移(杭州)信息技术有限公司 Software container optimization method, device, equipment and computer program product

Similar Documents

Publication Publication Date Title
CN108062256A (en) The access method and device of a kind of application program
EP3605352B1 (en) Short-link parsing method, apparatus and device
US9977727B2 (en) Methods and systems for internally debugging code in an on-demand service environment
US11138030B2 (en) Executing code referenced from a microservice registry
CN106331065B (en) Proxy application and system for host system with service container
EP2933955A1 (en) Deep packet inspection method, device, and coprocessor
CN112560022B (en) Method and device for detecting system interface call
CN104601492A (en) Method and device for controlling business flow under NFV framework
US20150370582A1 (en) At least one user space resident interface between at least one user space resident virtual appliance and at least one virtual data plane
CN110430180A (en) A kind of platform of internet of things and implementation method based on hot plug
CN105426236A (en) Realization method and device of high-concurrence state machine as well as system
CN114928579A (en) Data processing method and device, computer equipment and storage medium
CN115714652A (en) Transaction execution method and block link point
US20240103818A1 (en) Annotation driven just in time and state-based rbac policy control
JP7305898B2 (en) Operation response method, operation response device, electronic device and storage medium
US11755297B2 (en) Compiling monoglot function compositions into a single entity
CN110768957B (en) Network security cooperative processing method, system and storage medium
CN115604344A (en) Micro-service current limiting method and device
CN115098114A (en) Block chain-based distributed application deployment method and device
CN113673844A (en) Information feedback method, device and equipment
US9304841B2 (en) Dispatcher framework to provide inter-application communication
CN111538722A (en) Service processing method, device, equipment and service system
JP6413817B2 (en) Conversation management system, conversation management method, and conversation management program
US11768704B2 (en) Increase assignment effectiveness of kubernetes pods by reducing repetitive pod mis-scheduling
CN117873747A (en) A multi-language data access proxy device based on gRPC

Legal Events

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

Application publication date: 20180522

RJ01 Rejection of invention patent application after publication
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载