Movatterモバイル変換


[0]ホーム

URL:


CN115567616A - Service protocol conversion method and device - Google Patents

Service protocol conversion method and device
Download PDF

Info

Publication number
CN115567616A
CN115567616ACN202211176746.9ACN202211176746ACN115567616ACN 115567616 ACN115567616 ACN 115567616ACN 202211176746 ACN202211176746 ACN 202211176746ACN 115567616 ACN115567616 ACN 115567616A
Authority
CN
China
Prior art keywords
service interface
service
request
protocol
interface
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
CN202211176746.9A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China LtdfiledCriticalBank of China Ltd
Priority to CN202211176746.9ApriorityCriticalpatent/CN115567616A/en
Publication of CN115567616ApublicationCriticalpatent/CN115567616A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a service protocol conversion method and device, and relates to the technical field of big data. Wherein the method comprises the following steps: receiving a first request of a first service interface for calling a second service interface; the first service interface is based on a first protocol, and the second service interface is based on a second protocol; according to the first request, searching conversion information corresponding to the first service interface and the second service interface in the configuration file; converting first request data carried in the first request into second request data conforming to a second service interface request parameter format according to the conversion information; based on the second request data, calling a second service interface to a registry of the second service interface; receiving a first return parameter fed back by the second service interface; converting the first return parameter into a second return parameter according to the conversion information; and feeding back the second return parameter to the first service interface. The invention can improve the flexibility of the distributed system using various communication protocols.

Description

Translated fromChinese
服务协议转换方法及装置Service protocol conversion method and device

技术领域technical field

本发明涉及大数据技术领域,尤其涉及服务协议转换方法及装置。The invention relates to the field of big data technology, in particular to a service protocol conversion method and device.

背景技术Background technique

本部分旨在为权利要求书中陈述的本发明实施例提供背景或上下文。此处的描述不因为包括在本部分中就承认是现有技术。This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section.

分布式系统(distributed system)是建立在网络之上的软件系统,包括多个系统,每个系统可能提供一个或多个服务。对于一些规模较大的分布式系统,可能使用多种通讯协议进行通信,也即,不同业务系统使用的通讯协议可能是不同的。为了保证业务之间的连通性,使用不同通讯协议的系统之间需要对通讯方式进行转换,以保证系统之间的互联互通。相关技术中,通常采用硬编码的方式,也即,直接在系统中嵌入协议转换的代码,这种协议转换方式代码侵入性强,当服务发生变化,例如,在服务接口发生变更时,需重新编码,操作繁杂,不够灵活。A distributed system is a software system built on a network, including multiple systems, each of which may provide one or more services. For some large-scale distributed systems, multiple communication protocols may be used for communication, that is, the communication protocols used by different business systems may be different. In order to ensure the connectivity between services, the communication methods need to be converted between systems using different communication protocols to ensure the interconnection and intercommunication between the systems. In related technologies, hard coding is usually used, that is, the protocol conversion code is directly embedded in the system. The code of this protocol conversion method is highly intrusive. When the service changes, for example, when the service interface changes, it needs to be restarted Coding, complicated operation, not flexible enough.

发明内容Contents of the invention

本发明实施例提供一种服务协议转换方法,用以提高使用多种通讯协议的分布式系统的灵活性,该方法包括:An embodiment of the present invention provides a service protocol conversion method to improve the flexibility of a distributed system using multiple communication protocols. The method includes:

接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;receiving a first request from a first service interface to call a second service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol;

根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;Searching for conversion information corresponding to the first service interface and the second service interface in the configuration file according to the first request;

根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;Converting the first request data carried in the first request into second request data conforming to the second service interface request parameter format according to the conversion information;

基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;Invoking the second service interface to the registration center of the second service interface based on the second request data;

接收第二服务接口反馈的第一返回参数;receiving the first return parameter fed back by the second service interface;

根据转换信息将第一返回参数转换为第二返回参数;converting the first return parameter into a second return parameter according to the conversion information;

将第二返回参数反馈至第一服务接口。Feedback the second return parameter to the first service interface.

可选地,第一协议为REST协议,第二协议为Dubbo协议。Optionally, the first protocol is the REST protocol, and the second protocol is the Dubbo protocol.

可选地,在接收第一服务接口调用第二服务接口的第一请求之前,该方法还可以包括:Optionally, before receiving the first request that the first service interface invokes the second service interface, the method may further include:

将第一服务接口和第二服务接口对应的业务服务以Dubbo服务生产者的角色注册到注册中心;Register the business services corresponding to the first service interface and the second service interface to the registration center as a Dubbo service producer;

将第二服务接口对应的业务服务以Dubbo服务消费者的角色注册到注册中心;Register the business service corresponding to the second service interface with the registration center as a Dubbo service consumer;

在配置文件中配置转换信息。Configure the conversion information in the configuration file.

可选地,在接收第一服务接口调用第二服务接口的第一请求之后,在向第二服务接口的注册中心调用第二服务接口之前,该方法还可以包括:Optionally, after receiving the first request that the first service interface invokes the second service interface, before invoking the second service interface to the registration center of the second service interface, the method may further include:

统计调用第二服务接口的请求流量;Counting the request traffic for calling the second service interface;

