Function call distributed service method, system and device

Subscribing to distributed service information through the relay registration center and using the remote call protocol for distributed service calls solves the problem of message storms and high pressure in the registration center in the Serverless architecture, maintains the RPC calling method, and reduces implementation costs and request link lengths.

CN118555299AInactive Publication Date: 2024-08-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410594567.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing function computing calling methods have problems with registration center message storms and high pressure in the Serverless architecture, and RPC calls require the replacement of the SDK. Service gateway calls increase the length of the request link and the complexity of monitoring.

Method used

Subscribe to distributed service information through the transfer registration center, use the remote call protocol to make distributed service calls, maintain the original RPC calling method, avoid the performance impact of frequent expansion and contraction of functions on the registration center and the increase of gateways, and do not require application replacement SDK.

Benefits of technology

It solves the performance problems of the registration center and the problem of long request links, reduces the implementation cost, and achieves the efficiency and stability of the function calling process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555299A
    Figure CN118555299A
Patent Text Reader

Abstract

A function call distributed service method, system and device can be used in the financial field or other fields, and the method comprises the following steps: receiving an external request, and operating a corresponding function operation container according to the external request; subscribing required service information from a transfer registration center by using the function operation container and preset application configuration information; wherein the service information is obtained through synchronization of the transfer registration center from a distributed service registration center; and performing distributed service calling by using a remote calling protocol according to the service information returned by the transfer registration center. According to the method, the original RPC calling mode is kept, the situation that a request link is lengthened due to the fact that a gateway is newly added is avoided, the situation that the landing cost is increased due to the fact that the application is required to replace the SDK is avoided, and therefore the problem that the application can only be used by replacing the SDK in the actual using process in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed service technology, and in particular to a function call distributed service method, system and device. Background Art

[0002] Cloud computing has achieved the decoupling of computing resources from physical hardware. The development and application of virtualization technology has enabled cloud hosts to replace physical hosts, and infrastructure and services (IaaS) have begun to be widely used. With the popularization of container technology, PaaS (Platform as a Service) platforms have gradually emerged, and the operation and maintenance of IaaS has continued to sink. The PaaS platform further separates developers from operation and maintenance personnel, allowing developers to focus more on the allocation and use of computing and storage resources. Although the PaaS platform has been widely used, there is still room for optimization. Is there a new architecture that can completely separate business from infrastructure? Serverless came into being. Function computing, as the main form of implementing the Severless architecture, completely separates applications from infrastructure. Developers do not need to worry about the operation and maintenance of the infrastructure, but only need to focus on the development of application logic. Computing resources are only called when events are triggered, truly achieving elastic scaling and pay-as-you-go.

[0003] At present, the existing method of calling backend services by function computing is in the technical architecture of Serverless function computing. When a function needs to access distributed services, there are generally two ways: calling through RPC (remote call protocol) and calling through the service gateway. There are the following disadvantages.

[0004] Disadvantages of calling through RPC: When calling through RPC, the function needs to subscribe to the registration center where the distributed service is located. After the subscription is successful, the RPC call is made, which will lead to two problems: 1. The function node will frequently expand and shrink, which will cause the subscription situation of the registration center to change all the time, which is easy to cause a registration center message storm; 2. The number of function nodes is very large, which will cause the registration center to bear great pressure. Although the above problems have been partially solved, since the distributed service needs to be accessed through "service_name" as the domain name, the overall service registration discovery call mechanism has differed from the standardized service registration call used by existing applications, requiring the application to replace the distributed service SDK (software development kit), and it is not compatible with the original service call, resulting in a high implementation cost.

[0005] Disadvantages of calling through the service gateway: When calling a function through the service gateway, the function node first accesses the service gateway, and then accesses the distributed service through the service gateway. The service gateway can provide authentication capabilities, which will also lead to two problems: 1. The call route increases the service gateway, increases the request link length, and increases the function call time; 2. Too few service gateways are prone to performance bottlenecks, and too many service gateways are prone to resource waste, which also increases the complexity of monitoring and operation and maintenance. Summary of the invention

[0006] In view of the problems existing in the prior art, the main purpose of the embodiments of the present invention is to provide a function call distributed service method, system and device, which can not only retain the original RPC calling method of the application, but also solve the performance problems brought to the registration center by the number of functions and scaling.

[0007] In order to achieve the above object, an embodiment of the present invention provides a function call distributed service method, the method comprising:

