Real-time database API non-interruption calling method, system, storage medium and server

By implementing a mechanism to automatically resend request messages in the real-time database, the problem of API call interruption caused by the crash of the service process is solved, ensuring that API calls are not interrupted in complex situations, and improving the stability and efficiency of the system.

CN113986501BActive Publication Date: 2024-09-03XIAN THERMAL POWER RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111264943.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-09-03
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

When the service process of the existing real-time database crashes, the client API request will be interrupted. Existing solutions such as waiting for timeout or reconnection take a long time, increasing the complexity of the system, and making it difficult to control the timing of resending the request, which may lead to API call failed.

Method used

By implementing a mechanism for automatically resending request messages between the client and the network service process, using the connection ID and serial number as the primary key to cache instructions, and waiting for the business service process to resume, the request message is resent to ensure that API calls are not interrupted.

Benefits of technology

It realizes that when the service process crashes or the network connection is interrupted, the API call is not interrupted, maximizing the success of the API call and reducing the impact on the application layer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113986501B
    Figure CN113986501B
Patent Text Reader

Abstract

A method, system, storage medium and server for non-interruption calling of a real-time database API, the method comprising: a client initiates a request message through an API and waits for a response; a network service process receives the request message, and then forwards the request message to a business service process; if the network service process is interrupted in communication, the request message is resent after waiting for the service of the business service process to be restored and reconnected; the business service process processes the request message and returns a response message to the network service process; if the business service process runs abnormally or crashes, the designated service process and data are restored, and the request message is waited for to be resent; if the network service process receives a response message, the corresponding cache instruction is deleted, and the response message is returned to the client; if the client times out and does not receive the response message, the request message is automatically resent between the API to the network service process and between the network service process and the business service process. The present invention avoids interruption of the client API call.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of real-time database development, and in particular relates to a real-time database API non-interruption calling method, system, storage medium and server. Background Art

[0002] The implementation basis of the manufacturing innovation strategy of various countries is the collection and feature analysis of industrial big data, and the worry-free environment built on it for future manufacturing systems. Real-time database is the core service of industrial big data and the foundation of Industry 4.0.

[0003] Power generation companies need to collect massive amounts of real-time production data from industrial control systems such as DCS and auxiliary control, and store them in real-time databases. They have very high security requirements for the data stored in the database and do not allow the data to be lost due to software defects.

[0004] However, when the service process crashes, the client API request that is being processed or waiting to be processed will be interrupted. The general solution is to wait for the client API request to time out or detect a network connection interruption, and then resend the request message after the user reconnects to the real-time database. However, this method has a big flaw. Resending the request message after the client API request times out or detects a network connection interruption takes a long time, which is not conducive to the rapid processing of massive data and increases the development complexity of the application layer system. If only the business service process crashes and the network service process is normal, the network connection is normal, the recovery time of the business service process is unknown, and the timing of resending the request message is difficult to control, which may cause the API call to fail. Summary of the invention

[0005] The purpose of the present invention is to provide a method, system, storage medium and server for non-interruption calling of a real-time database API in order to solve the problems in the prior art, so as to avoid the interruption of client API calling caused by the crash of the service process of the real-time database.

[0006] In order to achieve the above object, the present invention has the following technical solutions:

[0007] In a first aspect, a method for non-interruption calling of a real-time database API is provided, comprising the following steps:

[0008] The client sends a request message through the API and waits for a response;

[0009] The network service process receives the request message, caches the instruction with the connection ID and serial number as the primary key, and then forwards the request message to the business service process;

[0010] If the network service process loses communication with the business service process when sending a request message or waiting for a response message, it will wait for the business service process to resume service and re-establish connection with the network service process before resending the request message;

[0011] If the business service process runs normally, it processes the request message and sends a response message back to the network service process; if the business service process runs abnormally or crashes, it restores the specified service process and data and waits for the network service process to resend the request message;

[0012] If the network service process receives a response message from the business service process, it deletes the corresponding cache instruction and sends the response message back to the client;

[0013] If the client does not receive a response message within a timeout period, the API call fails, and the request message is automatically resent between the API and the network service process and between the network service process and the business service process to achieve uninterrupted API calls.