确定请求流量小于预设流量阈值。It is determined that the requested traffic is less than a preset traffic threshold.

本发明实施例还提供一种服务协议转换装置,用以提高使用多种通讯协议的分布式系统的灵活性,该装置包括:An embodiment of the present invention also provides a service protocol conversion device to improve the flexibility of a distributed system using multiple communication protocols, the device comprising:

第一接收单元,用于接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;The first receiving unit is configured to receive a first request from the first service interface to call the second service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol;

查找单元,用于根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;A search unit, configured to search the configuration file for conversion information corresponding to the first service interface and the second service interface according to the first request;

第一转换单元,用于根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;The first conversion unit is configured to convert the first request data carried in the first request into second request data conforming to the second service interface request parameter format according to the conversion information;

调用单元,用于基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;a calling unit, configured to call the second service interface to the registration center of the second service interface based on the second request data;

第二接收单元,用于接收第二服务接口反馈的第一返回参数;The second receiving unit is configured to receive the first return parameter fed back by the second service interface;

第二转换单元,用于根据转换信息将第一返回参数转换为第二返回参数;a second conversion unit, configured to convert the first return parameter into a second return parameter according to the conversion information;

反馈单元,用于将第二返回参数反馈至第一服务接口。A feedback unit, configured to feed back the second return parameter to the first service interface.

可选地,第一协议为REST协议,第二协议为DUBBO协议。Optionally, the first protocol is the REST protocol, and the second protocol is the DUBBO protocol.

可选地,该装置还可以包括:Optionally, the device may also include:

第一注册单元,用于在接收第一服务接口调用第二服务接口的第一请求之前,将第一服务接口和第二服务接口对应的业务服务以Dubbo服务生产者的角色注册到注册中心;The first registration unit is used to register the business service corresponding to the first service interface and the second service interface to the registration center in the role of Dubbo service producer before receiving the first request that the first service interface invokes the second service interface;

第二注册单元,用于将第二服务接口对应的业务服务以Dubbo服务消费者的角色注册到注册中心;The second registration unit is used to register the business service corresponding to the second service interface to the registration center in the role of Dubbo service consumer;

配置单元,用于在配置文件中配置转换信息。Hive to configure conversion information in configuration files.

可选地,该装置还可以包括:Optionally, the device may also include:

统计单元,用于在接收第一服务接口调用第二服务接口的第一请求之后,在向第二服务接口的注册中心调用第二服务接口之前,统计调用第二服务接口的请求流量;A statistics unit, configured to count the request traffic for calling the second service interface after receiving the first request for calling the second service interface from the first service interface and before calling the second service interface to the registration center of the second service interface;

确定单元,用于确定请求流量小于预设流量阈值。A determining unit, configured to determine that the requested traffic is less than a preset traffic threshold.

本发明实施例还提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述服务协议转换方法。An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above service protocol conversion method when executing the computer program.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述服务协议转换方法。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above service protocol conversion method is implemented.

本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现上述服务协议转换方法。An embodiment of the present invention also provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the above service protocol conversion method is implemented.

本发明实施例中,通过接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;接收第二服务接口反馈的第一返回参数;根据转换信息将第一返回参数转换为第二返回参数;将第二返回参数反馈至第一服务接口,与现有技术中通过硬编码实现通讯协议转换的技术方案相比,使用配置文件配置好不同服务接口的转换信息,对调用方的接口数据进行转换,进而通过服务的注册中心使用转换后的接口数据调用被调用方的服务,可以实现服务协议转换与系统之间的解耦,提高使用多种通讯协议的分布式系统的灵活性,在服务接口发生变化时,可以对外部的配置文件重新配置,无需在系统中对服务协议转换重新编码。In the embodiment of the present invention, the first request for calling the second service interface is received by the first service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol; according to the first request, in the configuration file Find the conversion information corresponding to the first service interface and the second service interface; according to the conversion information, convert the first request data carried in the first request into the second request data that conforms to the second service interface request parameter format; Two request data, call the second service interface to the registration center of the second service interface; receive the first return parameter fed back by the second service interface; convert the first return parameter into the second return parameter according to the conversion information; convert the second return parameter Feedback to the first service interface. Compared with the technical solution of communication protocol conversion through hard coding in the prior art, configuration files are used to configure the conversion information of different service interfaces, and the interface data of the caller is converted, and then through the service The registration center uses the converted interface data to call the service of the called party, which can realize the decoupling between the service protocol conversion and the system, and improve the flexibility of the distributed system using multiple communication protocols. When the service interface changes, it can External configuration files are reconfigured without recoding service protocol translations in the system.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:

图1为本发明实施例中提供的一种服务协议转换方法的流程示意图一;FIG. 1 is a first schematic flow diagram of a service protocol conversion method provided in an embodiment of the present invention;

图2为本发明实施例中提供的一种服务协议转换方法的应用场景的示意图;FIG. 2 is a schematic diagram of an application scenario of a service protocol conversion method provided in an embodiment of the present invention;

图3为本发明实施例中提供的一种服务协议转换装置的结构示意图一;FIG. 3 is a first structural diagram of a service protocol conversion device provided in an embodiment of the present invention;