[0008] Receive external requests and run the corresponding function running container according to the external requests;

[0009] Use the function running container and the preset application configuration information to subscribe to the required service information from the transit registration center; the service information is synchronized from the distributed service registration center through the transit registration center;

[0010] According to the service information returned by the transit registration center, distributed service calls are made using the remote call protocol.

[0011] Optionally, in an embodiment of the present invention, the method further includes: receiving a function to be imported, and obtaining a distributed service list required by the function to be imported.

[0012] Optionally, in one embodiment of the present invention, the service information is stored in a transit registration center; wherein the service information is obtained by synchronizing information of a distributed service registration center with a registration center module in the transit registration center according to a distributed service list.

[0013] Optionally, in an embodiment of the present invention, receiving an external request and running a corresponding function running container according to the external request includes:

[0014] Receive external requests processed by the function load balancing module, and send the external requests to the corresponding function running container to run the corresponding function running container according to the external requests.

[0015] Optionally, in an embodiment of the present invention, using the function running container and the preset application configuration information to subscribe to the required service information from the transit registration center includes:

[0016] Determine the application configuration information in the function running container, and use the application configuration information in the function running container to subscribe to the required service information from the transit registration center.

[0017] Optionally, in one embodiment of the present invention, the service information includes information corresponding to each distributed service written into the distributed service registration center when the distributed service is started.

[0018] The embodiment of the present invention also provides a function call distributed service system, the system comprising: a transit registration center, a distributed service registration center, a function computing platform and a distributed service platform;

[0019] When each distributed service in the distributed service platform is started, each distributed service writes its service information into the distributed service registration center;

[0020] The transit registration center obtains the distributed service list corresponding to each function from the function computing platform, and synchronizes the service information in the distributed service registration center based on the distributed service list;

[0021] The function computing platform receives external requests and runs the corresponding function running container according to the external requests; the function running container subscribes to the required service information from the transit registration center according to the preset application configuration information, and uses the remote call protocol to make distributed service calls based on the service information returned by the transit registration center.

[0022] The embodiment of the present invention further provides a function call distributed service device, the device comprising:

[0023] The external request module is used to receive external requests and run the corresponding function running container according to the external requests;

[0024] An information subscription module, used to subscribe required service information from a transit registration center using a function running container and preset application configuration information; wherein the service information is synchronized from a distributed service registration center by the transit registration center;

[0025] The service calling module is used to make distributed service calls using the remote calling protocol based on the service information returned by the transit registration center.

[0026] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above method is implemented when the processor executes the program.

[0027] The present invention also provides a computer-readable storage medium, which stores a computer program for executing the above method by a computer.

[0028] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the above method when the computer program / instruction is executed by a processor.

[0029] The present invention subscribes to the required services from the distributed registration center through the transit registration center, so the performance of the transit registration center will not be affected by the frequent start and stop of functions, and the original RPC calling method is still maintained. No new gateway will be added to cause the request link to become longer, and no application will be required to change the SDK to increase the implementation cost. This solves the problem that the existing technology needs to change the SDK before it can be used in actual use. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 A flow chart of a function calling distributed service method according to an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of the structure of a function call distributed service system according to an embodiment of the present invention;

[0033] Figure 3 A schematic diagram of the structure of a function call distributed service device according to an embodiment of the present invention;

[0034] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] The embodiments of the present invention provide a function call distributed service system, method and device, which can be used in the financial field and other fields. It should be noted that the function call distributed service system, method and device of the present invention can be used in the financial field, and can also be used in any field except the financial field. The application field of the function call distributed service system, method and device of the present invention is not limited.

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] The information collected in the technical solution of the present invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0038] like Figure 1 The flowchart of a method for calling a distributed service by a function according to an embodiment of the present invention is shown. The execution subject of the method for calling a distributed service by a function provided by the embodiment of the present invention includes but is not limited to a computer, such as a function computing platform. The present invention subscribes to the required services from the distributed registration center through the transit registration center, so the performance of the transit registration center will not be affected by the frequent start and stop of the function, and the original RPC calling method is still maintained. There will be no new gateways to lengthen the request link, and the application will not be required to change the SDK to increase the implementation cost, thereby solving the problem that the application needs to change the SDK before it can be used in the actual use of the prior art. The method shown in the figure includes:

[0039] Step S1, receiving an external request, and running a corresponding function running container according to the external request;