[0014] As a preferred solution of the method of the present invention, the client initiates a request message through an API, including the following steps: the real-time database client forms a message header with attribute data, forms a message body with request parameters, and forms a request message with the message header and the message body; the attribute data includes an API call function ID, a message serial number and a message length; and then sends the request message to a network service process through a TCP connection;

[0015] If the TCP connection between the client API and the network service process is interrupted, the client API detects whether the current API call has timed out. If so, the API call is terminated and a network connection failure error code is returned. If not, the network service process is reconnected until the connection is successful and the request message is resent. If the client API sends the request message successfully, it waits for a response. If the network service process times out and does not respond, the API call is terminated and a timeout error code is returned. If a response message from the network service process is received, the client API parses the response message and returns the API call result to the client.

[0016] As a preferred solution of the method of the present invention, if the network service process loses communication with the business service process when sending a request message or waiting for a response message, first determine whether it is caused by the crash of the network service process or the crash of the business service process;

[0017] If it is caused by the crash of the network service process, after the network service process is restored, the client API re-establishes the connection and resends the request instruction; if it is caused by the crash of the business service process, after the specified service process and data are restored, the network service process obtains the unprocessed request message from the instruction cache and re-forwards it to the business service process for processing.

[0018] As a preferred solution of the method of the present invention, the client API is a dynamic library that provides a series of interfaces for accessing the real-time database. The interface packages the parameters of the user calling the interface into a request message, and then sends the request message to the network service process via TCP.

[0019] As a preferred solution of the method of the present invention, after receiving the request message, the network service process identifies the calling function according to the request message, and then forwards the request message to the corresponding business service process.

[0020] As a preferred solution of the method of the present invention, forwarding the request message to the corresponding business service process includes forwarding the request message for querying the measurement point to the basic service process, forwarding the request message for reading and writing snapshots to the snapshot service process, and forwarding the request message for reading and writing history to the history service process.

[0021] As a preferred solution of the method of the present invention, after the business service process performs corresponding functional processing according to the parameters of the request message, it packages the processing results into a response message and returns it to the communication service process, and the communication service process returns the response message to the client API, thereby completing a complete call.

[0022] In a second aspect, a real-time database API non-interruption calling system is provided, comprising:

[0023] The request message sending module is used by the client to initiate a request message through the API and wait for a response;

[0024] The request message forwarding module is used for the network service process to receive the request message, cache the instruction with the connection ID and the serial number as the primary key, and then forward the request message to the business service process;

[0025] A reconnection and resending module is used to resend the request message after the network service process loses communication with the business service process when sending a request message or waiting for a response message, waiting for the business service process to resume service and reestablishing a connection with the network service process;

[0026] The request message processing module is used for the business service process to process the request message and send a response message back to the network service process; if the business service process runs abnormally or crashes, the specified service process and data are restored and the network service process is waited for to resend the request message;

[0027] The response message return module is used to delete the corresponding cache instruction when the network service process receives the response message from the business service process, and return the response message to the client;

[0028] The API call recovery module is used to automatically resend request messages between the API to the network service process and between the network service process and the business service process when the client times out and does not receive a response message, so as to achieve uninterrupted API calls.

[0029] According to a third aspect, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the real-time database API non-interruption calling method is implemented.

[0030] In a fourth aspect, a server is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the real-time database API non-interruption calling method when executing the computer program.

[0031] Compared with the prior art, the first aspect of the present invention has at least the following beneficial effects:

[0032] This real-time database API non-interruption calling method can not only automatically reconnect to the real-time database and continue to execute API calls when the network connection is interrupted, but also quickly recover and continue to execute API calls when the service process of the real-time database crashes when executing API calls. This can maximize the success of an API call in various complex situations and avoid affecting data access and subsequent data processing services at the application layer.

[0033] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 This is a running relationship diagram of the service process when the client of the present invention initiates a request through the API;

[0036] Figure 2 This is a flow chart of the real-time database API non-interruption calling method of the present invention;

[0037] Figure 3 A flowchart of the client calling the API of the present invention;