图4为本发明实施例中提供的一种服务协议转换方法的流程示意图四;FIG. 4 is a fourth schematic flow diagram of a service protocol conversion method provided in an embodiment of the present invention;

图5为本发明实施例中提供的一种服务协议转换装置的结构示意图二。FIG. 5 is a second structural diagram of a service protocol conversion device provided in an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

下面对本发明实施例中涉及的部分名词术语进行说明如下:Some terms and terms involved in the embodiments of the present invention are described below:

REST协议:无状态传输(REpresentational State Transfer)协议。REST protocol: REpresentational State Transfer protocol.

Dubbo协议:是一种开源分布式RPC(Remote Procedure Call Protocol,远程过程调用协议)服务框架,在该框架中,暴露服务方称为“服务提供者”,调用远程服务方称为“服务消费者”,服务注册与发现的中心目录服务称为“服务注册中心”。Dubbo Protocol: It is an open source distributed RPC (Remote Procedure Call Protocol, remote procedure call protocol) service framework. In this framework, the exposed service party is called "service provider", and the remote service party is called "service consumer". ", the central directory service for service registration and discovery is called the "Service Registry".

Zookeeper:是一种开放源码的分布式应用程序协调服务,为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、域名服务、分布式同步、组服务等。在Zookeeper一个可选的应用场景中,可以封装好复杂的关键服务,将简单易用的接口和功能稳定的系统提供给用户。Zookeeper: It is an open source distributed application coordination service, software that provides consistent services for distributed applications. The functions provided include: configuration maintenance, domain name service, distributed synchronization, group service, etc. In an optional application scenario of Zookeeper, it can encapsulate complex key services and provide users with an easy-to-use interface and a system with stable functions.

JSON:JS对象简谱(JavaScript Object Notation)是一种轻量级的数据交换格式,可以在多种语言之间进行数据交换。JSON: JS Object Notation (JavaScript Object Notation) is a lightweight data exchange format that can exchange data between multiple languages.

本发明实施例中提供了一种服务协议转换方法,图1示出了本发明一个实施例提供的服务协议转换方法的流程示意图一。如图1所示,该方法可以包括如下步骤:An embodiment of the present invention provides a service protocol conversion method, and FIG. 1 shows a first schematic flowchart of the service protocol conversion method provided by an embodiment of the present invention. As shown in Figure 1, the method may include the following steps:

步骤101,接收第一服务接口调用第二服务接口的第一请求。Step 101, receiving a first request from a first service interface to call a second service interface.

第一服务接口基于第一协议,第二服务接口基于第二协议。第一协议和第二协议是指服务接口通讯所使用的通讯协议。第一协议和第二协议是不同的协议。可选地,第一协议为REST协议,第二协议为DUBBO协议,相应地,第一服务接口为REST API(ApplicationProgram Interface,接口),第二服务接口为Dubbo API。第一服务接口是第一服务的接口,第二服务接口是第二服务的接口,在本发明实施例中,第一服务是调用方,第二服务是被调用方。The first service interface is based on a first protocol and the second service interface is based on a second protocol. The first protocol and the second protocol refer to communication protocols used for service interface communication. The first protocol and the second protocol are different protocols. Optionally, the first protocol is a REST protocol, and the second protocol is a DUBBO protocol. Correspondingly, the first service interface is a REST API (Application Program Interface, interface), and the second service interface is a Dubbo API. The first service interface is the interface of the first service, and the second service interface is the interface of the second service. In the embodiment of the present invention, the first service is the caller, and the second service is the callee.

本发明实施例提供的服务协议转换方法可以由本发明实施例提供的服务协议转换装置实施,服务协议转换装置的具体实施方式将在后面进行说明。可选地,服务协议转换装置可以部署于网络中,在一个示例中,服务协议转换装置可以是以服务消费者的身份注册到服务注册中心(如ZooKeeper服务注册中心),相应地,第一服务和第二服务可以是以服务生产者的身份注册到服务注册中心。第一服务在需要调用第二服务的时候,可以向本发明实施例提供的服务协议转换装置发出第一请求,由本发明实施例提供的服务协议转换装置来实施本发明实施例提供的服务协议转换方法的步骤。The service protocol conversion method provided by the embodiment of the present invention can be implemented by the service protocol conversion device provided by the embodiment of the present invention, and the specific implementation of the service protocol conversion device will be described later. Optionally, the service protocol conversion device may be deployed in the network. In one example, the service protocol conversion device may register with a service registry (such as a ZooKeeper service registry) as a service consumer. Correspondingly, the first service And the second service can be registered with the service registry as a service producer. When the first service needs to call the second service, it can send a first request to the service protocol conversion device provided by the embodiment of the present invention, and the service protocol conversion device provided by the embodiment of the present invention will implement the service protocol conversion provided by the embodiment of the present invention method steps.

步骤102,根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息。Step 102, according to the first request, look up conversion information corresponding to the first service interface and the second service interface in the configuration file.