[0040] Step S2, using the function running container and the preset application configuration information, subscribing to the required service information from the transit registration center; wherein the service information is synchronized from the distributed service registration center by the transit registration center;

[0041] Step S3: Based on the service information returned by the transit registration center, a distributed service call is made using the remote call protocol.

[0042] Among them, the function computing platform receives external requests and runs the corresponding function running container according to the external requests; the function running container subscribes to the required service information from the transit registration center according to the preset application configuration information, and uses the remote call protocol to make distributed service calls based on the service information returned by the transit registration center.

[0043] As an embodiment of the present invention, the method further includes: receiving a function to be imported, and obtaining a distributed service list required by the function to be imported.

[0044] The function computing platform receives the function to be imported, and obtains the list of distributed services that the function needs to use from the function computing platform through the transfer registration center. Specifically, when the function is imported into the function computing platform, the application will be required to fill in the list of distributed services to be used.

[0045] In this embodiment, the service information is stored in the transit registration center; wherein the service information is obtained by synchronizing the distributed service registration center with the registration center module in the transit registration center according to the distributed service list.

[0046] Among them, the transit registration center and the distributed service list are used to synchronize the service definition information in the distributed service registration center to the registration center module of the transit registration center itself, so that the service information is stored in the transit registration center.

[0047] As an embodiment of the present invention, receiving an external request and running a corresponding function running container according to the external request includes:

[0048] Receive the external request processed by the function load balancing module, and send the external request to the corresponding function running container to run the corresponding function running container according to the external request.

[0049] Among them, the external system sends a request, and the external request is load balanced by the function load balancing module and then sent to the function computing platform. The function running container in the function computing platform runs according to the preset application configuration information.

[0050] As an embodiment of the present invention, using the function running container and the preset application configuration information, subscribing to the required service information from the transit registration center includes:

[0051] Determine the application configuration information in the function running container, and use the application configuration information in the function running container to subscribe to the required service information from the transit registration center.

[0052] Among them, the application configuration information in the function running container is pre-set according to actual needs. After the application configuration information in the function running container is determined, the function running container in the function computing platform runs the function running container according to the application configuration information and subscribes to the required service information from the transfer registration center.

[0053] As an embodiment of the present invention, the service information includes information corresponding to each distributed service written into the distributed service registration center when the distributed service is started.

[0054] When a distributed service is started, its own service information will be written into the distributed service registration center, thereby forming service information.

[0055] The present invention adds a new transit registration center, while still maintaining the original RPC calling method, without adding a new gateway to lengthen the request link, nor requiring the application to change the SDK to increase the implementation cost. Because the transit registration center only subscribes to the required services from the distributed registration center, especially after the transit registration center is split into multiple groups, each transit registration center group is only responsible for a small part of the services, so the performance of the transit registration center will not be affected by the frequent start and stop of the function. The transit registration center connects to the distributed registration based on the distributed service list defined in the function. These lists will only change when the function is put into production, so there will be no performance problems caused by notification storms caused by the frequent expansion and contraction of the function. It is equivalent to realizing a service consumer that stays online for a long time.

[0056] like Figure 2 FIG. 1 is a schematic diagram of a structure of a function call distributed service system according to an embodiment of the present invention. The system shown in the figure includes: a transit registration center, a distributed service registration center, a function computing platform and a distributed service platform;

[0057] When each distributed service in the distributed service platform is started, each distributed service writes its service information into the distributed service registration center.

[0058] Among them, the distributed service platform includes multiple distributed services. When a distributed service is started, its own service information is written into the distributed service registration center.

[0059] The transit registration center obtains the distributed service list corresponding to each function from the function computing platform, and synchronizes the service information in the distributed service registration center according to the distributed service list.

[0060] The transit registration center obtains the list of distributed services that all functions need to use from the function computing platform. Specifically, when a function is imported into the function computing platform, the application will be required to fill in the list of distributed services that it needs to use.

[0061] Furthermore, based on the distributed service list, the service definition information in the distributed service registry is synchronized to the ZooKeeper of the transit registry itself, that is, the registry module.

[0062] Specifically, by subscribing to the service information of the distributed service registration center, it is written into the ZooKeeper of the transit registration center, that is, the registration center module. The transit registration center can be divided into multiple small groups, that is, the distributed service list is divided, and each group only synchronizes a part of the services in the list.

[0063] The function computing platform receives external requests and runs the corresponding function running container according to the external requests; the function running container subscribes to the required service information from the transit registration center according to the preset application configuration information, and uses the remote call protocol to make distributed service calls based on the service information returned by the transit registration center.