[0038] Figure 4 A schematic diagram of the process flow of processing a request message by the service process of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below in conjunction with specific embodiments and drawings. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0040] See also Figure 1 The present invention provides a method for calling a real-time database API without interruption. The real-time database is composed of a server and a client. The service process of the server is composed of a watchdog service process S1, a communication service process S2, a basic service process S3, a snapshot service process S4 and a history service process S5. The client executes the client API S6. Processes S1 to S5 are service processes of the real-time database server. They realize cross-process communication and coordinated operation through the inter-process communication protocol IPC. The communication service process S2 and the client API S6 perform data communication through the TCP protocol to realize the remote calling of the client API.

[0041] See also Figure 2 The real-time database API non-interruption calling method of the present invention specifically comprises the following steps:

[0042] Step S11: The real-time database client initiates a request message through the API and waits for a response. If the connection is disconnected, it can try to reconnect and resend the request;

[0043] Step S12: the network service process receives the request message, caches the instruction using the connection ID and the serial number as the primary key, and then forwards the request message to the business service process;

[0044] Step S13: if the network service process loses communication with the business service process when sending a request message or waiting for a response message, the network service process waits for the business service process to resume service and re-establishes a connection with the network service process before resending the request message;

[0045] Step S14: If the business service process runs normally, the request message is processed and a response message is sent back to the network service process. If the business service process runs abnormally or crashes, the watchdog service restores the designated service process and data and waits for the network service process to resend the request message;

[0046] Step S15: If the network service process receives a response message from the business service process, it deletes the corresponding cache instruction and sends the response message back to the client;

[0047] Step S16: If the client does not receive a response message within the timeout period, the API call fails. Otherwise, the request message is automatically resent between the API and the network service process, and between the network service process and the business service process to achieve uninterrupted API calls.

[0048] In one implementation, the specific processing flow of the real-time database client initiating a request message through the API in step S11 is as follows:

[0049] The real-time database client forms a message header with the API call function ID, message serial number, message length and other data, forms a message body with the request parameters, and forms a request message with the message header and message body, and sends it to the communication service process S2 through a TCP connection. If the TCP connection between the client API S6 and the communication service process S2 is interrupted, the client API S6 detects whether the current API call has timed out. If it has timed out, the API call is terminated and a network connection failure error code is returned; if it has not timed out, the network service process is reconnected until the connection is successful and the request message is resent.

[0050] After the client API S6 successfully sends the request message, it waits for a response. As described in step S16, if the communication service process S2 times out and does not respond, the API call is terminated and a timeout error code is returned; if a response message from the communication service process S2 is received, the client API S6 parses the response message and returns the API call result to the client.

[0051] In one embodiment, the network service process described in step S12 receives a request message and caches instructions with the connection ID and serial number as the primary key. To avoid the loss of the request message due to the crash of the business service process in the process of processing the request message after the network service process S2 forwards the request message, the request message is first cached in the instruction cache S24 with the connection ID and serial number as the primary key before forwarding the request message. After the network service process S2 receives the response message, the corresponding request message is deleted from the instruction cache S24 as described in step S15, and the response message is returned to the client API S6.

[0052] In one embodiment, if the network service process described in step S13 loses communication with the business service process when sending a request message or waiting for a response message, it may be that the network service process S2 crashes, or it may be that the business service process crashes. If it is the former, the TCP connection of the client API S6 will be interrupted, and after the watchdog service process S1 pulls up the network service process S2, the client API S6 reconnects and resends the request instruction according to the process of step S11; if it is the latter, it is processed in the manner described in step S14, the watchdog service process S1 pulls up the business service process, and then the network service process S2 obtains the unprocessed request message from the instruction buffer S24 and re-forwards it to the business service process for processing.

[0053] In one embodiment, if the client does not receive a response message after the timeout in step S16, the API call fails. The method of the present invention mainly describes the process of handling abnormal API calls. If the API call does not receive a response message after the client times out, it means that the API call has failed, which may be a network abnormality. In the case of a stable network, when the request message between the client API S6 to the network service process S2 and the network service process S2 to the business service process crashes during the processing, the request message is automatically resent to achieve uninterrupted API calls.