第一请求中携带有第一服务请求第二服务进行处理的参数。可以携带有第一服务和第二服务的标识。该标识是能够在配置文件中唯一标识服务的标识,可以是网络地址标识,例如统一资源定位标识(Uniform Resource Locator,URL),或者,也可以是服务接口中的方法名称。配置文件可以是XML文件,配置文件是预先配置并存储的文件,配置文件中存储有对应于不同服务的转换信息。转换信息是用于转换(通讯)协议的信息。转换信息可以包括:服务接口名称、每个服务接口中所有的方法名称、每个方法的请求参数类型和返回参数类型。The first request carries parameters that the first service requests the second service to process. It may carry the identifiers of the first service and the second service. The identifier is an identifier capable of uniquely identifying the service in the configuration file, and may be a network address identifier, such as a uniform resource location identifier (Uniform Resource Locator, URL), or may also be a method name in a service interface. The configuration file may be an XML file, and the configuration file is a pre-configured and stored file, and conversion information corresponding to different services is stored in the configuration file. The conversion information is information for converting (communication) protocols. The conversion information may include: service interface name, all method names in each service interface, request parameter type and return parameter type of each method.

例如,根据第一请求中的第一服务请求调用的第二服务的URL路径,在XML配置文件中查找匹配,找到对应的Dubbo接口和调用方法名称,找到对应的转换信息。For example, according to the URL path of the second service invoked by the first service request in the first request, search for a match in the XML configuration file, find the corresponding Dubbo interface and calling method name, and find the corresponding conversion information.

步骤103,根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据。Step 103: Convert the first request data carried in the first request into second request data conforming to the format of the second service interface request parameter according to the conversion information.

根据查找到的转换信息,可以将第一服务发出的基于第一协议的请求参数格式转换为基于第二协议的请求参数格式,即将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据。According to the found conversion information, the request parameter format based on the first protocol issued by the first service can be converted to the request parameter format based on the second protocol, that is, the first request data carried in the first request can be converted to conform to the second service The second request data in the interface request parameter format.

步骤104,基于第二请求数据,向第二服务接口的注册中心调用第二服务接口。Step 104, based on the second request data, call the second service interface to the registration center of the second service interface.

得到第二请求数据之后,触发第二服务的远程调用,获取第二服务接口返回的参数。After obtaining the second request data, trigger the remote call of the second service to obtain the parameters returned by the second service interface.

在接收第一服务接口调用第二服务接口的第一请求之后,在向第二服务接口的注册中心调用第二服务接口之前,还可以统计调用第二服务接口的请求流量,如果确定请求流量小于预设流量阈值,则向第二服务接口的注册中心调用第二服务接口,否则,如果第二服务接口的请求流量高于预设流量阈值,为了避免第二服务流量过载,中止对第二服务接口的调用,待第二服务接口的请求流量恢复到低于预设流量阈值之后再进行调用。After receiving the first request for invoking the second service interface from the first service interface, before invoking the second service interface to the registration center of the second service interface, the request flow for invoking the second service interface can also be counted, if it is determined that the request flow is less than If the preset traffic threshold is reached, the second service interface will be invoked to the registration center of the second service interface; otherwise, if the request traffic of the second service interface is higher than the preset traffic threshold, in order to avoid the overload of the second service traffic, the second service will be suspended The invocation of the interface is performed after the request traffic of the second service interface returns to be lower than the preset traffic threshold.

步骤105,接收第二服务接口反馈的第一返回参数。Step 105, receiving the first return parameter fed back by the second service interface.

第二服务用于基于接收到的第二请求数据反馈第一返回参数。The second service is used to feed back the first return parameter based on the received second request data.

步骤106,根据转换信息将第一返回参数转换为第二返回参数。Step 106, convert the first return parameter into a second return parameter according to the conversion information.

基于转换信息,可以将符合第二协议的第一返回参数转换为符合第一协议的第二返回参数。Based on the conversion information, the first return parameter conforming to the second protocol may be converted into a second return parameter conforming to the first protocol.

步骤107,将第二返回参数反馈至第一服务接口。Step 107, feeding back the second return parameter to the first service interface.

可选地,在接收第一服务接口调用第二服务接口的第一请求之前,还可以将第一服务接口和第二服务接口对应的业务服务以Dubbo服务生产者的角色注册到注册中心;将第二服务接口对应的业务服务以Dubbo服务消费者的角色注册到注册中心;并在配置文件中配置第一协议和第二协议之间转换的转换信息。Optionally, before receiving the first request that the first service interface invokes the second service interface, the business service corresponding to the first service interface and the second service interface may also be registered with the registration center as a Dubbo service producer; The business service corresponding to the second service interface is registered to the registration center as a Dubbo service consumer; and the conversion information for conversion between the first protocol and the second protocol is configured in the configuration file.