[0064] Among them, the external system sends a request, and the external request is load balanced by the function load balancing module and then sent to the function computing platform. The function running container in the function computing platform runs according to the preset application configuration information.

[0065] Furthermore, the service information required for the operation process is obtained by subscribing from the transit registration center, and distributed service calls are made using the remote procedure call protocol (RPC) based on the service information returned by the transit registration center.

[0066] It should be noted that Serverless function computing is a cloud computing service based on a single function. It is relatively simple to develop. By writing a simple code snippet with input and output, it can be directly deployed on the function computing platform to provide services to the outside world.

[0067] As an embodiment of the present invention, the transit registration center includes a registration center module and a registration information synchronization management module.

[0068] In this embodiment, the registration center module is used to synchronize service information in the distributed service registration center.

[0069] In this embodiment, the transit registration center is also used to subscribe to the distributed service registration center and split the distributed service list, and synchronize the service information in the distributed service registration center to the registration center module according to the split distributed service list.

[0070] There are two main parts inside: the registration center module (ZooKeeper) and the registration information synchronization management module. The registration center module is completely consistent with the distributed service registration center technology (ZooKeeper).

[0071] Furthermore, the registration synchronization management module is mainly responsible for linking with the function running platform and the distributed registration center to obtain the service name information required by all functions, and synchronize the used service registration information from the distributed service registration center ZooKeeper to the transit registration center ZooKeeper. Service information includes service name information, service registration information and service definition information.

[0072] Furthermore, by subscribing to the service information of the distributed service registry, the registration center module of the transit registration center is written. The transit registration center can be divided into multiple small groups, that is, the distributed service list is divided, and each group only synchronizes a part of the services in the list.

[0073] As an embodiment of the present invention, a function computing platform includes multiple function execution nodes; wherein the function execution node includes a function execution container and a function log container.

[0074] In this embodiment, the system also includes a function load balancing module, which is used to receive external requests sent by an external system and send the external requests to the corresponding function running container.

[0075] Among them, the external system request function computing entry is the function load balancing module. The external request sent by the external system is processed by the function load balancing module and then sent to the function computing platform. Specifically, the function load balancing module forwards the external request to the specific function running container and runs the corresponding function running container.

[0076] Furthermore, the function running container subscribes to the required service from the transfer registration center according to the application configuration information in the container. The function running container calls the specific service through the RPC protocol according to the service information returned by the registration center.

[0077] The present invention adds a new transit registration center, while still maintaining the original RPC calling method, without adding a new gateway to lengthen the request link, nor requiring the application to change the SDK to increase the implementation cost. Because the transit registration center only subscribes to the required services from the distributed registration center, especially after the transit registration center is split into multiple groups, each transit registration center group is only responsible for a small part of the services, so the performance of the transit registration center will not be affected by the frequent start and stop of the function. The transit registration center connects to the distributed registration based on the distributed service list defined in the function. These lists will only change when the function is put into production, so there will be no performance problems caused by notification storms caused by the frequent expansion and contraction of the function. It is equivalent to realizing a service consumer that stays online for a long time.

[0078] like Figure 3 FIG. 1 is a schematic diagram of a structure of a function call distributed service device according to an embodiment of the present invention. The device shown in the figure includes:

[0079] The external request module 10 is used to receive an external request and run a corresponding function running container according to the external request;

[0080] The information subscription module 20 is used to subscribe the required service information from the transit registration center by using the function running container and the preset application configuration information; wherein the service information is synchronized from the distributed service registration center through the transit registration center;

[0081] The service calling module 30 is used to perform distributed service calling using a remote calling protocol according to the service information returned by the transit registration center.

[0082] Based on the same application concept as the above-mentioned function call distributed service method and system, the present invention also provides the above-mentioned function call distributed service device. Since the principle of solving the problem by the function call distributed service device is similar to that of the function call distributed service method and system, the implementation of the function call distributed service device can refer to the implementation of the function call distributed service method and system, and the repeated parts will not be repeated.

[0083] The present invention subscribes to the required services from the distributed registration center through the transit registration center, so the performance of the transit registration center will not be affected by the frequent start and stop of functions, and the original RPC calling method is still maintained. No new gateway will be added to cause the request link to become longer, and no application will be required to change the SDK to increase the implementation cost. This solves the problem that the existing technology needs to change the SDK before it can be used in actual use.