[0054] like Figure 3 As shown, Figure 3 The figure shows the API non-interrupted call processing flow between the client API S6 and the network service process S2, which realizes the non-interrupted API call by automatically reconnecting and resending the request message after the network is disconnected. In order to prevent the client API S6 from entering an endless reconnection cycle due to network failure, the client API S6 sets an API call timeout. If the API still cannot complete the API call after the timeout, the API call is forcibly interrupted.

[0055] like Figure 4 As shown, Figure 4The figure shows the processing flow of request messages between various service processes on the real-time database server. The client API S6 is a dynamic library that provides a series of interfaces for accessing the real-time database. These interfaces package the parameters of the user calling the interface into request messages, and then send the request messages to the communication service process S2 through TCP. After the request message of the client API S6 is sent to the network service process S2, the network service process S2 parses the request message header, forms the primary key with the current connection ID and the serial number parsed from the message header, and caches the request message in the instruction buffer S24, the purpose of which is to resend the request message after the business service process crashes and recovers. The client API S6 then determines which business service process to forward the request message to based on the function ID parsed from the request message header: if it is a request message related to the measurement point function, it is forwarded to the basic service process S3; if it is a request message related to the read and write snapshot, it is forwarded to the snapshot service process S4; and if it is a request message related to the read and write history, it is forwarded to the history service process S5. The business service process completes processing the request message and returns a response message to the network service process S2. The network service process S2 parses the response message header again, uses the current connection ID and the serial number parsed from the message header as the primary key, deletes the cached instructions from the instruction cache S24, and sends the response message back to the client API S6. During this process, if the network service process S2 crashes, the TCP connection of the client API S6 will be interrupted. After the watchdog service process S1 pulls up the network service process S2, the client API S6 reconnects and resends the request instruction according to step S11; if the business service process crashes, the watchdog service process S1 pulls up the business service process, and then the network service process S2 obtains the unprocessed request message from the instruction cache S24 and re-forwards it to the business service process for processing.

[0056] Another embodiment of the present invention further provides a real-time database API non-interruption calling system, comprising:

[0057] The request message sending module is used by the client to initiate a request message through the API and wait for a response;

[0058] The request message forwarding module is used for the network service process to receive the request message, cache the instruction with the connection ID and the serial number as the primary key, and then forward the request message to the business service process;

[0059] A reconnection and resending module is used to resend the request message after the network service process loses communication with the business service process when sending a request message or waiting for a response message, waiting for the business service process to resume service and reestablishing a connection with the network service process;

[0060] The request message processing module is used for the business service process to process the request message and send a response message back to the network service process; if the business service process runs abnormally or crashes, the specified service process and data are restored and the network service process is waited for to resend the request message;

[0061] The response message return module is used to delete the corresponding cache instruction when the network service process receives the response message from the business service process, and return the response message to the client;

[0062] The API call recovery module is used to automatically resend request messages between the API to the network service process and between the network service process and the business service process when the client times out and does not receive a response message, so as to achieve uninterrupted API calls.

[0063] Another embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the real-time database API non-interruption calling method when executed by a processor.

[0064] Another embodiment of the present invention further provides a server, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the real-time database API non-interruption calling method when executing the computer program.

[0065] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in a computer-readable storage medium and executed by the processor to complete the steps of the real-time database API non-interruption calling method of the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the server.

[0066] The server may be a computing device such as a notebook, a desktop computer, or a cloud server. The server may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the server may include more or fewer components, or a combination of certain components, or different components. For example, the server may also include input and output devices, network access devices, buses, etc.

[0067] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0068] The memory may be an internal storage unit of the server, such as a hard disk or memory of the server. The memory may also be an external storage device of the server, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the server. Furthermore, the memory may include both an internal storage unit of the server and an external storage device. The memory is used to store the computer-readable instructions and other programs and data required by the server. The memory may also be used to temporarily store data that has been output or is to be output.