本发明实施例中,通过接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;接收第二服务接口反馈的第一返回参数;根据转换信息将第一返回参数转换为第二返回参数;将第二返回参数反馈至第一服务接口,与现有技术中通过硬编码实现通讯协议转换的技术方案相比,使用配置文件配置好不同服务接口的转换信息,对调用方的接口数据进行转换,进而通过服务的注册中心使用转换后的接口数据调用被调用方的服务,可以实现服务协议转换与系统之间的解耦,提高使用多种通讯协议的分布式系统的灵活性,在服务接口发生变化时,可以对外部的配置文件重新配置,无需在系统中对服务协议转换重新编码。In the embodiment of the present invention, the first request for calling the second service interface is received by the first service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol; according to the first request, in the configuration file Find the conversion information corresponding to the first service interface and the second service interface; according to the conversion information, convert the first request data carried in the first request into the second request data that conforms to the second service interface request parameter format; Two request data, call the second service interface to the registration center of the second service interface; receive the first return parameter fed back by the second service interface; convert the first return parameter into the second return parameter according to the conversion information; convert the second return parameter Feedback to the first service interface. Compared with the technical solution of communication protocol conversion through hard coding in the prior art, configuration files are used to configure the conversion information of different service interfaces, and the interface data of the caller is converted, and then through the service The registration center uses the converted interface data to call the service of the called party, which can realize the decoupling between the service protocol conversion and the system, and improve the flexibility of the distributed system using multiple communication protocols. When the service interface changes, it can External configuration files are reconfigured without recoding service protocol translations in the system.

下面对本发明实施例提供的一种服务协议调用方法在一种可选的应用场景中的具体实施方式进行举例说明:The following is an example of a specific implementation of a service protocol invocation method provided in an embodiment of the present invention in an optional application scenario:

在准备阶段或者开发阶段,将第一服务和第二服务以服务生产者的方式对外发布,第一服务可以是REST服务,第二服务可以是Dubbo服务,将第二服务以Dubbo服务生产者的身份注册到Dubbo服务注册中心(如ZooKeeper),将REST服务以服务消费者的身份注册到Dubbo服务注册中心,如图2所示。In the preparation stage or development stage, the first service and the second service are published as service producers. The first service can be a REST service, the second service can be a Dubbo service, and the second service can be used as a Dubbo service producer. The identity is registered to the Dubbo service registration center (such as ZooKeeper), and the REST service is registered to the Dubbo service registration center as a service consumer, as shown in Figure 2.

在服务协议转换装置中使用XML文件进行配置,配置如下转换信息:哪些Dubbo服务需要以REST API形式对外提供服务,对应服务对外发布的URL路径是多少;所有需要进行REST API转换的Dubbo服务相关信息,包括:接口名称、每个接口中所有的方法名称、每个方法的请求参数类型和返回参数类型,是否需要限流(限制流量)以及限流并发数量等信息。Use an XML file to configure the service protocol conversion device, and configure the following conversion information: which Dubbo services need to provide services in the form of REST API, and what is the URL path for the corresponding service to be released to the outside world; all Dubbo service-related information that needs to be converted to REST API , including: interface name, all method names in each interface, request parameter type and return parameter type of each method, whether current limiting (flow limiting) is required, and the concurrent number of current limiting and other information.

如图3所示,为本发明实施例中所述的服务转换装置的一个可选的实施方式,具体包括如下模块:As shown in Figure 3, it is an optional implementation of the service conversion device described in the embodiment of the present invention, which specifically includes the following modules:

1、配置信息维护模块。负责配置哪些Dubbo服务需要以REST API形式对外提供服务,对应服务对外发布的URL路径是多少,维护Dubbo服务与对应的REST API的映射关系,是否需要限流,限流并发流量等信息。配置信息维护模块可以方便随时对配置信息进行维护。1. Configuration information maintenance module. Responsible for configuring which Dubbo services need to provide external services in the form of REST API, what is the URL path for the corresponding service to be published externally, maintaining the mapping relationship between Dubbo services and the corresponding REST API, whether current limiting is required, current limiting concurrent traffic and other information. The configuration information maintenance module can conveniently maintain the configuration information at any time.

2、流量控制模块。根据配置信息维护模块中的限流配置信息执行流量控制操作,如果请求过载,则执行限流操作。流量控制模块可以在对Dubbo服务的请求过载时执行限流操作,将流量控制在接入层,避免过载流量继续向后传递,影响系统稳定。2. Flow control module. Perform flow control operations according to the current limiting configuration information in the configuration information maintenance module, and perform current limiting operations if requests are overloaded. The flow control module can perform flow-limiting operation when the request for Dubbo service is overloaded, and control the flow at the access layer, so as to prevent the overloaded flow from continuing to be transmitted backwards and affecting system stability.

3、请求映射模块。根据配置信息维护模块中的Dubbo服务与对应REST API的映射关系,将REST API对外发布的URL路径映射到对应的Dubbo服务上,得到Dubbo服务名称和调用方法名称。3. Request mapping module. According to the mapping relationship between the Dubbo service and the corresponding REST API in the configuration information maintenance module, the URL path published by the REST API is mapped to the corresponding Dubbo service, and the Dubbo service name and calling method name are obtained.

4、参数类型查找模块。根据请求映射模块查询得到的Dubbo服务名称和调用方法名称,找到对应的请求参数类型和返回参数类型。4. Parameter type search module. Find the corresponding request parameter type and return parameter type according to the Dubbo service name and calling method name queried by the request mapping module.

5、参数序列化/反序列化模块。将HTTP请求数据(JSON格式)反序列化为参数类型查找模块找到的请求参数类型,将返回数据序列化为HTTP响应数据(JSON格式)。5. Parameter serialization/deserialization module. Deserialize the HTTP request data (JSON format) into the request parameter type found by the parameter type lookup module, and serialize the returned data into HTTP response data (JSON format).

