Service processing method, apparatus and device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BANK OF CHINA
- Filing Date
- 2023-06-13
- Publication Date
- 2026-08-07
AI Technical Summary
[0005]本申请提供一种服务处理方法、装置及设备,可以解决现有技术中在新服务系统开发完成后难以保障服务质量的技术问题
[0026]本申请提供的服务处理方法、装置及设备,在新服务系统开发完成后,采用新服务系统与旧服务系统并行运行的服务策略,由旧服务系统接收客户端发送的服务请求,当新服务系统处于正常状态时,旧服务系统将接收到的服务请求转发到新服务系统进行处理;当新服务系统处于异常状态时,由旧服务系统对接收到的服务请求进行处理,相较于现有技术中直接利用新服务系统替代旧服务系统的方式,本申请实施例可以有效保障服务系统的服务质量。
Smart Images

Figure CN116743724B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to a service processing method, apparatus, and device. Background Technology
[0002] In the field of software development, as software functions are adjusted and technologies are upgraded, it is often necessary to develop a new service system to replace the old one.
[0003] Currently, after a new service system is developed, the general approach is to launch the new service system and decommission the old service system at the same time to ensure that the new service system completely replaces the old service system.
[0004] However, if the service capabilities of the new service system have not been fully verified, it will pose certain security risks if the new service system is used to completely replace the old service system. This is especially true in the financial sector, which is highly sensitive to risks. Some complex business scenarios (such as high concurrency scenarios and poor data input quality scenarios) are not easy to simulate in the test environment. Therefore, if the new service system is used to replace the old service system directly after its development, it will be difficult to guarantee service quality and security incidents are likely to occur. Summary of the Invention
[0005] This application provides a service processing method, apparatus, and equipment that can solve the technical problem in the prior art of difficulty in guaranteeing service quality after the development of a new service system.
[0006] Firstly, this application provides a service processing method applied to a legacy service system, the method comprising:
[0007] Upon receiving a service request from a client through the first interface, determine the status of the new service system;
[0008] When the new service system is in normal condition, the second interface corresponding to the first interface in the new service system is determined according to the interface mapping relationship between the old service system and the new service system. The service request is forwarded to the second interface, and the service response obtained by the new service system in processing the service request is obtained through the second interface.
[0009] When the new service system is in an abnormal state, the service request is processed to obtain a service response;
[0010] Send the service response to the client.
[0011] Secondly, this application provides a service processing method, the method comprising:
[0012] When the old service system receives a service request from the client through the first interface, it determines the status of the new service system.
[0013] When the new service system is in a normal state, the old service system determines the second interface corresponding to the first interface in the new service system based on the interface mapping relationship between the old service system and the new service system; the old service system forwards the service request to the second interface; the new service system processes the service request and sends a service response to the old service system through the second interface;
[0014] When the new service system is in an abnormal state, the old service system processes the service request and obtains a service response.
[0015] The old service system sends the service response to the client.
[0016] Thirdly, this application provides a service processing apparatus for use in legacy service systems, the apparatus comprising:
[0017] The determination module is used to determine the status of the new service system when a service request is received from the client through the first interface;
[0018] The processing module is used to determine the second interface corresponding to the first interface in the new service system according to the interface mapping relationship between the old service system and the new service system when the new service system is in a normal state, forward the service request to the second interface, and obtain the service response obtained by the new service system in processing the service request through the second interface;
[0019] When the new service system is in an abnormal state, the service request is processed to obtain a service response;
[0020] The sending module is used to send the service response to the client.
[0021] Fourthly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0022] The memory stores computer-executed instructions;
[0023] The processor executes computer execution instructions stored in the memory to implement the service processing method provided in the first or second aspect.
[0024] Fifthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the service processing method provided in the first or second aspect.
[0025] Sixthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the service processing method provided in the first or second aspect.
[0026] The service processing method, apparatus, and equipment provided in this application adopt a service strategy of parallel operation of the new service system and the old service system after the new service system is developed. The old service system receives service requests sent by the client. When the new service system is in a normal state, the old service system forwards the received service requests to the new service system for processing. When the new service system is in an abnormal state, the old service system processes the received service requests. Compared with the prior art of directly replacing the old service system with the new service system, the embodiments of this application can effectively ensure the service quality of the service system. Attached Figure Description
[0027] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0028] Figure 1 A schematic diagram of the architecture of a service system provided for an exemplary embodiment of this application;
[0029] Figure 2 This is a flowchart illustrating the steps of a service processing method provided in an embodiment of this application;
[0030] Figure 3 This is a schematic diagram of signaling transmission for a service processing method provided in an embodiment of this application;
[0031] Figure 4 This is another signaling transmission diagram of a service processing method provided in an embodiment of this application;
[0032] Figure 5 This is a schematic diagram of the program modules of a service processing device provided in the embodiments of this application;
[0033] Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0034] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0035] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0036] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0037] It should be noted that the service processing methods, apparatus and equipment provided in the embodiments of this application can be used in the field of artificial intelligence, or in any field other than artificial intelligence. This application does not limit the application field of the provided service processing methods, apparatus and equipment.
[0038] In the field of software development, as software functions are adjusted and technology is upgraded, it is often necessary to develop a new service system to replace the old service system. The new service system and the old service system provide similar functions but also have differences.
[0039] Currently, after a new service system is developed, it is generally deployed simultaneously with the old service system to completely replace it. However, this approach has a drawback: if the service capabilities of the new system are not fully validated before replacing the old one, certain security risks arise. This is especially true in the risk-sensitive financial sector, where complex business scenarios are difficult to simulate in a testing environment. Therefore, directly replacing the old system with the new one after development makes it difficult to guarantee service quality and increases the risk of security incidents.
[0040] To address the aforementioned technical problems, this application provides a service processing method. After the new service system is developed, a service strategy is adopted in which the new service system and the old service system run in parallel. The old service system receives service requests sent by clients. When the new service system is in a normal state, the old service system forwards the received service requests to the new service system for processing. When the new service system is in an abnormal state, the old service system processes the received service requests. Compared with the prior art of directly replacing the old service system with the new service system, the embodiments of this application can effectively ensure the service quality of the service system.
[0041] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0042] Reference Figure 1 , Figure 1 This is a schematic diagram of the architecture of a service system provided in an embodiment of this application; in some embodiments, the service system includes a server 101 and a client 102. The client 102 communicates with the server 101 via a network.
[0043] In some implementations, the aforementioned network includes, but is not limited to, a wide area network (WAN), a metropolitan area network (MAN), or a local area network (LAN). The aforementioned client 102 (or user terminal) refers to a program that provides local services to clients, corresponding to the server. Except for some applications that run only locally, it is generally installed on ordinary client machines and needs to cooperate with the server to run. Commonly used clients include web browsers used for the World Wide Web and instant messaging client software. The aforementioned client machines may include network terminals such as mobile terminals, tablets, laptops, desktop computers, and smart TVs. The server 101 includes, but is not limited to, single-processor servers, multi-processor servers, and distributed servers.
[0044] In some implementations, the above service processing method can be executed by the server 101, and this application embodiment does not impose any restrictions.
[0045] Reference Figure 2 , Figure 2 This is a flowchart illustrating the steps of a service processing method provided in an embodiment of this application. In some embodiments of this application, the service processing method includes:
[0046] S201. The old service system receives service requests sent by the client through the first interface.
[0047] The first interface mentioned above belongs to the old service system.
[0048] In some implementations, after the new service system is developed, it can be launched while keeping the old service system running normally, so that the old service system and the new service system can run in parallel.
[0049] In this case, after the client generates a service request, it still sends it to the old service system.
[0050] S202. Determine if the new service system is in normal condition.
[0051] In some implementations, the old service system determines the running status of the new service system when it receives a service request from a client through a first interface.
[0052] In some implementations, the legacy service system can send probe messages to the new service system according to a preset probe period, and receive response messages from the new service system in response to the probe messages within the probe period. When the legacy service system receives the service request, it determines the status of the new service system by retrieving the response messages received in the most recent probe period and based on the received response messages.
[0053] In other implementations, when the old service system receives the aforementioned service request, it directly sends a probe message to the new service system; receives a response message from the new service system to the probe message; and determines the status of the new service system based on the received response message.
[0054] Optionally, the aforementioned probe message can be a query request message; the determination of the new service system's status based on the received response message specifically includes:
[0055] Determine whether the response message carries query result data; if the response message carries query result data and each query result data is consistent with the expected query result data in the query request message, determine that the new service system is in a normal state; if the response message does not carry query result data, or if the response message carries query result data and the query result data is inconsistent with the expected query result data in the query request message, determine that the new service system is in an abnormal state.
[0056] The aforementioned probe messages can cover all functional modules in the new service system. In other words, by sending the aforementioned probe messages, the operating status of each functional module in the new service system can be monitored.
[0057] Using query request messages to detect the running status of the new service system can effectively avoid generating dirty data during the detection process and avoid modifying the data stored in the new service system.
[0058] In this embodiment of the application, when the new service system is in a normal state, steps S203 to S205 are executed; when the new service system is in an abnormal state, steps S206 and S207 are executed.
[0059] S203. Based on the interface mapping relationship between the old service system and the new service system, determine the second interface corresponding to the first interface in the new service system.
[0060] It is understandable that the access interface of a newly developed service system may differ from that of the access interface in the old service system. In this embodiment, the interface mapping relationship between the old service system and the new service system can be determined in advance. When the new service system is in a normal state, the second interface corresponding to the first interface in the new service system is determined according to the interface mapping relationship.
[0061] S204. Forward the service request to the second interface and obtain the service response from the new service system in processing the service request through the second interface.
[0062] In some implementations, after the second interface is determined, the old service system can forward the service request to the second interface of the new service system, and the new service system can process the service request.
[0063] S205. Send the above service response to the client.
[0064] The old service system can send the service response obtained by the new service system in processing the above service request to the client.
[0065] S206. Process the above service request and obtain a service response.
[0066] In this embodiment of the application, when the new service system is in an abnormal state, the old service system can directly respond to the above service request and process the above service request without forwarding the above service request to the new service system.
[0067] S207. Send the above service response to the client.
[0068] The old service system can send the service response obtained from processing the above service request to the client.
[0069] The service processing method provided in this application adopts a service strategy of parallel operation of the new service system and the old service system after the new service system is developed. The old service system receives service requests sent by the client. When the new service system is in a normal state, the old service system forwards the received service requests to the new service system for processing. When the new service system is in an abnormal state, the old service system processes the received service requests. Compared with the prior art of directly replacing the old service system with the new service system, this application embodiment can effectively ensure the service quality of the service system.
[0070] Based on the content described in the above embodiments, in some embodiments of this application, when the legacy service system receives a service request sent by the client through the first interface, it can first obtain the response latency corresponding to the service request; when the response latency is less than a preset threshold, the above step S202 is continued.
[0071] When the response delay is greater than or equal to the preset threshold, the second interface corresponding to the first interface in the new service system can be determined directly based on the interface mapping relationship between the old service system and the new service system, and the service request can be forwarded to the second interface. If the old service system does not obtain the service response from the new service system through the second interface within the preset time, the service request can be processed directly to obtain the service response, and the obtained service response can be sent to the client.
[0072] Understandably, if the response latency is greater than or equal to the preset threshold, it indicates that the service request has low latency requirements. In this case, it is not necessary to judge the status of the new service system, but to directly forward the received service request to the new service system for processing. When the old service system does not obtain the service response from the new service system for the above service request through the second interface within the preset time, it indicates that the new service system is in an abnormal state. In this case, the old service system can process the received service request to ensure the service quality of the service system.
[0073] Based on the content described in the above embodiments, referring to Figure 3 , Figure 3 This is a signaling transmission diagram of a service processing method provided in an embodiment of this application; in some embodiments of this application, the above-mentioned service processing method includes:
[0074] 301. The client sends a service request to the legacy service system.
[0075] 302. The old service system determines the operating status of the new service system.
[0076] 303. When the new service system is in normal operation, the old service system forwards the above service requests to the new service system.
[0077] 304. The new service system processes the received service requests.
[0078] 305. The new service system sends the above service request to the old service system in response.
[0079] 306. After receiving the above service response, the old service system sends the above service response to the above client.
[0080] In some implementations, the new service system may also send the service response directly to the aforementioned client.
[0081] 307. The new service system synchronizes data with the old service system.
[0082] In some implementations, the new service system can send synchronization data to the old service system, and the old service system updates the data stored in the old service system based on the received synchronization data, so that the data stored in the old service system is consistent with the data stored in the new service system.
[0083] Based on the content described in the above embodiments, referring to Figure 4 , Figure 4 This is another signaling transmission diagram of a service processing method provided in an embodiment of this application; in some embodiments of this application, the above-mentioned service processing method includes:
[0084] 401. The client sends a service request to the legacy service system.
[0085] 402. The old service system determines the operating status of the new service system.
[0086] 403. When the new service system is in an abnormal state, the old service system will handle the above service requests.
[0087] 404. The old service system sends the above service request to the above client in the service response.
[0088] 405. Synchronize data between the old service system and the new service system.
[0089] In some implementations, the legacy service system can send synchronization data to the new service system to update the data stored in the new service system, so that the data stored in the new service system is consistent with the data stored in the legacy service system.
[0090] The service processing method provided in this application adopts a service strategy of parallel operation of the new service system and the old service system after the new service system is developed. The old service system receives service requests sent by the client. When the new service system is in a normal state, the old service system forwards the received service requests to the new service system for processing. When the new service system is in an abnormal state, the old service system processes the received service requests. Compared with the prior art of directly replacing the old service system with the new service system, this application embodiment can not only effectively ensure the service quality of the service system, but also verify the service capability of the new service system while ensuring service quality.
[0091] Based on the content described in the above embodiments, this application also provides a service processing device, with reference to... Figure 5 , Figure 5 This is a schematic diagram of a program module of a service processing device provided in an embodiment of this application. In some embodiments, the service processing device 50 includes:
[0092] The determination module 501 is used to determine the status of the new service system when a service request sent by the client is received through the first interface.
[0093] The processing module 502 is configured to, when the new service system is in a normal state, determine the second interface corresponding to the first interface in the new service system according to the interface mapping relationship between the old service system and the new service system, forward the service request to the second interface, and obtain the service response obtained by the new service system in processing the service request through the second interface; when the new service system is in an abnormal state, process the service request and obtain the service response.
[0094] The sending module 503 is used to send the service response to the client.
[0095] In some embodiments, the device further includes a detection module for:
[0096] According to the preset detection cycle, send detection messages to the new service system;
[0097] Receive a response message from the new service system regarding the detection messages received during the detection period.
[0098] The determination module 501 is used to: obtain the response message received in the most recent detection period, and determine the status of the new service system based on the received response message.
[0099] In some implementations, the determining module 501 is used for:
[0100] Send a probe message to the new service system, receive a response message from the new service system to the probe message, and determine the status of the new service system based on the received response message.
[0101] In some implementations, the probe message is a query request message; the determination module 501 is used for:
[0102] Determine whether the response message carries query result data;
[0103] When the response message carries query result data, and the query result data is consistent with the query result data expected in the query request message, the new service system is determined to be in a normal state.
[0104] When the response message does not carry query result data, or when the response message carries query result data but the query result data is inconsistent with the query result data expected in the query request message, the new service system is determined to be in an abnormal state.
[0105] In some implementations, the determining module 501 is used for:
[0106] Obtain the response latency corresponding to the service request;
[0107] When the response latency is less than a preset threshold, the status of the new service system is determined.
[0108] In some implementations, the processing module 502 is further configured to:
[0109] When the response delay is greater than or equal to the preset threshold, the second interface corresponding to the first interface in the new service system is determined according to the interface mapping relationship, and the service request is forwarded to the second interface;
[0110] If the service response obtained by the new service system for processing the service request is not obtained through the second interface within the preset time period, the service request will be processed to obtain a service response.
[0111] In some embodiments, the above-described apparatus further includes a synchronization module for:
[0112] Data is synchronized with the new service system to ensure that the data stored in the old service system is consistent with the data stored in the new service system.
[0113] It should be noted that the specific execution of the determining module 501, processing module 502 and sending module 503 in this embodiment can be found in the relevant content of the above method embodiments, and will not be repeated here.
[0114] Furthermore, based on the content described in the above embodiments, this application also provides an electronic device, which includes at least one processor and a memory; wherein the memory stores computer execution instructions; the at least one processor executes the computer execution instructions stored in the memory to implement the various steps in the service processing method described in the above embodiments.
[0115] To better understand the embodiments of this application, please refer to... Figure 6 , Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.
[0116] like Figure 6 As shown, the electronic device 60 of this embodiment includes: a processor 601 and a memory 602; wherein:
[0117] Memory 602 is used to store instructions executed by the computer;
[0118] The processor 601 is configured to execute computer execution instructions stored in memory to implement the various steps in the service processing method described in the above embodiments.
[0119] Alternatively, the memory 602 can be either standalone or integrated with the processor 601.
[0120] When the memory 602 is set up independently, the device also includes a bus 603 for connecting the memory 602 and the processor 601.
[0121] This application provides a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements the various steps of the service processing method described in the above embodiments.
[0122] This application provides a computer program product, including a computer program that, when executed by a processor, implements the various steps of the service processing method described in the above embodiments.
[0123] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0124] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0125] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.
[0126] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.
[0127] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0128] The memory may include high-speed RAM, and may also include non-volatile storage (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.
[0129] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0130] The aforementioned storage medium can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A service processing method, characterized in that, Applied to legacy service systems, the method includes: Upon receiving a service request from a client through the first interface, the running status of the new service system is determined. When the new service system is in normal condition, the second interface corresponding to the first interface in the new service system is determined according to the interface mapping relationship between the old service system and the new service system. The service request is forwarded to the second interface, and the service response obtained by the new service system in processing the service request is obtained through the second interface. When the new service system is in an abnormal state, the service request is processed to obtain a service response; Send the service response to the client; The method further includes: According to the preset detection cycle, send detection messages to the new service system; Receive a response message from the new service system regarding the detection messages received during the detection period; Determining the operating status of the new service system includes: Obtain the response messages received within the most recent detection period, and determine the operating status of the new service system based on the received response messages; or, Send a probe message to the new service system, receive a response message from the new service system to the probe message, and determine the operating status of the new service system based on the received response message.
2. The method according to claim 1, characterized in that, The probe message is a query request message; determining the operating status of the new service system based on the received response message includes: Determine whether the response message carries query result data; When the response message carries query result data, and the query result data is consistent with the query result data expected in the query request message, the new service system is determined to be in a normal state. When the response message does not carry query result data, or when the response message carries query result data but the query result data is inconsistent with the query result data expected in the query request message, the new service system is determined to be in an abnormal state.
3. The method according to claim 1, characterized in that, Determining the operating status of the new service system includes: Obtain the response latency corresponding to the service request; When the response delay is less than a preset threshold, the operating status of the new service system is determined.
4. The method according to claim 3, characterized in that, The method further includes: When the response delay is greater than or equal to the preset threshold, the second interface corresponding to the first interface in the new service system is determined according to the interface mapping relationship, and the service request is forwarded to the second interface; If the service response obtained by the new service system for processing the service request is not obtained through the second interface within the preset time period, the service request will be processed to obtain a service response. The received service response is sent to the client.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: Data is synchronized with the new service system to ensure that the data stored in the old service system is consistent with the data stored in the new service system.
6. A service processing method, characterized in that, The method includes: When the old service system receives a service request from the client through the first interface, it determines the running status of the new service system. When the new service system is in a normal state, the old service system determines the second interface corresponding to the first interface in the new service system based on the interface mapping relationship between the old service system and the new service system; the old service system forwards the service request to the second interface; the new service system processes the service request and sends a service response to the old service system through the second interface; When the new service system is in an abnormal state, the old service system processes the service request and obtains a service response. The legacy service system sends the service response to the client. The method further includes: The old service system sends probe messages to the new service system according to a preset probe cycle; Receive a response message from the new service system regarding the detection messages received during the detection period; Determining the operating status of the new service system includes: The old service system obtains the response messages received in the most recent detection period and determines the operating status of the new service system based on the received response messages. or, The old service system sends a probe message to the new service system, receives a response message from the new service system to the probe message, and determines the operating status of the new service system based on the received response message.
7. A service processing apparatus, characterized in that, The device, used in legacy service systems, includes: The determination module is used to determine the running status of the new service system when a service request is received from the client through the first interface; The processing module is used to determine the second interface corresponding to the first interface in the new service system according to the interface mapping relationship between the old service system and the new service system when the new service system is in a normal state, forward the service request to the second interface, and obtain the service response obtained by the new service system in processing the service request through the second interface; When the new service system is in an abnormal state, the service request is processed to obtain a service response; The sending module is used to send the service response to the client; The device further includes: The detection module is used to: send detection messages to the new service system according to a preset detection period; and receive response messages from the new service system regarding the detection messages within the detection period. The determining module is specifically used to acquire the response message received within the most recent detection period, and determine the operating status of the new service system based on the received response message; or, to send a detection message to the new service system, receive the response message of the detection message fed back by the new service system, and determine the operating status of the new service system based on the received response message.
8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the service processing method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the service processing method as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the service processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data synchronization method, device and system
CN114900531A