[0069] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0070] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0071] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0073] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for non-interruption calling of a real-time database API, characterized in that: The following steps are involved: The client sends a request message through the API and waits for a response; The network service process receives the request message, caches the instruction with the connection ID and serial number as the primary key, and then forwards the request message to the business service process; If the network service process loses communication with the business service process when sending a request message or waiting for a response message, it will wait for the business service process to resume service and re-establish connection with the network service process before resending the request message; If the business service process runs normally, it processes the request message and sends a response message back to the network service process; If the business service process runs abnormally or crashes, the specified service process and data are restored and the network service process is left waiting to resend the request message. If the network service process receives a response message from the business service process, it deletes the corresponding cache instruction and sends the response message back to the client; If the client does not receive a response message within a timeout period, the API call fails, and the request message is automatically resent between the API and the network service process and between the network service process and the business service process to achieve uninterrupted API calls; If the network service process loses communication with the business service process when sending a request message or waiting for a response message, first determine whether it is caused by the crash of the network service process or the crash of the business service process; If it is caused by the crash of the network service process, after the network service process is restored, the client API re-establishes the connection and resends the request instruction; if it is caused by the crash of the business service process, after the specified service process and data are restored, the network service process obtains the unprocessed request message from the instruction cache and re-forwards it to the business service process for processing.

2. The real-time database API non-interruption calling method according to claim 1, characterized in that: The client initiates a request message through the API, including the following steps: the real-time database client forms a message header with attribute data, forms a message body with request parameters, and forms a request message with the message header and the message body; the attribute data includes the API call function ID, message serial number and message length; and then sends it to the network service process through a TCP connection; If the TCP connection between the client API and the network service process is interrupted, the client API detects whether the current API call has timed out. If so, the API call is terminated and a network connection failure error code is returned. If not, the network service process is reconnected until the connection is successful and the request message is resent. If the client API sends the request message successfully, it waits for a response. If the network service process times out and does not respond, the API call is terminated and a timeout error code is returned. If a response message from the network service process is received, the client API parses the response message and returns the API call result to the client.

3. The real-time database API non-interruption calling method according to claim 1, characterized in that: The client API is a dynamic library that provides a series of interfaces for accessing the real-time database. The interface packages the parameters of the user calling the interface into a request message, and then sends the request message to the network service process through TCP.

4. The method for calling a real-time database API without interruption according to claim 1, characterized in that: After receiving the request message, the network service process identifies the calling function according to the request message, and then forwards the request message to the corresponding business service process.

5. The method for calling a real-time database API without interruption according to claim 4, characterized in that: The forwarding request message to the corresponding business service process includes forwarding the request message of querying the measuring point to the basic service process, forwarding the request message of reading and writing the snapshot to the snapshot service process, and forwarding the request message of reading and writing the history to the history service process.

6. The method for calling a real-time database API without interruption according to claim 5, characterized in that: After the business service process performs corresponding functional processing according to the parameters of the request message, it packages the processing results into a response message and returns it to the communication service process, which then returns the response message to the client API, thus completing a complete call.

7. A real-time database API non-interruption calling system, characterized in that: include: The request message sending module is used by the client to initiate a request message through the API and wait for a response; The request message forwarding module is used for the network service process to receive the request message, cache the instruction with the connection ID and the serial number as the primary key, and then forward the request message to the business service process; A reconnection and resending module is used to resend the request message after the network service process loses communication with the business service process when sending a request message or waiting for a response message, waiting for the business service process to resume service and reestablishing a connection with the network service process; The request message processing module is used for the business service process to process the request message and return the response message to the network service process; If the business service process runs abnormally or crashes, the specified service process and data are restored and the network service process is left waiting to resend the request message. The response message return module is used to delete the corresponding cache instruction when the network service process receives the response message from the business service process, and return the response message to the client; The API call recovery module is used to automatically resend the request message between the API to the network service process and the network service process to the business service process when the client times out and does not receive the response message, so as to achieve uninterrupted API calls; If the network service process loses communication with the business service process when sending a request message or waiting for a response message, first determine whether it is caused by the crash of the network service process or the crash of the business service process; If it is caused by the crash of the network service process, after the network service process is restored, the client API re-establishes the connection and resends the request instruction; if it is caused by the crash of the business service process, after the specified service process and data are restored, the network service process obtains the unprocessed request message from the instruction cache and re-forwards it to the business service process for processing.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the real-time database API non-interruption calling method according to any one of claims 1 to 6 is implemented.

9. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the real-time database API non-interruption calling method according to any one of claims 1 to 6 is implemented.