6、Dubbo远程调用触发模块。以Dubbo接口名称、方法名称、调用参数作为条件,触发Dubbo的远程调用,得到返回参数。6. Dubbo remotely invokes the trigger module. With the Dubbo interface name, method name, and call parameters as the conditions, trigger the remote call of Dubbo and get the return parameters.

7、请求处理模块。负责整体调度,接收用户发起的REST API请求,调用流量控制模块进行流量控制,调度请求映射模块得到Dubbo服务名称和调用方法名称,调度参数类型查找模块找到对应的请求参数类型和返回参数类型,调度参数序列化/反序列化模块将HTTP请求数据(JSON格式)反序列化为参数类型查找模块找到的请求参数类型,调度Dubbo远程调用触发模块触发Dubbo远程调用,调度参数序列化/反序列化模块将远程调用返回数据序列化为JSON格式的数据并返回给调用方。7. Request processing module. Responsible for overall scheduling, receiving the REST API request initiated by the user, calling the flow control module to control the flow, the scheduling request mapping module obtains the Dubbo service name and calling method name, the scheduling parameter type search module finds the corresponding request parameter type and return parameter type, and dispatches The parameter serialization/deserialization module deserializes the HTTP request data (JSON format) into the request parameter type found by the parameter type search module, schedules the Dubbo remote call trigger module to trigger the Dubbo remote call, and schedules the parameter serialization/deserialization module Serialize the data returned by the remote call into JSON format data and return it to the caller.

在配置好服务协议转换装置,进入使用的阶段,流程示意图如图4所示,如果用户向服务协议转换装置发起一个REST API请求,服务协议转换装置在接收到用户请求后,根据HTTP请求中的URL路径,判断是否已经流量过载。根据HTTP请求中的URL路径,在XML配置文件进行查找匹配,如果找到对应的Dubbo接口和调用方法名称,则进入下一步。根据Dubbo接口和调用方法名称,找到对应的请求参数类型和返回参数类型。读取HTTP请求数据(JSON格式),将其转换为符合Dubbo接口的请求参数类型。接下来,服务协议转换装置以Dubbo接口名称、方法名称、调用参数作为条件,触发Dubbo的远程调用,得到返回参数,并将返回参数序列化为JSON格式,返回调用方。如果以上任意步骤在执行中出现异常,则返回提示错误的消息。After configuring the service protocol conversion device and entering the stage of use, the flow diagram is shown in Figure 4. If the user initiates a REST API request to the service protocol conversion device, the service protocol conversion device, after receiving the user request, will URL path, to determine whether the traffic has been overloaded. According to the URL path in the HTTP request, search and match in the XML configuration file. If the corresponding Dubbo interface and calling method name are found, go to the next step. According to the Dubbo interface and calling method name, find the corresponding request parameter type and return parameter type. Read HTTP request data (JSON format) and convert it to a request parameter type that conforms to the Dubbo interface. Next, the service protocol conversion device uses the Dubbo interface name, method name, and call parameters as conditions to trigger Dubbo's remote call, obtain the return parameters, serialize the return parameters into JSON format, and return to the caller. If an exception occurs during the execution of any of the above steps, an error message will be returned.

上述可选的实施方式可以实现使用DUBBO协议的系统与REST API之间的服务协议的转换,在对原有程序无任何侵入性的基础上,通过简单的配置,即可将DUBBO协议发布为REST API,从而直接对外使用REST API提供服务,通用性更强,开发周期更短,也可以有效避免重复编码等问题;另一方面,对原有业务系统无侵入性,无需对原有系统进行任何功能性改造,对传统系统友好度极高。并且,通过流量限流功能可以将过载流量控制在接入层,避免继续向后传导,减少了过载流量对整个业务系统的威胁。The above optional implementation can realize the conversion of the service agreement between the system using the DUBBO protocol and the REST API. On the basis of no intrusion to the original program, the DUBBO protocol can be published as REST through simple configuration API, so as to directly use the REST API to provide services externally, with stronger versatility, shorter development cycle, and can effectively avoid problems such as repeated coding; Functional transformation, highly friendly to traditional systems. Moreover, the overload traffic can be controlled at the access layer through the traffic limiting function, avoiding further backward transmission, and reducing the threat of overload traffic to the entire business system.

本发明实施例中还提供了一种服务协议转换装置,如下面的实施例所述。由于该装置解决的问题及原理与本发明实施例提供的服务协议转换方法相似,因此该装置的实施可以参见服务协议转换方法的实施,重复之处不再赘述。The embodiment of the present invention also provides a service protocol conversion device, as described in the following embodiments. Since the problem and principle solved by the device are similar to the service protocol conversion method provided by the embodiment of the present invention, the implementation of the device can refer to the implementation of the service protocol conversion method, and the repetition will not be repeated.

如图5所示,本发明实施例提供的一种服务协议转换装置可以包括第一接收单元10,查找单元20,第一转换单元30,调用单元40,第二接收单元50,第二转换单元60和反馈单元70。As shown in Figure 5, a service protocol conversion device provided by an embodiment of the present invention may include afirst receiving unit 10, asearch unit 20, a first convertingunit 30, a callingunit 40, asecond receiving unit 50, and a second convertingunit 60 andfeedback unit 70.