[0084] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above method is implemented when the processor executes the program.

[0085] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the above method when the computer program / instruction is executed by a processor.

[0086] The present invention also provides a computer-readable storage medium, which stores a computer program for executing the above method by a computer.

[0087] like Figure 4 As shown, the electronic device 600 may further include: a communication module 110, an input unit 120, an audio processor 130, a display 160, and a power supply 170. It is worth noting that the electronic device 600 does not necessarily have to include Figure 4 In addition, the electronic device 600 may also include Figure 4 For components not shown, reference may be made to the prior art.

[0088] like Figure 4As shown, the central processor 100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor devices and / or logic devices. The central processor 100 receives inputs and controls the operations of various components of the electronic device 600.

[0089] The memory 140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 100 may execute the program stored in the memory 140 to implement information storage or processing.

[0090] The input unit 120 provides input to the CPU 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display display objects such as images and text. The display may be, for example, an LCD display, but is not limited thereto.

[0091] The memory 140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 140 may also be some other type of device. The memory 140 includes a buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application / function storage unit 142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 600 through the central processor 100.

[0092] The memory 140 may also include a data storage unit 143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 144 of the memory 140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0093] The communication module 110 is a transmitter / receiver that transmits and receives signals via the antenna 111. The communication module (transmitter / receiver) 110 is coupled to the central processor 100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0094] Based on different communication technologies, multiple communication modules 110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide an audio output via the speaker 131 and receive an audio input from the microphone 132, thereby realizing a common telecommunication function. The audio processor 130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 130 is also coupled to the central processor 100, so that the sound can be recorded on the local machine through the microphone 132, and the sound stored on the local machine can be played through the speaker 131.

[0095] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0096] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A function call distributed service method, It is characterized in that The method comprises: Receive an external request and run a corresponding function running container according to the external request; Using the function running container and the preset application configuration information, subscribe to the required service information from the transit registration center; wherein the service information is synchronized from the distributed service registration center by the transit registration center; According to the service information returned by the transit registration center, a distributed service call is performed using a remote call protocol.

2. The method according to claim 1, It is characterized in that The method further includes: receiving a function to be imported, and obtaining a distributed service list required by the function to be imported.

3. The method according to claim 2, It is characterized in that The service information is stored in the transit registration center; wherein the service information is obtained by synchronizing the information of the distributed service registration center through the registration center module in the transit registration center according to the distributed service list.

4. The method according to claim 1, It is characterized in that Receiving an external request and running a corresponding function according to the external request. The running container includes: An external request processed by a function load balancing module is received, and the external request is sent to a corresponding function running container to run the corresponding function running container according to the external request.

5. The method according to claim 1, It is characterized in that Using the function to run the container and the preset application configuration information, the required service information subscribed from the transit registration center includes: Determine the application configuration information in the function running container, and use the application configuration information in the function running container to subscribe to the required service information from the transit registration center.

6. The method according to claim 1, It is characterized in that The service information includes information corresponding to each distributed service written into the distributed service registration center when the distributed service is started.

7. A function call distributed service system, It is characterized in that The system includes: a transit registration center, a distributed service registration center, a function computing platform and a distributed service platform; When each distributed service in the distributed service platform is started, each distributed service writes its service information into the distributed service registration center; The transit registration center obtains a distributed service list corresponding to each function from the function computing platform, and synchronizes the service information in the distributed service registration center according to the distributed service list; The function computing platform receives an external request and runs a corresponding function running container according to the external request; the function running container subscribes to the required service information from the transit registration center according to the preset application configuration information, and uses the remote call protocol to perform distributed service calls based on the service information returned by the transit registration center.

8. A function call distributed service device, It is characterized in that The device comprises: An external request module, used to receive an external request and run a corresponding function running container according to the external request; An information subscription module, used to use the function running container and preset application configuration information to subscribe required service information from the transit registration center; wherein the service information is synchronized from the distributed service registration center by the transit registration center; The service calling module is used to perform distributed service calling using a remote calling protocol according to the service information returned by the transit registration center.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program for causing a computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for constructing distributed service registration center

    CN103401897A

  • Permission control method and device for function call service

    CN112468499A

  • Distributed service calling method and device thereof

    CN112769945A

  • Serverless batch scheduling method and device based on virtual IP

    CN117032837A

  • Cloud edge-end collaboration method based on distributed training simulation platform

    CN117938679A