CN109104491A - A kind of micro services call method, device, server and storage medium - Google Patents
A kind of micro services call method, device, server and storage medium Download PDFInfo
- Publication number
- CN109104491A CN109104491A CN201811006347.1A CN201811006347A CN109104491A CN 109104491 A CN109104491 A CN 109104491A CN 201811006347 A CN201811006347 A CN 201811006347A CN 109104491 A CN109104491 A CN 109104491A
- Authority
- CN
- China
- Prior art keywords
- microservice
- current
- thread pool
- current microservice
- call
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (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 present invention discloses a microservice calling method, device, server and storage medium. The method includes: receiving the calling request corresponding to the current microservice sent by the current consumer through an interceptor; wherein, the calling request carries the The service level of the current microservice; in response to the call request corresponding to the current microservice, obtain the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located; use the thread corresponding to the current microservice The pool resource calls the current microservice within a preset calling time. It can not only improve the calling efficiency of microservices, but also ensure the stability of calling microservices.
Description
技术领域technical field
本发明涉及虚拟机技术领域,尤指一种微服务调用方法、装置、服务器及存储介质。The invention relates to the technical field of virtual machines, in particular to a microservice calling method, device, server and storage medium.
背景技术Background technique
随着信息科技的发展,云计算逐步成为业界的发展热点,国内外各大厂商的云计算服务平台也开始纷纷投入到科学、教育、文化、卫生、政府、高性能计算、电子商务、物联网等多个领域进行使用。With the development of information technology, cloud computing has gradually become a hot spot in the industry, and cloud computing service platforms of major manufacturers at home and abroad have also begun to invest in science, education, culture, health, government, high-performance computing, e-commerce, and the Internet of Things. used in many fields.
云海OS系统为租户提供虚拟的计算存储网络服务,在云操作系统中,可以采用微服务的架构实现分布式部署,整个系统中存在多个消费端,消费端可以调用服务端提供的微服务,随着系统功能的增多,消费端和服务端之间的交互变得异常频繁;除此之外,存在批量的操作,比如批量创建成千上万太虚拟机。创建一台虚拟机需要经过计算服务、网络服务、存储服务、日志记录服务等,在高并发访问下,这些依赖的稳定性与否对系统的影响非常大,但是依赖有很多不可控问题:如网络连接缓慢、资源繁忙、暂时不可用、服务脱机等。The Yunhai OS system provides tenants with virtual computing and storage network services. In the cloud operating system, a microservice architecture can be used to implement distributed deployment. There are multiple consumers in the entire system, and the consumers can call the microservices provided by the server. With the increase of system functions, the interaction between the consumer and the server becomes extremely frequent; in addition, there are batch operations, such as batch creation of thousands of virtual machines. Creating a virtual machine requires computing services, network services, storage services, logging services, etc. Under high concurrent access, the stability of these dependencies has a great impact on the system, but there are many uncontrollable problems in dependencies: Slow network connection, busy resource, temporarily unavailable, service offline, etc.
在实现本发明的过程中,发明人发现现有技术中至少存在如下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:
在现有的微服务调用方法中,高并发的微服务调用没有隔离措施,当前微服务有被拖垮的风险。例如:一个依赖30个SOA微服务的系统,每个微服务99.99%可用。99.99%的30次方≈99.7%,0.3%意味着一亿次请求会有300000次失败,换算成时间大约每月有2个小时微服务不稳定,随着依赖数量的变多,微服务不稳定的概率会成指数性提高。In the existing microservice invocation method, there is no isolation measure for highly concurrent microservice invocation, and the current microservice has the risk of being dragged down. For example: a system that depends on 30 SOA microservices, each microservice is 99.99% available. The 30th power of 99.99% ≈ 99.7%, 0.3% means that there will be 300,000 failures for 100 million requests. Converted to about 2 hours per month, microservices are unstable. As the number of dependencies increases, microservices will not The probability of stability increases exponentially.
发明内容Contents of the invention
为了解决上述技术问题,本发明提供了一种微服务调用方法、装置、服务器及存储介质,不仅可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性。In order to solve the above technical problems, the present invention provides a microservice calling method, device, server and storage medium, which can not only improve the calling efficiency of the microservice, but also ensure the stability of the calling of the microservice.
为了达到本发明目的,第一方面,本发明提供了一种微服务调用方法,所述方法包括:In order to achieve the purpose of the present invention, in the first aspect, the present invention provides a method for invoking microservices, the method comprising:
通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,所述调用请求中携带所述当前微服务的服务级别;Receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice;
响应于所述当前微服务对应的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源;In response to the call request corresponding to the current microservice, obtain the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located;
使用所述当前微服务对应的线程池资源在预设调用时间内对所述当前微服务进行调用。Using the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time.
在上述实施例中,所述方法还包括:In the above embodiment, the method further includes:
若使用所述当前微服务对应的线程池资源在所述预设调用时间内对所述当前微服务调用成功,则向所述当前消费端返回一个调用成功消息;If the thread pool resource corresponding to the current microservice is used to successfully call the current microservice within the preset call time, return a call success message to the current consumer;
若使用所述当前微服务对应的线程池资源在所述预设调用时间内对所述当前微服务调用失败,则向所述当前消费端返回一个调用失败消息。If the thread pool resource corresponding to the current microservice fails to call the current microservice within the preset call time, return a call failure message to the current consumer.
在上述实施例中,所述响应于所述当前微服务对应的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源,包括:In the above embodiment, the acquisition of the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice includes:
响应于所述当前微服务对应的调用请求判断所述当前微服务所在的线程池是否已达到饱和;In response to the call request corresponding to the current microservice, determine whether the thread pool where the current microservice is located has reached saturation;
若所述当前微服务所在的线程池已达到饱和,则将所述当前微服务的服务级别进行降级;并根据降级后的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源;If the thread pool where the current microservice is located has reached saturation, then downgrade the service level of the current microservice; and obtain the current microservice in the thread pool where the current microservice is located according to the degraded call request The thread pool resource corresponding to the service;
若所述当前微服务所在的线程池未达到饱和,则将所述当前微服务对应的服务级别进行保持;并根据所述调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源。If the thread pool where the current microservice is located is not saturated, then maintain the service level corresponding to the current microservice; and obtain the current microservice in the thread pool where the current microservice is located according to the call request The thread pool resource corresponding to the service.
在上述实施例中,所述方法还包括:In the above embodiment, the method further includes:
通过熔断器获取所述当前微服务的运行状态;其中,所述运行状态包括:成功状态、失败状态、拒绝状态和超时状态;Obtain the running status of the current microservice through a fuse; wherein, the running status includes: success status, failure status, rejection status and timeout status;
根据所述当前微服务的运行状态对所述当前微服务进行相应的处理。Perform corresponding processing on the current microservice according to the running state of the current microservice.
第二方面,本发明还提供了一种微服务调用装置,所述装置包括:接收模块、获取模块和调用模块;其中,In the second aspect, the present invention also provides a microservice calling device, which includes: a receiving module, an acquiring module, and a calling module; wherein,
所述接收模块,用于通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,所述调用请求中携带所述当前微服务的服务级别;The receiving module is configured to receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice;
所述获取模块,用于响应于所述当前微服务对应的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源;The acquiring module is configured to acquire the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice;
所述调用模块,用于使用所述当前微服务对应的线程池资源在预设调用时间内对所述当前微服务进行调用。The calling module is configured to use the thread pool resource corresponding to the current microservice to call the current microservice within a preset calling time.
在上述实施例中,所述调用模块,还用于若使用所述当前微服务对应的线程池资源在所述预设调用时间内对所述当前微服务调用成功,则向所述当前消费端返回一个调用成功消息;若使用所述当前微服务对应的线程池资源在所述预设调用时间内对所述当前微服务调用失败,则向所述当前消费端返回一个调用失败消息。In the above embodiment, the invoking module is further configured to: if the invocation of the current microservice is successful within the preset invocation time using the thread pool resource corresponding to the current microservice, then send a message to the current consumer Return a call success message; if the thread pool resource corresponding to the current microservice fails to call the current microservice within the preset call time, return a call failure message to the current consumer.
在上述实施例中,所述获取模块包括:判断子模块和获取子模块;其中,In the above embodiment, the acquiring module includes: a judging submodule and an acquiring submodule; wherein,
所述判断子模块,用于响应于所述当前微服务对应的调用请求判断所述当前微服务所在的线程池是否已达到饱和;The judging submodule is used to judge whether the thread pool where the current microservice is located has reached saturation in response to the call request corresponding to the current microservice;
所述获取子模块,用于若所述当前微服务所在的线程池已达到饱和,则将所述当前微服务的服务级别进行降级;并根据降级后的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源;若所述当前微服务所在的线程池未达到饱和,则将所述当前微服务对应的服务级别进行保持;并根据所述调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源。The obtaining sub-module is used to downgrade the service level of the current microservice if the thread pool where the current microservice is located has reached saturation; Obtain the thread pool resources corresponding to the current microservice from the thread pool; if the thread pool where the current microservice is located is not saturated, then keep the service level corresponding to the current microservice; A thread pool resource corresponding to the current microservice is obtained from the thread pool where the current microservice is located.
在上述实施例中,所述调用模块,还用于通过熔断器获取所述当前微服务的运行状态;其中,所述运行状态包括:成功状态、失败状态、拒绝状态和超时状态;根据所述当前微服务的运行状态对所述当前微服务进行相应的处理。In the above embodiment, the calling module is also used to obtain the running status of the current microservice through a fuse; wherein, the running status includes: success status, failure status, rejection status and timeout status; according to the The running state of the current microservice performs corresponding processing on the current microservice.
第三方面,本发明实施例提供了一种服务器,包括:In a third aspect, an embodiment of the present invention provides a server, including:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序,memory for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例所述的微服务调用方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the microservice calling method described in any embodiment of the present invention.
第四方面,本发明实施例提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例所述的微服务调用方法。In a fourth aspect, an embodiment of the present invention provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the method for invoking a microservice described in any embodiment of the present invention is implemented.
本发明实施例提出了一种微服务调用方法、装置、服务器及存储介质,先通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别;然后响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源;最后使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。也就是说,在本发明的技术方案中,可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源,从而可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。而在现有的微服务调用方法中,高并发的微服务调用没有隔离措施,当前微服务有被拖垮的风险。因此,和现有技术相比,本发明实施例提出的微服务调用方法、装置、服务器及存储介质,不仅可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The embodiment of the present invention proposes a microservice invocation method, device, server, and storage medium. First, the invocation request corresponding to the current microservice sent by the current consumer is received through an interceptor; wherein, the invocation request carries the service level of the current microservice ; Then in response to the call request corresponding to the current microservice, obtain the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located; finally use the thread pool resource corresponding to the current microservice to call the current microservice within the preset call time to make the call. That is to say, in the technical solution of the present invention, the thread pool resource corresponding to the current microservice can be obtained in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice, so that the thread corresponding to the current microservice can be used The pool resource calls the current microservice within the preset call time. However, in the existing microservice calling methods, there is no isolation measure for highly concurrent microservice calls, and the current microservices are at risk of being dragged down. Therefore, compared with the prior art, the microservice invocation method, device, server, and storage medium proposed in the embodiments of the present invention can not only improve the invocation efficiency of microservices, but also ensure the invocation stability of microservices; and, the present invention The technical solution of the embodiment of the invention is simple and convenient to implement, easy to popularize, and has a wider application range.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.
图1为本发明实施例一提供的微服务调用方法的流程示意图;FIG. 1 is a schematic flow diagram of a microservice calling method provided in Embodiment 1 of the present invention;
图2为本发明实施例二提供的微服务调用方法的流程示意图;FIG. 2 is a schematic flowchart of a microservice invocation method provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的微服务调用方法的流程示意图;FIG. 3 is a schematic flowchart of a microservice invocation method provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的微服务调用装置的第一结构示意图;FIG. 4 is a schematic diagram of a first structure of a microservice calling device provided in Embodiment 4 of the present invention;
图5为本发明实施例四提供的微服务调用装置的第二结构示意图;FIG. 5 is a schematic diagram of a second structure of a microservice calling device provided in Embodiment 4 of the present invention;
图6为本发明实施例五提供的服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server provided in Embodiment 5 of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
实施例一Embodiment one
图1为本发明实施例一提供的微服务调用方法的流程示意图,该方法可以由微服务调用装置或者服务器来执行,该装置或者服务器可以由软件和/或硬件的方式实现,该装置或者服务器可以集成在任何具有网络通信功能的智能设备中。如图1所示,微服务调用方法可以包括以下步骤:Fig. 1 is a schematic flow chart of a microservice invocation method provided by Embodiment 1 of the present invention. The method can be executed by a microservice invocation device or server, and the device or server can be implemented by software and/or hardware. The device or server Can be integrated in any smart device with network communication function. As shown in Figure 1, the microservice invocation method may include the following steps:
步骤101、通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别。Step 101: Receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice.
在本发明的具体实施例中,服务器可以通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别。具体地,各个消费端发送给服务器所有调用请求都会经过拦截器,拦截器在接收到各个消费端发送的调用请求之后,会对各个调用请求进行相应的处理。具体地,拦截器可以判断接收到的调用请求是否为合法的调用请求,若拦截器判断出该调用请求为合法的调用请求,则拦截器会将该调用请求上报给服务器;若拦截器判断出该调用请求为非法的调用请求,则拦截器不会将该调用请求上报给服务器。In a specific embodiment of the present invention, the server may receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice. Specifically, all invocation requests sent by each consumer end to the server will pass through the interceptor, and the interceptor will process each invocation request accordingly after receiving the invocation request sent by each consumer end. Specifically, the interceptor can judge whether the call request received is a legal call request. If the interceptor judges that the call request is a legal call request, the interceptor will report the call request to the server; If the invocation request is an illegal invocation request, the interceptor will not report the invocation request to the server.
在本发明的具体实施例中,各个消费端发送给服务器的调用请求中可以携带当前微服务的服务级别,该服务级别可以是预先确定的当前微服务的优先级,表示当前微服务的重要程度;当前微服务的服务级别越高,则表示当前微服务越重要;当前微服务的服务级别越低,则表示当前微服务越不重要。In a specific embodiment of the present invention, the service level of the current microservice can be carried in the call request sent by each consumer to the server, and the service level can be a predetermined priority of the current microservice, indicating the importance of the current microservice ; The higher the service level of the current microservice, the more important the current microservice is; the lower the service level of the current microservice, the less important the current microservice is.
步骤102、响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。Step 102 , in response to the call request corresponding to the current microservice, obtain the thread pool resource corresponding to the current microservice from the thread pool where the current microservice is located.
在本发明的具体实施例中,服务器可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。具体地,服务器可以先根据当前微服务对应的调用请求确定当前微服务所在的线程池,然后在当前微服务所在的线程池中获取当前微服务对应的线程池资源。若服务器在当前微服务所在的线程池中获取到当前微服务对应的线程池资源,则服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用;若服务器在当前微服务所在的线程池中未获取到当前微服务对应的线程池资源,则服务器可以结束对当前微服务的调用。也就是说,在本发明的具体实施例中,服务器是在当前微服务所在的线程池中获取当前微服务对应的线程池资源,而不是在全部线程池中获取当前微服务对应的线程池资源,因此,可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性。In a specific embodiment of the present invention, the server may obtain the thread pool resource corresponding to the current microservice from the thread pool where the current microservice is located in response to the call request corresponding to the current microservice. Specifically, the server may first determine the thread pool where the current microservice is located according to the call request corresponding to the current microservice, and then obtain the thread pool resources corresponding to the current microservice from the thread pool where the current microservice is located. If the server obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, the server can use the thread pool resources corresponding to the current microservice to call the current microservice within the preset call time; if the server is in If the thread pool resource corresponding to the current microservice is not obtained from the thread pool where the current microservice is located, the server can end the call to the current microservice. That is to say, in a specific embodiment of the present invention, the server obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, instead of obtaining the thread pool resources corresponding to the current microservice in all thread pools , therefore, the calling efficiency of the microservice can be improved, and the stability of the calling of the microservice can also be guaranteed.
步骤103、使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。Step 103, using the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time.
在本发明的具体实施例中,服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。具体地,若服务器在当前微服务所在的线程池中获取到当前微服务对应的线程池资源,则服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用;若服务器在当前微服务所在的线程池中未获取到当前微服务对应的线程池资源,则服务器可以结束对当前微服务的调用。In a specific embodiment of the present invention, the server may use the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time. Specifically, if the server obtains the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located, the server can use the thread pool resource corresponding to the current microservice to call the current microservice within the preset call time; If the server does not obtain the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located, the server may end the call to the current microservice.
本发明实施例提出的微服务调用方法,先通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别;然后响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源;最后使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。也就是说,在本发明的技术方案中,可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源,从而可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。而在现有的微服务调用方法中,高并发的微服务调用没有隔离措施,当前微服务有被拖垮的风险。因此,和现有技术相比,本发明实施例提出的微服务调用方法,不仅可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The microservice invocation method proposed by the embodiment of the present invention firstly receives the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice; and then responds to the invocation request corresponding to the current microservice The call request obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located; finally, use the thread pool resources corresponding to the current microservice to call the current microservice within the preset call time. That is to say, in the technical solution of the present invention, the thread pool resource corresponding to the current microservice can be obtained in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice, so that the thread corresponding to the current microservice can be used The pool resource calls the current microservice within the preset call time. However, in the existing microservice calling methods, there is no isolation measure for highly concurrent microservice calls, and the current microservices are at risk of being dragged down. Therefore, compared with the prior art, the microservice calling method proposed by the embodiment of the present invention can not only improve the calling efficiency of the microservice, but also ensure the stability of the calling of the microservice; and, the technical solution of the embodiment of the present invention realizes Simple and convenient, easy to popularize, wider scope of application.
实施例二Embodiment two
图2为本发明实施例二提供的微服务调用方法的流程示意图。如图2所示,微服务调用方法可以包括以下步骤:FIG. 2 is a schematic flowchart of a method for invoking a microservice provided by Embodiment 2 of the present invention. As shown in Figure 2, the microservice invocation method may include the following steps:
步骤201、通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别。Step 201: Receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice.
在本发明的具体实施例中,服务器可以通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别。具体地,各个消费端发送给服务器所有调用请求都会经过拦截器,拦截器在接收到各个消费端发送的调用请求之后,会对各个调用请求进行相应的处理。具体地,拦截器可以判断接收到的调用请求是否为合法的调用请求,若拦截器判断出该调用请求为合法的调用请求,则拦截器会将该调用请求上报给服务器;若拦截器判断出该调用请求为非法的调用请求,则拦截器不会将该调用请求上报给服务器。In a specific embodiment of the present invention, the server may receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice. Specifically, all invocation requests sent by each consumer end to the server will pass through the interceptor, and the interceptor will process each invocation request accordingly after receiving the invocation request sent by each consumer end. Specifically, the interceptor can judge whether the call request received is a legal call request. If the interceptor judges that the call request is a legal call request, the interceptor will report the call request to the server; If the invocation request is an illegal invocation request, the interceptor will not report the invocation request to the server.
在本发明的具体实施例中,各个消费端发送给服务器的调用请求中可以携带当前微服务的服务级别,该服务级别可以是预先确定的当前微服务的优先级,表示当前微服务的重要程度;当前微服务的服务级别越高,则表示当前微服务越重要;当前微服务的服务级别越低,则表示当前微服务越不重要。In a specific embodiment of the present invention, the service level of the current microservice can be carried in the call request sent by each consumer to the server, and the service level can be a predetermined priority of the current microservice, indicating the importance of the current microservice ; The higher the service level of the current microservice, the more important the current microservice is; the lower the service level of the current microservice, the less important the current microservice is.
步骤202、响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。Step 202, in response to the calling request corresponding to the current microservice, obtain the thread pool resources corresponding to the current microservice from the thread pool where the current microservice is located.
在本发明的具体实施例中,服务器可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。具体地,服务器可以先根据当前微服务对应的调用请求确定当前微服务所在的线程池,然后在当前微服务所在的线程池中获取当前微服务对应的线程池资源。若服务器在当前微服务所在的线程池中获取到当前微服务对应的线程池资源,则服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用;若服务器在当前微服务所在的线程池中未获取到当前微服务对应的线程池资源,则服务器可以结束对当前微服务的调用。也就是说,在本发明的具体实施例中,服务器是在当前微服务所在的线程池中获取当前微服务对应的线程池资源,而不是在全部线程池中获取当前微服务对应的线程池资源,因此,可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性。In a specific embodiment of the present invention, the server may obtain the thread pool resource corresponding to the current microservice from the thread pool where the current microservice is located in response to the call request corresponding to the current microservice. Specifically, the server may first determine the thread pool where the current microservice is located according to the call request corresponding to the current microservice, and then obtain the thread pool resources corresponding to the current microservice from the thread pool where the current microservice is located. If the server obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, the server can use the thread pool resources corresponding to the current microservice to call the current microservice within the preset call time; if the server is in If the thread pool resource corresponding to the current microservice is not obtained from the thread pool where the current microservice is located, the server can end the call to the current microservice. That is to say, in a specific embodiment of the present invention, the server obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, instead of obtaining the thread pool resources corresponding to the current microservice in all thread pools , therefore, the calling efficiency of the microservice can be improved, and the stability of the calling of the microservice can also be guaranteed.
较佳地,在本发明的具体实施例中,服务器可以响应于当前微服务对应的调用请求判断当前微服务所在的线程池是否已达到饱和;若当前微服务所在的线程池已达到饱和,则服务器可以将当前微服务的服务级别进行降级;并根据降级后的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源;若当前微服务所在的线程池未达到饱和,则服务器可以将当前微服务对应的服务级别进行保持;并根据调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。Preferably, in a specific embodiment of the present invention, the server can respond to the call request corresponding to the current microservice to determine whether the thread pool where the current microservice is located has reached saturation; if the thread pool where the current microservice is located has reached saturation, then The server can downgrade the service level of the current microservice; and obtain the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located according to the downgraded call request; if the thread pool where the current microservice is located is not saturated, Then the server can keep the service level corresponding to the current microservice; and obtain the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located according to the call request.
步骤203、使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。Step 203, using the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time.
在本发明的具体实施例中,服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。具体地,若服务器在当前微服务所在的线程池中获取到当前微服务对应的线程池资源,则服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用;若服务器在当前微服务所在的线程池中未获取到当前微服务对应的线程池资源,则服务器可以结束对当前微服务的调用。In a specific embodiment of the present invention, the server may use the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time. Specifically, if the server obtains the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located, the server can use the thread pool resource corresponding to the current microservice to call the current microservice within the preset call time; If the server does not obtain the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, the server may end the call to the current microservice.
步骤204、若使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用成功,则向当前消费端返回一个调用成功消息;若使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用失败,则向当前消费端返回一个调用失败消息。Step 204: If the thread pool resource corresponding to the current microservice is used to successfully call the current microservice within the preset call time, a call success message is returned to the current consumer; if the thread pool resource corresponding to the current microservice is used within the preset call time If the call to the current microservice fails within the call time, a call failure message will be returned to the current consumer.
在本发明的具体实施例中,若服务器使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用成功,则服务器可以向当前消费端返回一个调用成功消息;若服务器使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用失败,则服务器可以向当前消费端返回一个调用失败消息。In a specific embodiment of the present invention, if the server uses the thread pool resource corresponding to the current microservice to successfully call the current microservice within the preset call time, the server can return a call success message to the current consumer; if the server uses the current If the thread pool resource corresponding to the microservice fails to call the current microservice within the preset call time, the server can return a call failure message to the current consumer.
本发明实施例提出的微服务调用方法,先通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别;然后响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源;最后使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。也就是说,在本发明的技术方案中,可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源,从而可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。而在现有的微服务调用方法中,高并发的微服务调用没有隔离措施,当前微服务有被拖垮的风险。因此,和现有技术相比,本发明实施例提出的微服务调用方法,不仅可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The microservice invocation method proposed by the embodiment of the present invention firstly receives the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice; and then responds to the invocation request corresponding to the current microservice The call request obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located; finally, use the thread pool resources corresponding to the current microservice to call the current microservice within the preset call time. That is to say, in the technical solution of the present invention, the thread pool resource corresponding to the current microservice can be obtained in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice, so that the thread corresponding to the current microservice can be used The pool resource calls the current microservice within the preset call time. However, in the existing microservice calling methods, there is no isolation measure for highly concurrent microservice calls, and the current microservices are at risk of being dragged down. Therefore, compared with the prior art, the microservice calling method proposed by the embodiment of the present invention can not only improve the calling efficiency of the microservice, but also ensure the stability of the calling of the microservice; and, the technical solution of the embodiment of the present invention realizes Simple and convenient, easy to popularize, wider scope of application.
实施例三Embodiment three
图3为本发明实施例三提供的微服务调用方法的流程示意图。如图3所示,微服务调用方法可以包括以下步骤:FIG. 3 is a schematic flowchart of a method for invoking a microservice provided by Embodiment 3 of the present invention. As shown in Figure 3, the microservice invocation method may include the following steps:
步骤301、通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别。Step 301: Receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice.
在本发明的具体实施例中,服务器可以通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别。具体地,各个消费端发送给服务器所有调用请求都会经过拦截器,拦截器在接收到各个消费端发送的调用请求之后,会对各个调用请求进行相应的处理。具体地,拦截器可以判断接收到的调用请求是否为合法的调用请求,若拦截器判断出该调用请求为合法的调用请求,则拦截器会将该调用请求上报给服务器;若拦截器判断出该调用请求为非法的调用请求,则拦截器不会将该调用请求上报给服务器。In a specific embodiment of the present invention, the server may receive the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice. Specifically, all invocation requests sent by each consumer end to the server will pass through the interceptor, and the interceptor will process each invocation request accordingly after receiving the invocation request sent by each consumer end. Specifically, the interceptor can judge whether the call request received is a legal call request. If the interceptor judges that the call request is a legal call request, the interceptor will report the call request to the server; If the invocation request is an illegal invocation request, the interceptor will not report the invocation request to the server.
在本发明的具体实施例中,各个消费端发送给服务器的调用请求中可以携带当前微服务的服务级别,该服务级别可以是预先确定的当前微服务的优先级,表示当前微服务的重要程度;当前微服务的服务级别越高,则表示当前微服务越重要;当前微服务的服务级别越低,则表示当前微服务越不重要。In a specific embodiment of the present invention, the service level of the current microservice can be carried in the call request sent by each consumer to the server, and the service level can be a predetermined priority of the current microservice, indicating the importance of the current microservice ; The higher the service level of the current microservice, the more important the current microservice is; the lower the service level of the current microservice, the less important the current microservice is.
步骤302、响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。Step 302 , in response to the call request corresponding to the current microservice, obtain the thread pool resource corresponding to the current microservice from the thread pool where the current microservice is located.
在本发明的具体实施例中,服务器可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。具体地,服务器可以先根据当前微服务对应的调用请求确定当前微服务所在的线程池,然后在当前微服务所在的线程池中获取当前微服务对应的线程池资源。若服务器在当前微服务所在的线程池中获取到当前微服务对应的线程池资源,则服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用;若服务器在当前微服务所在的线程池中未获取到当前微服务对应的线程池资源,则服务器可以结束对当前微服务的调用。也就是说,在本发明的具体实施例中,服务器是在当前微服务所在的线程池中获取当前微服务对应的线程池资源,而不是在全部线程池中获取当前微服务对应的线程池资源,因此,可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性。In a specific embodiment of the present invention, the server may obtain the thread pool resource corresponding to the current microservice from the thread pool where the current microservice is located in response to the call request corresponding to the current microservice. Specifically, the server may first determine the thread pool where the current microservice is located according to the call request corresponding to the current microservice, and then obtain the thread pool resources corresponding to the current microservice from the thread pool where the current microservice is located. If the server obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, the server can use the thread pool resources corresponding to the current microservice to call the current microservice within the preset call time; if the server is in If the thread pool resource corresponding to the current microservice is not obtained from the thread pool where the current microservice is located, the server can end the call to the current microservice. That is to say, in a specific embodiment of the present invention, the server obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located, instead of obtaining the thread pool resources corresponding to the current microservice in all thread pools , therefore, the calling efficiency of the microservice can be improved, and the stability of the calling of the microservice can also be guaranteed.
较佳地,在本发明的具体实施例中,服务器可以响应于当前微服务对应的调用请求判断当前微服务所在的线程池是否已达到饱和;若当前微服务所在的线程池已达到饱和,则服务器可以将当前微服务的服务级别进行降级;并根据降级后的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源;若当前微服务所在的线程池未达到饱和,则服务器可以将当前微服务对应的服务级别进行保持;并根据调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源。Preferably, in a specific embodiment of the present invention, the server can respond to the call request corresponding to the current microservice to determine whether the thread pool where the current microservice is located has reached saturation; if the thread pool where the current microservice is located has reached saturation, then The server can downgrade the service level of the current microservice; and obtain the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located according to the downgraded call request; if the thread pool where the current microservice is located is not saturated, Then the server can keep the service level corresponding to the current microservice; and obtain the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located according to the call request.
步骤303、使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。Step 303, using the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time.
在本发明的具体实施例中,服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。具体地,若服务器在当前微服务所在的线程池中获取到当前微服务对应的线程池资源,则服务器可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用;若服务器在当前微服务所在的线程池中未获取到当前微服务对应的线程池资源,则服务器可以结束对当前微服务的调用。In a specific embodiment of the present invention, the server may use the thread pool resources corresponding to the current microservice to call the current microservice within a preset call time. Specifically, if the server obtains the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located, the server can use the thread pool resource corresponding to the current microservice to call the current microservice within the preset call time; If the server does not obtain the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located, the server may end the call to the current microservice.
步骤304、若使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用成功,则向当前消费端返回一个调用成功消息;若使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用失败,则向当前消费端返回一个调用失败消息。Step 304: If the thread pool resource corresponding to the current microservice is used to call the current microservice successfully within the preset call time, return a call success message to the current consumer; if the thread pool resource corresponding to the current microservice is used within the preset call time If the call to the current microservice fails within the call time, a call failure message will be returned to the current consumer.
在本发明的具体实施例中,若服务器使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用成功,则服务器可以向当前消费端返回一个调用成功消息;若服务器使用当前微服务对应的线程池资源在预设调用时间内对当前微服务调用失败,则服务器可以向当前消费端返回一个调用失败消息。In a specific embodiment of the present invention, if the server uses the thread pool resource corresponding to the current microservice to successfully call the current microservice within the preset call time, the server can return a call success message to the current consumer; if the server uses the current If the thread pool resource corresponding to the microservice fails to call the current microservice within the preset call time, the server can return a call failure message to the current consumer.
步骤305、通过熔断器获取当前微服务的运行状态;其中,运行状态包括:成功状态、失败状态、拒绝状态和超时状态。Step 305, obtain the running state of the current microservice through the fuse; wherein, the running state includes: success state, failure state, rejection state and timeout state.
在本发明的具体实施例中,服务器可以通过熔断器获取当前微服务的运行状态;其中,运行状态包括:成功状态、失败状态、拒绝状态和超时状态。具体地,服务器可以按照预设周期通过熔断器获取当前微服务的运行状态。In a specific embodiment of the present invention, the server can obtain the running status of the current microservice through the fuse; wherein, the running status includes: success status, failure status, rejection status and timeout status. Specifically, the server can obtain the current running status of the microservice through the fuse according to a preset period.
步骤306、根据当前微服务的运行状态对当前微服务进行相应的处理。Step 306: Perform corresponding processing on the current microservice according to the running state of the current microservice.
在本发明的具体实施例中,服务器可以根据当前微服务的运行状态对当前微服务进行相应的处理。具体地,若当前微服务的运行状态为成功状态,则服务器可以保持对当前微服务的调用;若当前微服务的运行状态为失败状态、拒绝状态或者超时状态,则服务器可以结束对当前微服务的调用。In a specific embodiment of the present invention, the server may perform corresponding processing on the current microservice according to the running state of the current microservice. Specifically, if the running status of the current microservice is successful, the server can keep calling the current microservice; if the running status of the current microservice is failed, rejected or timed out, the server can end the call call.
本发明实施例提出的微服务调用方法,先通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,调用请求中携带当前微服务的服务级别;然后响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源;最后使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。也就是说,在本发明的技术方案中,可以响应于当前微服务对应的调用请求在当前微服务所在的线程池中获取当前微服务对应的线程池资源,从而可以使用当前微服务对应的线程池资源在预设调用时间内对当前微服务进行调用。而在现有的微服务调用方法中,高并发的微服务调用没有隔离措施,当前微服务有被拖垮的风险。因此,和现有技术相比,本发明实施例提出的微服务调用方法,不仅可以提高微服务的调用效率,而且还可以保证微服务的调用稳定性;并且,本发明实施例的技术方案实现简单方便、便于普及,适用范围更广。The microservice invocation method proposed by the embodiment of the present invention firstly receives the invocation request corresponding to the current microservice sent by the current consumer through the interceptor; wherein, the invocation request carries the service level of the current microservice; and then responds to the invocation request corresponding to the current microservice The call request obtains the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located; finally, use the thread pool resources corresponding to the current microservice to call the current microservice within the preset call time. That is to say, in the technical solution of the present invention, the thread pool resource corresponding to the current microservice can be obtained in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice, so that the thread corresponding to the current microservice can be used The pool resource calls the current microservice within the preset call time. However, in the existing microservice calling methods, there is no isolation measure for highly concurrent microservice calls, and the current microservices are at risk of being dragged down. Therefore, compared with the prior art, the microservice calling method proposed by the embodiment of the present invention can not only improve the calling efficiency of the microservice, but also ensure the stability of the calling of the microservice; and, the technical solution of the embodiment of the present invention realizes Simple and convenient, easy to popularize, wider scope of application.
实施例四Embodiment four
图4为本发明实施例四提供的微服务调用装置的第一结构示意图。如图4所示,本发明实施例所述的微服务调用装置可以包括:接收模块401、获取模块402和调用模块403;其中,FIG. 4 is a schematic diagram of a first structure of a microservice invocation device provided in Embodiment 4 of the present invention. As shown in FIG. 4 , the microservice calling device described in the embodiment of the present invention may include: a receiving module 401, an obtaining module 402, and a calling module 403; wherein,
所述接收模块401,用于通过拦截器接收当前消费端发送的当前微服务对应的调用请求;其中,所述调用请求中携带所述当前微服务的服务级别;The receiving module 401 is configured to receive the invocation request corresponding to the current microservice sent by the current consumer through an interceptor; wherein, the invocation request carries the service level of the current microservice;
所述获取模块402,用于响应于所述当前微服务对应的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源;The acquisition module 402 is configured to acquire the thread pool resource corresponding to the current microservice in the thread pool where the current microservice is located in response to the call request corresponding to the current microservice;
所述调用模块403,用于使用所述当前微服务对应的线程池资源在预设调用时间内对所述当前微服务进行调用。The calling module 403 is configured to use the thread pool resources corresponding to the current microservice to call the current microservice within a preset calling time.
进一步的,所述调用模块403,还用于若使用所述当前微服务对应的线程池资源在所述预设调用时间内对所述当前微服务调用成功,则向所述当前消费端返回一个调用成功消息;若使用所述当前微服务对应的线程池资源在所述预设调用时间内对所述当前微服务调用失败,则向所述当前消费端返回一个调用失败消息。Further, the invoking module 403 is further configured to return a message to the current consumer if the invocation of the current microservice is successful within the preset invocation time using the thread pool resources corresponding to the current microservice. A call success message; if the thread pool resource corresponding to the current microservice fails to call the current microservice within the preset call time, return a call failure message to the current consumer.
图5为本发明实施例四提供的微服务调用装置的第二结构示意图。如图5所示,所述获取模块402包括:判断子模块4021和获取子模块4022;其中,FIG. 5 is a schematic diagram of a second structure of a microservice calling device provided in Embodiment 4 of the present invention. As shown in FIG. 5, the acquisition module 402 includes: a judgment submodule 4021 and an acquisition submodule 4022; wherein,
所述判断子模块4021,用于响应于所述当前微服务对应的调用请求判断所述当前微服务所在的线程池是否已达到饱和;The judging sub-module 4021 is configured to judge whether the thread pool where the current microservice is located has reached saturation in response to the call request corresponding to the current microservice;
所述获取子模块4022,用于若所述当前微服务所在的线程池已达到饱和,则将所述当前微服务的服务级别进行降级;并根据降级后的调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源;若所述当前微服务所在的线程池未达到饱和,则将所述当前微服务对应的服务级别进行保持;并根据所述调用请求在所述当前微服务所在的线程池中获取所述当前微服务对应的线程池资源。The acquisition sub-module 4022 is configured to downgrade the service level of the current microservice if the thread pool where the current microservice is located has reached saturation; Obtain the thread pool resources corresponding to the current microservice from the thread pool of the current microservice; if the thread pool where the current microservice is located is not saturated, keep the service level corresponding to the current microservice; and according to the call request Obtain the thread pool resources corresponding to the current microservice in the thread pool where the current microservice is located.
进一步的,所述调用模块403,还用于通过熔断器获取所述当前微服务的运行状态;其中,所述运行状态包括:成功状态、失败状态、拒绝状态和超时状态;根据所述当前微服务的运行状态对所述当前微服务进行相应的处理。Further, the calling module 403 is also used to obtain the running status of the current micro-service through a fuse; wherein, the running status includes: success status, failure status, rejection status and timeout status; according to the current micro-service The running status of the service performs corresponding processing on the current microservice.
上述微服务调用装置可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例提供的微服务调用方法。The above-mentioned microservice calling device can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in this embodiment, refer to the method for invoking a microservice provided in any embodiment of the present invention.
实施例五Embodiment five
图6为本发明实施例五提供的服务器的结构示意图。图6示出了适于用来实现本发明实施方式的示例性服务器的框图。图6显示的服务器12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 6 is a schematic structural diagram of a server provided in Embodiment 5 of the present invention. Figure 6 shows a block diagram of an exemplary server suitable for use in implementing embodiments of the present invention. The server 12 shown in FIG. 6 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention.
如图6所示,服务器12以通用计算设备的形式表现。服务器12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 6, server 12 takes the form of a general-purpose computing device. Components of server 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, bus 18 connecting various system components including system memory 28 and processing unit 16.
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. These architectures include, by way of example, but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.
服务器12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被服务器12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by server 12 and include both volatile and nonvolatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。服务器12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图6未显示,通常称为“硬盘驱动器”)。尽管图6中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 . The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a disk drive for reading and writing to removable nonvolatile disks (e.g., "floppy disks") may be provided, as well as for removable nonvolatile optical disks (e.g., CD-ROM, DVD-ROM). or other optical media) CD-ROM drive. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data , each or some combination of these examples may include implementations of network environments. Program modules 42 generally perform the functions and/or methodologies of the described embodiments of the invention.
服务器12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该服务器12交互的设备通信,和/或与使得该服务器12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,服务器12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与服务器12的其它模块通信。应当明白,尽管图中未示出,可以结合服务器12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), and may also communicate with one or more devices that enable users to interact with Server 12 is capable of communicating with any device (eg, network card, modem, etc.) that communicates with one or more other computing devices. Such communication may occur through input/output (I/O) interface 22 . Moreover, the server 12 can also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN) and/or a public network, such as the Internet) through the network adapter 20 . As shown, network adapter 20 communicates with other modules of server 12 via bus 18 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and Data backup storage system, etc.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的微服务调用方法。The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28 , such as realizing the microservice calling method provided by the embodiment of the present invention.
实施例六Embodiment six
本发明实施例六提供了一种计算机存储介质。Embodiment 6 of the present invention provides a computer storage medium.
本发明实施例的计算机可读存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer-readable storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer readable storage media include: electrical connections with one or more leads, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including - but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present 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 and optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the 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 equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus 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 apparatus 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 instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811006347.1A CN109104491A (en) | 2018-08-30 | 2018-08-30 | A kind of micro services call method, device, server and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811006347.1A CN109104491A (en) | 2018-08-30 | 2018-08-30 | A kind of micro services call method, device, server and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109104491A true CN109104491A (en) | 2018-12-28 |
Family
ID=64864567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811006347.1A Pending CN109104491A (en) | 2018-08-30 | 2018-08-30 | A kind of micro services call method, device, server and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109104491A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109815202A (en) * | 2018-12-29 | 2019-05-28 | 深圳云天励飞技术有限公司 | Log editing method and related device |
| CN110275764A (en) * | 2019-05-15 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Call timeout treatment method, apparatus and system |
| CN110971680A (en) * | 2019-11-22 | 2020-04-07 | 拉扎斯网络科技(上海)有限公司 | Communication method, apparatus, system, electronic device, and readable storage medium |
| CN111200651A (en) * | 2019-12-31 | 2020-05-26 | 优刻得科技股份有限公司 | Method, system, device and medium for timed calling of microservice |
| CN112988405A (en) * | 2019-12-02 | 2021-06-18 | 中国移动通信集团浙江有限公司 | Micro-service automatic degradation method and device and computing equipment |
| CN113254203A (en) * | 2021-05-18 | 2021-08-13 | 百果园技术(新加坡)有限公司 | Service degradation processing method and device |
| CN113630283A (en) * | 2020-05-08 | 2021-11-09 | 网联清算有限公司 | Service link testing method and system |
| CN116684365A (en) * | 2023-06-16 | 2023-09-01 | 国信证券股份有限公司 | Service request processing method, device, computer equipment and storage medium |
| CN118101773A (en) * | 2024-04-29 | 2024-05-28 | 华能信息技术有限公司 | Multi-service sharing method based on API gateway |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170091666A1 (en) * | 2015-09-30 | 2017-03-30 | Bank Of America Corporation | System framework processor for channel contacts |
| CN106850829A (en) * | 2017-02-28 | 2017-06-13 | 苏州星熙数据科技有限公司 | A kind of micro services design method based on non-blocking communication |
| CN107526624A (en) * | 2017-07-18 | 2017-12-29 | 杭州趣链科技有限公司 | A kind of intelligent contract enforcement engine based on Java Virtual Machine |
| CN108234666A (en) * | 2018-01-16 | 2018-06-29 | 云宏信息科技股份有限公司 | A kind of micro services calling system, method and computer storage media |
-
2018
- 2018-08-30 CN CN201811006347.1A patent/CN109104491A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170091666A1 (en) * | 2015-09-30 | 2017-03-30 | Bank Of America Corporation | System framework processor for channel contacts |
| CN106850829A (en) * | 2017-02-28 | 2017-06-13 | 苏州星熙数据科技有限公司 | A kind of micro services design method based on non-blocking communication |
| CN107526624A (en) * | 2017-07-18 | 2017-12-29 | 杭州趣链科技有限公司 | A kind of intelligent contract enforcement engine based on Java Virtual Machine |
| CN108234666A (en) * | 2018-01-16 | 2018-06-29 | 云宏信息科技股份有限公司 | A kind of micro services calling system, method and computer storage media |
Non-Patent Citations (1)
| Title |
|---|
| 简牧: "微服务可靠性设计", 《CSDN》 * |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109815202A (en) * | 2018-12-29 | 2019-05-28 | 深圳云天励飞技术有限公司 | Log editing method and related device |
| CN110275764A (en) * | 2019-05-15 | 2019-09-24 | 阿里巴巴集团控股有限公司 | Call timeout treatment method, apparatus and system |
| CN110971680B (en) * | 2019-11-22 | 2022-01-28 | 拉扎斯网络科技(上海)有限公司 | Communication method, device, system, electronic equipment and readable storage medium |
| CN110971680A (en) * | 2019-11-22 | 2020-04-07 | 拉扎斯网络科技(上海)有限公司 | Communication method, apparatus, system, electronic device, and readable storage medium |
| CN112988405A (en) * | 2019-12-02 | 2021-06-18 | 中国移动通信集团浙江有限公司 | Micro-service automatic degradation method and device and computing equipment |
| CN112988405B (en) * | 2019-12-02 | 2023-12-26 | 中国移动通信集团浙江有限公司 | Automatic degradation method and device for micro-service and computing equipment |
| CN111200651A (en) * | 2019-12-31 | 2020-05-26 | 优刻得科技股份有限公司 | Method, system, device and medium for timed calling of microservice |
| CN113630283A (en) * | 2020-05-08 | 2021-11-09 | 网联清算有限公司 | Service link testing method and system |
| CN113630283B (en) * | 2020-05-08 | 2022-07-05 | 网联清算有限公司 | Service link testing method and system |
| CN113254203A (en) * | 2021-05-18 | 2021-08-13 | 百果园技术(新加坡)有限公司 | Service degradation processing method and device |
| CN113254203B (en) * | 2021-05-18 | 2024-05-24 | 百果园技术(新加坡)有限公司 | Service degradation processing method and device |
| CN116684365A (en) * | 2023-06-16 | 2023-09-01 | 国信证券股份有限公司 | Service request processing method, device, computer equipment and storage medium |
| CN118101773A (en) * | 2024-04-29 | 2024-05-28 | 华能信息技术有限公司 | Multi-service sharing method based on API gateway |
| CN118101773B (en) * | 2024-04-29 | 2024-07-12 | 华能信息技术有限公司 | Multi-service sharing method based on API gateway |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109104491A (en) | A kind of micro services call method, device, server and storage medium | |
| CN109213611B (en) | Cross-process communication method, device, terminal and storage medium | |
| US9244817B2 (en) | Remote debugging in a cloud computing environment | |
| US10977062B2 (en) | System for starting virtual machine using mirror image file stored in units of a distributed block storage system mapped to units of a logical volume | |
| US7877091B2 (en) | Method and system for executing a container managed application on a processing device | |
| US20130247035A1 (en) | Techniques for managing virtual machine (vm) states | |
| CN111737022A (en) | Interface calling method, system, equipment and medium based on micro-service | |
| US10924590B1 (en) | Virtual workspace experience visualization and optimization | |
| CN111679911B (en) | Management method, device, equipment and medium of GPU card in cloud environment | |
| CN111324441A (en) | Operating environment switching method and device, computer equipment and storage medium | |
| CN109062699A (en) | A kind of resource monitoring method, device, server and storage medium | |
| CN109388475A (en) | A kind of dispositions method, device, electronic equipment and the storage medium of physics bare machine | |
| CN110933075B (en) | Service calling method and device, electronic equipment and storage medium | |
| US11249760B2 (en) | Parameter management between programs | |
| CN107181802B (en) | Intelligent hardware control method and device, server, storage medium | |
| CN106681799A (en) | Disk inserting method, device and system | |
| CN108234551B (en) | Data processing method and device | |
| CN112835632B (en) | A terminal capability calling method, device and computer storage medium | |
| CN115480911A (en) | Cluster resource allocation method, server and storage medium | |
| CN109542604A (en) | The method, apparatus, equipment and storage medium of grouting socket in thread | |
| CN113986995A (en) | Request distribution method, device, storage medium and electronic device | |
| US11893199B2 (en) | Systems and methods for viewing incompatible web pages via remote browser instances | |
| CN110120963B (en) | A data processing method, apparatus, device and machine-readable medium | |
| CN113296911B (en) | Cluster calling method, cluster calling device, electronic equipment and readable storage medium | |
| CN116541224A (en) | Performance testing method, device, electronic device and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181228 |
|
| RJ01 | Rejection of invention patent application after publication |