第一接收单元10用于接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;Thefirst receiving unit 10 is configured to receive a first request from the first service interface to call the second service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol;

查找单元20用于根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;Thesearch unit 20 is configured to search the configuration file for conversion information corresponding to the first service interface and the second service interface according to the first request;

第一转换单元30用于根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;Thefirst conversion unit 30 is configured to convert the first request data carried in the first request into second request data conforming to the second service interface request parameter format according to the conversion information;

调用单元40用于基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;The callingunit 40 is configured to call the second service interface to the registration center of the second service interface based on the second request data;

第二接收单元50用于接收第二服务接口反馈的第一返回参数;Thesecond receiving unit 50 is configured to receive the first return parameter fed back by the second service interface;

第二转换单元60用于根据转换信息将第一返回参数转换为第二返回参数;Thesecond conversion unit 60 is configured to convert the first return parameter into a second return parameter according to the conversion information;

反馈单元70用于将第二返回参数反馈至第一服务接口。Thefeedback unit 70 is configured to feed back the second return parameter to the first service interface.

可选地,第一协议为REST协议,第二协议为DUBBO协议。Optionally, the first protocol is the REST protocol, and the second protocol is the DUBBO protocol.

可选地,该装置还可以包括:Optionally, the device may also include:

第一注册单元,用于在接收第一服务接口调用第二服务接口的第一请求之前,将第一服务接口和第二服务接口对应的业务服务以Dubbo服务生产者的角色注册到注册中心;The first registration unit is used to register the business service corresponding to the first service interface and the second service interface to the registration center in the role of Dubbo service producer before receiving the first request that the first service interface invokes the second service interface;

第二注册单元,用于将第二服务接口对应的业务服务以Dubbo服务消费者的角色注册到注册中心;The second registration unit is used to register the business service corresponding to the second service interface to the registration center in the role of Dubbo service consumer;

配置单元,用于在配置文件中配置转换信息。Hive to configure conversion information in configuration files.

可选地,该装置还可以包括:Optionally, the device may also include:

统计单元,用于在接收第一服务接口调用第二服务接口的第一请求之后,在向第二服务接口的注册中心调用第二服务接口之前,统计调用第二服务接口的请求流量;A statistics unit, configured to count the request traffic for calling the second service interface after receiving the first request for calling the second service interface from the first service interface and before calling the second service interface to the registration center of the second service interface;

确定单元,用于确定请求流量小于预设流量阈值。A determining unit, configured to determine that the requested traffic is less than a preset traffic threshold.

本发明实施例中,通过接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;接收第二服务接口反馈的第一返回参数;根据转换信息将第一返回参数转换为第二返回参数;将第二返回参数反馈至第一服务接口,与现有技术中通过硬编码实现通讯协议转换的技术方案相比,使用配置文件配置好不同服务接口的转换信息,对调用方的接口数据进行转换,进而通过服务的注册中心使用转换后的接口数据调用被调用方的服务,可以实现服务协议转换与系统之间的解耦,提高使用多种通讯协议的分布式系统的灵活性,在服务接口发生变化时,可以对外部的配置文件重新配置,无需在系统中对服务协议转换重新编码。In the embodiment of the present invention, the first request for calling the second service interface is received by the first service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol; according to the first request, in the configuration file Find the conversion information corresponding to the first service interface and the second service interface; according to the conversion information, convert the first request data carried in the first request into the second request data that conforms to the second service interface request parameter format; Two request data, call the second service interface to the registration center of the second service interface; receive the first return parameter fed back by the second service interface; convert the first return parameter into the second return parameter according to the conversion information; convert the second return parameter Feedback to the first service interface. Compared with the technical solution of communication protocol conversion through hard coding in the prior art, configuration files are used to configure the conversion information of different service interfaces, and the interface data of the caller is converted, and then through the service The registration center uses the converted interface data to call the service of the called party, which can realize the decoupling between the service protocol conversion and the system, and improve the flexibility of the distributed system using multiple communication protocols. When the service interface changes, it can External configuration files are reconfigured without recoding service protocol translations in the system.

需要说明的是,图5所示的服务协议转换装置与图3所示的服务协议转换装置虽然结构框架不同,但是其能够实现的功能是相同的。It should be noted that although the service protocol conversion device shown in FIG. 5 and the service protocol conversion device shown in FIG. 3 have different structural frameworks, the functions they can realize are the same.

本发明实施例还提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述服务协议转换方法。An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above service protocol conversion method when executing the computer program.

本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述服务协议转换方法。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the above service protocol conversion method is implemented.

本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现上述服务协议转换方法。An embodiment of the present invention also provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the above service protocol conversion method is implemented.

本发明实施例中,通过接收第一服务接口调用第二服务接口的第一请求;其中,第一服务接口基于第一协议,第二服务接口基于第二协议;根据第一请求,在配置文件中查找与第一服务接口和第二服务接口对应的转换信息;根据转换信息,将第一请求中携带的第一请求数据转换为符合第二服务接口请求参数格式的第二请求数据;基于第二请求数据,向第二服务接口的注册中心调用第二服务接口;接收第二服务接口反馈的第一返回参数;根据转换信息将第一返回参数转换为第二返回参数;将第二返回参数反馈至第一服务接口,与现有技术中通过硬编码实现通讯协议转换的技术方案相比,使用配置文件配置好不同服务接口的转换信息,对调用方的接口数据进行转换,进而通过服务的注册中心使用转换后的接口数据调用被调用方的服务,可以实现服务协议转换与系统之间的解耦,提高使用多种通讯协议的分布式系统的灵活性,在服务接口发生变化时,可以对外部的配置文件重新配置,无需在系统中对服务协议转换重新编码。In the embodiment of the present invention, the first request for calling the second service interface is received by the first service interface; wherein, the first service interface is based on the first protocol, and the second service interface is based on the second protocol; according to the first request, in the configuration file Find the conversion information corresponding to the first service interface and the second service interface; according to the conversion information, convert the first request data carried in the first request into the second request data that conforms to the second service interface request parameter format; based on the first request Two request data, call the second service interface to the registration center of the second service interface; receive the first return parameter fed back by the second service interface; convert the first return parameter into the second return parameter according to the conversion information; convert the second return parameter Feedback to the first service interface. Compared with the technical solution of communication protocol conversion through hard coding in the prior art, configuration files are used to configure the conversion information of different service interfaces, and the interface data of the caller is converted, and then through the service The registration center uses the converted interface data to call the service of the called party, which can realize the decoupling between the service protocol conversion and the system, and improve the flexibility of the distributed system using multiple communication protocols. When the service interface changes, it can External configuration files are reconfigured without recoding service protocol translations in the system.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely 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, CD-ROM, 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.

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

以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (11)

CN202211176746.9A2022-09-262022-09-26Service protocol conversion method and devicePendingCN115567616A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211176746.9ACN115567616A (en)2022-09-262022-09-26Service protocol conversion method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211176746.9ACN115567616A (en)2022-09-262022-09-26Service protocol conversion method and device

Publications (1)

Publication NumberPublication Date
CN115567616Atrue CN115567616A (en)2023-01-03

Family

ID=84743283

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211176746.9APendingCN115567616A (en)2022-09-262022-09-26Service protocol conversion method and device

Country Status (1)

CountryLink
CN (1)CN115567616A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116233187A (en)*2023-02-272023-06-06河南合众伟奇云智科技有限公司Message service method and message server

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020120685A1 (en)*1999-06-012002-08-29Alok SrivastavaSystem for dynamically invoking remote network services using service descriptions stored in a service registry
CN102262560A (en)*2010-05-272011-11-30阿里巴巴集团控股有限公司Calling method, device and system for remote service
CN113726869A (en)*2021-08-262021-11-30阿里巴巴(中国)有限公司Communication method, gateway and electronic equipment
CN114327959A (en)*2022-01-062022-04-12中国银行股份有限公司Method and device for converting Socket protocol into Dubbo protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20020120685A1 (en)*1999-06-012002-08-29Alok SrivastavaSystem for dynamically invoking remote network services using service descriptions stored in a service registry
CN102262560A (en)*2010-05-272011-11-30阿里巴巴集团控股有限公司Calling method, device and system for remote service
CN113726869A (en)*2021-08-262021-11-30阿里巴巴(中国)有限公司Communication method, gateway and electronic equipment
CN114327959A (en)*2022-01-062022-04-12中国银行股份有限公司Method and device for converting Socket protocol into Dubbo protocol

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116233187A (en)*2023-02-272023-06-06河南合众伟奇云智科技有限公司Message service method and message server

Similar Documents

PublicationPublication DateTitle
CN109246251B (en)Micro-service calling method, device, system, equipment and readable storage medium
CN106850788B (en) Integration framework and integration method for multi-source heterogeneous geographic information resources
JP7656034B2 (en) Microservice-based service mesh system and service-oriented architecture management method
CN111212085B (en) Method for synchronous calling of IoT platform, IoT system and network equipment
CN103095479A (en)Method and device of business configuration
CN109815025B (en)Service model calling method, device and storage medium
CN108984316A (en)Method and device for distributed data processing, electronic equipment and computer storage medium
WO2011130940A1 (en)Multi-service integration processing method and service integration platform
CN113826424B (en)Entity for providing external services to a network
CN101764843A (en)Processing method and system for remote process call, client end and server
CN110321236B (en)OpenDDS-based remote method call implementation method
CN101969469A (en)Callback processing method and device in telecom capability opening
CN109840155A (en)A kind of method and device for realizing remote procedure call
CN106936932A (en)A kind of method wrapped by cloud service protocol access robot software
CN101729491A (en)Method, device and system for enhancing application reliability of script-based business
CN105577446A (en)Lightweight embedded network management system and method
CN104503768B (en)A kind of application programming interface call method and equipment
CN107809332A (en)Compound interface configures and compound interface call method, device
CN111866157A (en)Cloud service gateway and cloud service internal and external request format conversion method
CN112181681A (en)Remote calling method and device, computer equipment and storage medium
CN116233241B (en)Migration method and device for micro-service application
CN105827671A (en)System platform characterized by distributed use and centralized management and portal server
CN112905273A (en)Service calling method and device
CN115567616A (en)Service protocol conversion method and device
CN120066624A (en)Application calling method, computer device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp