Data service equipment switching method and device, equipment, medium and product

By determining whether to update data based on timestamps and data update records during the data service device switching process, and selecting the target switching device, the data consistency problem during device switching is solved, improving device switching efficiency and data reliability.

CN121333894APending Publication Date: 2026-01-13INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511387799.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-26
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

Existing data service equipment cannot guarantee data consistency during equipment switching, resulting in data loss and making it difficult to meet the needs of high-concurrency data read and write services.

Method used

By identifying the data service device to be switched and its candidate devices, determining whether to perform a data update based on timestamps and data update records, and selecting the target switching device to achieve device switching.

Benefits of technology

It improved the equipment switching efficiency of data service devices, avoided data loss, and enhanced data reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121333894A_ABST
    Figure CN121333894A_ABST
Patent Text Reader

Abstract

The invention discloses a data service equipment switching method and device, equipment, a medium and a product, which are applied to the field of financial science and technology. The method comprises the following steps: determining to-be-switched data service equipment according to an equipment switching operation request; determining each candidate switching data service device in communication connection with the to-be-switched data service device; determining a reference switching data service device according to a first timestamp corresponding to target storage data stored in each candidate switching data service device; determining a target data updating record meeting a recording time judgment condition from data recording equipment in which a plurality of data updating records are stored; according to the first timestamp of the target storage data and the second timestamp of the target data updating record, whether data updating is carried out on the reference switching data service equipment or not is judged, and target switching data service equipment is determined according to a judgment result; and determining the target switching data service equipment as the target data service equipment so as to realize equipment switching of the data service equipment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of finance, and in particular to a data service device switching method, device, equipment, medium and product. BACKGROUND

[0002] With the rapid growth of data storage, the demand for fast access to data is increasing, and the use of data service devices is becoming more widespread. The memory database that provides high-concurrency data read-write service has a growing amount of data to carry, which increases the data read-write pressure of the data service device.

[0003] The existing data service device mainly characterized by fast read-write has certain deficiencies in data reliability. That is, because the data service device performs asynchronous operation when synchronizing data, it may not guarantee that the data in the target switching data service device and the data in the data service device to be switched are completely consistent when the data service device switches. At this time, if the device switching operation is performed, the data that has not been synchronized in time will be missing and cannot be recovered by itself. Therefore, when there is a requirement for data read-write speed and data accuracy is required, the existing data service device cannot meet this situation.

[0004] Therefore, how to improve the efficiency of the data service device switching operation and avoid data loss during device switching to improve the reliability of the data in the data service device has become a technical problem that technicians need to solve. SUMMARY

[0005] The present application provides a data service device switching method, device, equipment, medium and product to improve the efficiency of the data service device switching and avoid data loss during device switching to improve the reliability of the data in the data service device.

[0006] According to an aspect of the present application, a data service device switching method is provided, comprising:

[0007] In response to a switching operation request for a data service device, determining a data service device to be switched;

[0008] Determining at least one candidate switching data service device in communication connection with the data service device to be switched;

[0009] According to the first timestamp corresponding to the target storage data stored in each of the candidate switching data service devices and satisfying the preset record time judgment condition, determining a reference switching data service device;

[0010] From the data record device storing a plurality of data update records, determine a target data update record satisfying the record time judgment condition;

[0011] determine whether to perform data update on the reference switching data service device according to the first timestamp of the target storage data and the second timestamp of the target data update record, and determine a target switching data service device according to a result of the determination;

[0012] determine the target switching data service device as a target data service device to realize device switching of the data service device.

[0013] According to another aspect of the present application, there is provided a data service device switching apparatus, comprising:

[0014] a request response module configured to determine a data service device to be switched in response to a switching operation request of a data service device;

[0015] a candidate device determination module configured to determine at least one candidate switching data service device in communication connection with the data service device to be switched;

[0016] a reference device determination module configured to determine a reference switching data service device according to a first timestamp corresponding to target storage data stored in each of the candidate switching data service devices and satisfying a preset record time judgment condition;

[0017] a data update record determination module configured to determine a target data update record satisfying the record time judgment condition from a data record device storing a plurality of data update records;

[0018] a target device determination module configured to determine whether to perform data update on the reference switching data service device according to the first timestamp of the target storage data and the second timestamp of the target data update record, and determine a target switching data service device according to a result of the determination;

[0019] a device switching module configured to determine the target switching data service device as a target data service device to realize device switching of the data service device.

[0020] According to another aspect of the present application, there is provided an electronic device, comprising:

[0021] at least one processor; and

[0022] a memory in communication connection with the at least one processor; wherein

[0023] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the data service device switching method according to any one of the embodiments of the present application.

[0024] According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the data service device switching method according to any of the embodiments of the present application when executed.

[0025] According to another aspect of the present application, there is provided a computer program product comprising a computer program for implementing the data service device switching method according to any of the embodiments of the present application when executed by a processor.

[0026] The technical solution of the embodiments of the present application comprises the following steps: in response to a switching operation request for a data service device, determining a data service device to be switched; determining at least one candidate switching data service device in communication connection with the data service device to be switched; determining a reference switching data service device according to a first timestamp corresponding to target stored data in each candidate switching data service device that satisfies a preset record time judgment condition; determining a target data update record that satisfies the record time judgment condition from a data record device storing a plurality of data update records; judging whether to perform data update on the reference switching data service device according to the first timestamp of the target stored data and a second timestamp of the target data update record, and determining a target switching data service device according to a judgment result; and determining the target switching data service device as a target data service device, so as to realize device switching of the data service device. The technical solution can determine the data service device to be switched and at least one candidate switching data service device of the data service device to be switched according to the switching operation request for the data service device. Further, the target switching data service device is determined according to the first timestamp of the target stored data in each candidate switching data service device and the second timestamp of the target update record in the data record device, and the target switching data service device is determined as the target data service device, which improves the efficiency of device switching operation of the data service device and avoids data loss during device switching, thereby improving the reliability of data in the data service device.

[0027] It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the present application or to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0029] Figure 1 is a flow chart of a data service device switching method according to an embodiment of the present application;

[0030] Figure 2 is a flow chart of a data service device switching method according to an embodiment of the present application;

[0031] Figure 3 is a structural schematic diagram of a data service device switching apparatus according to an embodiment of the present application;

[0032] Figure 4 is a structural schematic diagram of an electronic device implementing a data service device switching method according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts should fall within the scope of the present application.

[0034] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to the process, method, product, or device.

[0035] Embodiment One

[0036] Figure 1 A flow chart of a data service device switching method according to an embodiment of the present application is provided, and the embodiment can be applicable to the case that the data service device switching efficiency is low and data loss easily occurs, resulting in low reading data accuracy. The method can be executed by a data service device switching apparatus, which can be realized in the form of hardware and / or software, and can be configured in an electronic device. As shown in the figure, the method comprises: Figure 1

[0037] ​S110, in response to the switching operation request of the data service device, determining a data service device to be switched.

[0038] The data service device to be switched can be a data device that is providing data support services and is ready to perform a device switching operation. Specifically, the data service device to be switched can be a data device that is currently providing data support services and needs to perform a device switching operation due to a device performance index value or a device failure condition. The device performance index value can include processing speed, storage capacity, and network bandwidth. The device failure can include excessively high downtime frequency and slow response speed.

[0039] Specifically, the data service device to be switched can be determined by parsing the switching operation request of the data service device to obtain a request parsing result. According to the request parsing result, the data device that needs to perform the device switching operation in the switching operation request is determined.

[0040] Optionally, before determining the data service device to be switched in response to the switching operation request of the data service device, the method further includes: determining the data service state of each data service device according to the service data of at least one data service device obtained through monitoring; and determining the data service device to be switched that meets the preset device switching condition according to the data service state of each data service device.

[0041] The service data can be the running state data of the data service device when providing data support services, and can specifically include performance data, service quality data, and log data. The performance data can include storage space occupancy, network throughput, and disk read speed. The service quality data can include response time, device running time, and data transmission delay data. The log data can include event logs such as device start-stop exceptions, operation logs, and security logs. The data service state can be used to evaluate whether the data support services provided by the data service device are running as expected, and can specifically include normal service and abnormal service. For example, if the occupancy rate of the storage space in the data service device is more than 90%, the data service state of the data service device can be considered abnormal. For example, if abnormal device start-stop data is obtained from the log data, such as ten times of device start-stop data within a week, the data service state of the data service device can be considered abnormal. The present embodiment does not make specific limitations.

[0042] The device switching condition can be specifically that whether to perform the device switching operation is determined according to the data service state of the data service device, for example, if the data service state is service exception, the device switching operation can be performed; if the data service state is service normal, the device switching operation can not be performed. Specifically, the service data of each data service device can be acquired, and the data service state of the data service device can be determined according to the acquired service data. According to the data service state, the data service device to be switched that needs to perform the device switching operation is determined.

[0043] The technical solution can determine the data service device to be switched that meets the device switching operation condition according to the data service state of the data service device, so that when the data service device fails, the data service device to be switched can be accurately found, the efficiency of the device switching of the data service device is greatly improved, and the accuracy and stability of the data service of the data service device are further improved.

[0044] S120, at least one candidate switching data service device in communication connection with the data service device to be switched is determined.

[0045] The candidate switching data service device can be a data device that supports performing the device switching operation. For example, if it is determined that the data service device to be switched is device A, the data service devices in communication connection with device A can include device A1, device A2 and device A3, device A1, device A2 and device A3 can be determined as the candidate switching data service device, and the embodiment is not limited specifically.

[0046] S130, the reference switching data service device is determined according to the first time stamp corresponding to the target storage data stored in each candidate switching data service device and meeting the preset recording time judgment condition.

[0047] The recording time judgment condition can be specifically that the execution recording time of the stored data in the data service device is judged to determine the execution recording time of the last stored data in the data service device. The first time stamp can be the execution recording time of the last stored data when at least one data is stored in the data service device, for example, the candidate switching data service device can include data a and data b, the time stamp corresponding to data a can be ten thirty twenty-five seconds, and the time stamp corresponding to data b can be eleven twenty ten seconds, data b can be determined as the last stored data, and the execution recording time of storing data b can be determined as the first time stamp.

[0048] The reference switching data service device can be a data device used to perform data support service after performing the device switching operation. Specifically, the execution record time of the last stored data in each candidate switching data service device can be obtained, and the execution record time of the last stored data in each candidate switching data service device can be obtained. Further, the reference switching data service device used to perform the device switching operation can be determined from each candidate switching data service device according to the execution record time of the last stored data.

[0049] Optionally, the reference switching data service device is determined according to the first timestamp corresponding to the target stored data in each candidate switching data service device that meets the preset record time judgment condition, including: performing consistency comparison on the first timestamp corresponding to the target stored data in each candidate switching data service device that meets the preset record time judgment condition, to obtain a consistency comparison result of the first timestamp; and determining the reference switching data service device from each candidate switching data service device according to the consistency comparison result of the first timestamp.

[0050] Specifically, the execution record time of the last stored data in each candidate data service device can be obtained, and the obtained execution record time can be compared for consistency to obtain a consistency comparison result of the execution record time. Further, the data device used to perform the device switching operation and provide data support service can be determined from each candidate switching data service device according to the consistency comparison result of the execution record time. For example, the candidate switching data service device corresponding to the data service device to be switched A can include candidate device A1, candidate device A2 and candidate device A3, wherein the first timestamp corresponding to the last stored data in candidate device A1 can be 11:25:08, the first timestamp corresponding to the last stored data in candidate device A2 can be 10:38:10, and the first timestamp corresponding to the last stored data in candidate device A3 can be 11:00:01. Candidate device A1 can be determined as the reference candidate data service device, which is not limited in the embodiment.

[0051] The technical solution can determine the reference switching data service device according to the first timestamp corresponding to the target stored data in each candidate switching data service device. The device switching operation is completed by the reference data service device, which improves the efficiency of the device switching operation of the data service device and the accuracy of the device operation.

[0052] S140, determining a target data update record meeting a record time judgment condition from a data record device storing a plurality of data update records.

[0053] The data update record can be operation record data generated when a data update operation is performed in the data service device. The data record device can be a device for storing operation record data generated by a data update operation. For example, data c and data d can be stored in the data service device. If data c is modified to data c1, a data update record can be generated in the data record device to record the data update operation of modifying data c to data c1.

[0054] The record time judgment condition can be a record time corresponding to a plurality of data update records stored in the data record device, and the record time of the latest data update record in the data record device can be determined. Specifically, at least one data update operation record stored in the data record device can be determined as the latest data update operation record in the data record device according to the record time of the at least one data update operation record, and the latest data update record can be determined as the target data update record. For example, as described in the above example, data c and data d can be stored in the data service device. If data c is modified to data c1 and data d is modified to data d1, a first data update record can be generated in the data record device to record the data update operation of modifying data c to data c1, and a second data update record can be generated in the data record device to record the data update operation of modifying data d to data d1. The record time of the first data update record can be 12:58:10, and the record time of the second data update record can be 12:30:15. The first data update record can be determined as the target data update record.

[0055] S150, determining whether to perform a data update on the reference switching data service device according to the first timestamp of the target stored data and the second timestamp of the target data update record, and determining the target switching data service device according to the determination result.

[0056] The second timestamp can be the record time of the latest data update record in the at least one data update record stored in the data record device.

[0057] The target switching data service device can be a data device for providing data payment services after a device update operation. Specifically, the execution record time of the last stored data in the reference switching data service device and the record time of the latest updated data record in the data record device can be compared to obtain a record time comparison result. According to the record time comparison result, it is determined whether the data update operation result of the last stored data in the reference switching data service device and the latest data update record in the data record device is the same, and the target switching data service device is determined according to the result.

[0058] S160, determining the target switching data service device as the target data service device to realize device switching of the data service device.

[0059] Specifically, the target switching data device can be determined as a data device providing data support service, and device switching operation is performed with the data service device to be switched, and data service is performed through the target switching data device, thereby completing device switching of the data service device.

[0060] Optionally, after determining the target switching data service device as the target data service device to achieve device switching of the data service device, the method further comprises: when receiving a data update request for the target data service device, determining to-be-updated data and target updated data according to the data update request; sending the data update request and a corresponding request time stamp to a data recording device, so that the data recording device generates a data update record corresponding to a data update operation result according to the received data update request and the corresponding request time stamp, and stores the data update record and the corresponding request time stamp in association, and feeds back an operation success instruction to the target data service device; and performing the data update request to update the to-be-updated data to the target updated data according to the operation success instruction.

[0061] The to-be-updated data can be data stored in the data service device for data support service. The target updated data can be data updated according to the data update operation on the data stored in the data service device. For example, the data service device can store data e, and the data update operation can update the data e to e1, so the data e can be determined as the to-be-updated data, and the data e1 can be determined as the target updated data.

[0062] The data update request can be an operation request for updating the data stored in the data service device. The request time stamp can be an event of initiating the operation request for updating the stored data. Specifically, when receiving the operation request for updating the data stored in the data service device, the data to be updated in the data service device and the updated data are determined according to the operation request. Then, the operation request and the corresponding request initiation time are sent to the data recording device. The data recording device generates a data update record corresponding to the operation request according to the operation request, and stores the data update record and the corresponding time stamp in association. After successful storage, the data recording device sends prompt information of operation success to the data service device. According to the prompt information of operation success, the to-be-updated data is updated to the target updated data.

[0063] The technical scheme can send a data update operation request and a corresponding time stamp to a data recording device according to an update operation request for stored data in a data service device, to generate a data update record in the data recording device and store the data update record in association with the corresponding time stamp, and to further implement data update operation for the stored data in the data service device. Data loss during device switching is avoided, and the reliability of data in the data service device is improved.

[0064] The technical scheme of the embodiment of the application can determine a to-be-switched data service device in response to a switching operation request for a data service device, determine at least one candidate switched data service device in communication connection with the to-be-switched data service device, determine a reference switched data service device according to a first time stamp corresponding to target stored data in each candidate switched data service device that meets a preset record time judgment condition, determine a target data update record that meets the record time judgment condition from a data recording device storing a plurality of data update records, judge whether to perform data update on the reference switched data service device according to the first time stamp of the target stored data and the second time stamp of the target data update record, determine a target switched data service device according to a judgment result, and determine the target switched data service device as a target data service device to implement device switching of the data service device. The technical scheme can determine a to-be-switched data service device and at least one candidate switched data service device of the to-be-switched data service device according to a switching operation request for a data service device. Further, the target switched data service device is determined according to the first time stamp of the target stored data in each candidate switched data service device and the second time stamp of the target update record in the data recording device, the target switched data service device is determined as the target data service device, the efficiency of device switching operation of the data service device is improved, data loss during device switching is avoided, and the reliability of data in the data service device is improved.

[0065] Optionally, the target switched data service device is determined according to a judgment result of whether to perform data update on the reference switched data service device according to the first time stamp of the target stored data and the second time stamp of the target data update record, including: performing consistency comparison on the first time stamp of the target stored data and the second time stamp of the target data update record to obtain a consistency comparison result; if the consistency comparison result is time stamp consistent, no data update is needed for the reference switched data service device, and the reference switched data service device is determined as the target switched data service device.

[0066] Specifically, the first timestamp of the target stored data in the data service device and the second timestamp of the target data update record are compared for consistency, and a consistency comparison result of the timestamps is obtained, so as to determine whether the data update result corresponding to the target stored data in the data service device and the target data update record in the data record device is consistent, and when the consistency comparison result of the timestamps is consistent, it can be determined that the data update result of the reference switching data service device and the target data update record in the data record device is consistent, that is, it can be determined that the reference switching data service device and the target stored data in the to-be-switched data service device are consistent, and there is no need to perform data update operation on the reference switching data service device, and the reference switching data service device can be directly determined as the target switching data service device.

[0067] According to the technical scheme, the first timestamp of the target stored data and the second timestamp of the target data update record are compared for consistency, and when the consistency comparison result is that the timestamps are consistent, the reference switching data service device can be determined as the target switching data service device, so that data loss during device switching is avoided, and the reliability of data in the data service device is improved.

[0068] Embodiment two

[0069] Figure 2 A flowchart of a data service device switching method provided by the second embodiment of the present application is shown in the figure. Based on the above-mentioned embodiments, the data service device switching method is further optimized in the present embodiment.

[0070] Further, the step of "determining whether to perform data update on the reference switching data service device according to the first timestamp of the target stored data and the second timestamp of the target data update record, and determining the target switching data service device according to the determination result" is refined as "comparing the first timestamp of the target stored data and the second timestamp of the target data update record for consistency, and obtaining a consistency comparison result; if the consistency comparison result is that the timestamps are inconsistent, determining the reference data update record in the data record device that meets the data update condition according to the first timestamp of the target stored data; performing data update on the stored data in the reference switching data service device according to the reference data update record, and determining the updated reference switching data service device as the target switching data service device." to improve the generation mode of the user access permission list. As shown in the figure, the method comprises the following steps. Figure 2

[0071] S210, in response to a switching operation request of a data service device, determining a to-be-switched data service device.

[0072] S220, determining at least one candidate switching data service device in communication connection with the to-be-switched data service device. ​

[0073] S230, determining the reference data service device according to the first timestamp corresponding to the target stored data satisfying the preset recording time judgment condition stored in each candidate data service device.

[0074] S240, determining the target data update record satisfying the recording time judgment condition from the data record device storing a plurality of data update records.

[0075] S250, performing consistency comparison between the first timestamp of the target stored data and the second timestamp of the target data update record to obtain a consistency comparison result.

[0076] The target stored data can be the last stored data in at least one data stored in the data service device. The target data update record can be the latest data update record in at least one data update record stored in the data record. Specifically, the first timestamp of the target stored data can be compared with the second timestamp of the target update record for consistency comparison, and a consistency comparison result can be obtained. For example, the first timestamp of the target stored data can be timestamp M1, and the second timestamp of the target update record can be timestamp M2. The consistency comparison between timestamp M1 and timestamp M2 can be performed, and a consistency comparison result of the timestamp can be obtained.

[0077] S260, if the consistency comparison result is that the timestamps are inconsistent, determining the reference data update record satisfying the data update condition in the data record device according to the first timestamp of the target stored data.

[0078] The reference data update record can be a data update record stored in the data record device and not recorded in the data service device. Specifically, when the consistency comparison result of the timestamp is that the timestamps are inconsistent, the first timestamp and the second timestamp between the data update records stored can be determined as the reference data update record according to the first timestamp. For example, if the consistency comparison result is that timestamp M1 and timestamp M2 are inconsistent, it indicates that the data update operation corresponding to the data update record stored in the data record device has not been executed in the reference data service device, and further, the data update record between timestamp M1 and timestamp M2 can be determined as the reference data update record.

[0079] S270, performing data update on the stored data in the reference data service device according to the reference data update record, and determining the updated reference data service device as the target data service device.

[0080] Specifically, the data update operation corresponding to the obtained reference data update record can be used to update the corresponding stored data in the reference switching data service device, and the updated reference switching data service device is determined as the target switching data service device. For example, if there are two data update records between the timestamp M1 and the timestamp M2, such as data f is updated to f1 and data g is deleted, the two data update records can be determined as the reference data update records, and the data f in the reference switching data service device is updated to f1 and the data g is deleted according to the data update records. Further, the updated reference switching data service device can be determined as the target switching data service device, which is not limited in the embodiment.

[0081] In S280, the target switching data service device is determined as the target data service device to realize the device switching of the data service device.

[0082] The technical scheme of the embodiment of the application comprises the following steps: in response to a switching operation request of a data service device, a to-be-switched data service device is determined; at least one candidate switching data service device in communication connection with the to-be-switched data service device is determined; a reference switching data service device is determined according to a first timestamp corresponding to target stored data in each candidate switching data service device that satisfies a preset record time judgment condition; a target data update record satisfying the record time judgment condition is determined from a data record device storing a plurality of data update records; whether the reference switching data service device is updated is judged according to the first timestamp of the target stored data and the second timestamp of the target data update record, and the target switching data service device is determined according to the judgment result; and the target switching data service device is determined as the target data service device to realize the device switching of the data service device. The technical scheme can determine the to-be-switched data service device and at least one candidate switching data service device of the to-be-switched data service device according to the switching operation request of the data service device. Further, the target switching data service device is determined according to the first timestamp of the target stored data in each candidate switching data service device and the second timestamp of the target update record in the data record device, and the target switching data service device is determined as the target data service device, which improves the efficiency of the device switching operation of the data service device and avoids data loss during device switching, and improves the reliability of the data in the data service device.

[0083] Embodiment three

[0084] Figure 3A structural schematic diagram of a data service device switching device provided by Embodiment Three of the present application is shown. The data service device switching device provided by the present application can be used in the case where the data service device switching efficiency is low and data loss occurs easily, resulting in low reading data accuracy. The data service device switching device can be realized in the form of hardware and / or software, as shown in the accompanying drawings, and specifically includes a request response module 310, a candidate device determination module 320, a reference device determination module 330, a data update record determination module 340, a target device determination module 350, and a device switching module 360. Among them, Figure 3

[0085] The request response module 310 is configured to determine a data service device to be switched in response to a switching operation request of a data service device.

[0086] The candidate device determination module 320 is configured to determine at least one candidate switching data service device in communication connection with the data service device to be switched.

[0087] The reference device determination module 330 is configured to determine a reference switching data service device according to a first timestamp corresponding to target storage data stored in each of the candidate switching data service devices and satisfying a preset record time judgment condition.

[0088] The data update record determination module 340 is configured to determine a target data update record satisfying the record time judgment condition from a data record device storing a plurality of data update records.

[0089] The target device determination module 350 is configured to determine whether to update data of the reference switching data service device according to the first timestamp of the target storage data and the second timestamp of the target data update record, and determine a target switching data service device according to a determination result.

[0090] The device switching module 360 is configured to determine the target switching data service device as a target data service device to realize device switching of the data service device.

[0091] The present technical solution can determine a data service device to be switched and at least one candidate switching data service device of the data service device to be switched according to a switching operation request of the data service device. Further, the target switching data service device is determined according to a first timestamp of target storage data in each candidate switching data service device and a second timestamp of a target update record in a data record device, and the target switching data service device is determined as a target data service device, which improves the efficiency of device switching operation of the data service device and avoids data loss during device switching, thereby improving the reliability of data in the data service device. ​

[0092] Optionally, the target device determining module 350 is specifically configured to perform consistency comparison between the first timestamp of the target storage data and the second timestamp of the target data update record, to obtain a consistency comparison result;

[0093] If the consistency comparison result is that the timestamps are inconsistent, the reference data update record satisfying a data update condition in the data record device is determined according to the first timestamp of the target storage data;

[0094] According to the reference data update record, the storage data in the reference switching data service device is updated, and the updated reference switching data service device is determined as the target switching data service device.

[0095] Optionally, the target device determining module 350 is specifically configured to perform consistency comparison between the first timestamp of the target storage data and the second timestamp of the target data update record, to obtain a consistency comparison result;

[0096] If the consistency comparison result is that the timestamps are consistent, the reference switching data service device does not need to be updated, and the reference switching data service device is determined as the target switching data service device.

[0097] Optionally, the reference device determining module 330 is specifically configured to perform consistency comparison between the first timestamps corresponding to the target storage data stored in each of the candidate switching data service devices and satisfying a preset record time judgment condition, to obtain a consistency comparison result of the first timestamps;

[0098] According to the consistency comparison result of the first timestamps, the reference switching data service device is determined from each of the candidate switching data service devices.

[0099] Optionally, the apparatus further comprises:

[0100] The data update module is configured to, after the target switching data service device is determined as the target data service device to realize device switching of the data service device, when a data update request for the target data service device is received, determine to-be-updated data and target update data according to the data update request.

[0101] The data update request and the corresponding request timestamp are sent to the data record device, so that the data record device generates a data update record corresponding to the data update operation result according to the received data update request and the corresponding request timestamp, and stores the data update record and the corresponding request timestamp in association, and feeds back an operation success instruction to the target data service device.

[0102] According to the operation success instruction, the data update request is executed, and the to-be-updated data is updated to target updated data.

[0103] Optionally, the apparatus further comprises:

[0104] A to-be-switched device determination module is configured to, before determining the to-be-switched data service device in response to the switching operation request for the data service device, determine data service states of each data service device according to the monitored service data of at least one data service device.

[0105] According to the data service states, the to-be-switched data service device that meets a preset device switching condition is determined from the data service devices.

[0106] The data service device switching apparatus provided by the embodiments of the present application can execute the data service device switching method provided by any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.

[0107] Embodiment Four

[0108] Figure 4 A structural schematic diagram of an electronic device 40 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present application described and / or claimed in this document.

[0109] As shown in Figure 4 The electronic device 40 includes at least one processor 41, and a memory, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc., which are communicatively connected to the at least one processor 41, wherein the memory stores a computer program that can be executed by the at least one processor. The processor 41 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 42 or the computer program loaded from the storage unit 48 into the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44.

[0110] A plurality of components in the electronic device 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a magnetic disk, an optical disk, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0111] The processor 41 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 41 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 performs various methods and processes described above, such as the data service device handover method.

[0112] In some embodiments, the data service device handover method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded onto the RAM 43 and executed by the processor 41, one or more steps of the data service device handover method described above can be performed. Alternatively, in other embodiments, the processor 41 can be configured to perform the data service device handover method by any other appropriate means, such as by means of firmware.

[0113] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0114] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program, when executed, enables the functions / acts specified in the flowcharts and / or block diagrams to be implemented. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package and partially on a remote machine or entirely on a remote machine or server.

[0115] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0117] The systems and techniques described herein can be implemented in a computing system that includes a back end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front end component, e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described herein, or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0118] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, and solves the defects of large management difficulty and weak business scalability in traditional physical host and VPS (virtual private) service.

[0119] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be performed in parallel, in series, or in a different order, and the present disclosure is not limited herein as such.

[0120] The specific embodiments described above are not intended to limit the scope of the present disclosure. Those skilled in the art will understand that various modifications, combinations, sub-combinations, and alternatives can be made to the specific embodiments without departing from the spirit and principles of the present disclosure. Any further modifications, equivalents, alternatives, and / or improvements made to the specific embodiments described above are intended to fall within the scope of the present disclosure.

Claims

1. A data service device handover method, characterized by, The method comprises the following steps: in response to a switching operation request of a data service device, determining a data service device to be switched; determining at least one candidate switching data service device connected in communication with the data service device to be switched; determining a reference switching data service device according to a first timestamp corresponding to target stored data stored in each of the candidate switching data service devices and meeting a preset record time judgment condition; determining a target data update record meeting the record time judgment condition from a data record device storing a plurality of data update records; judging whether to perform data update on the reference switching data service device according to the first timestamp of the target stored data and a second timestamp of the target data update record, and determining a target switching data service device according to a judgment result; determining the target switching data service device as a target data service device to realize device switching of the data service device.

2. The method of claim 1, wherein, The method of judging whether to perform data update on the reference switching data service device according to the first timestamp of the target stored data and the second timestamp of the target data update record, and determining a target switching data service device according to a judgment result comprises the following steps: performing consistency comparison on the first timestamp of the target stored data and the second timestamp of the target data update record to obtain a consistency comparison result; if the consistency comparison result is that the timestamps are inconsistent, determining a reference data update record meeting a data update condition in the data record device according to the first timestamp of the target stored data; performing data update on stored data in the reference switching data service device according to the reference data update record, and determining the updated reference switching data service device as the target switching data service device.

3. The method of claim 1, wherein, The method of judging whether to perform data update on the reference switching data service device according to the first timestamp of the target stored data and the second timestamp of the target data update record, and determining a target switching data service device according to a judgment result comprises the following steps: performing consistency comparison on the first timestamp of the target stored data and the second timestamp of the target data update record to obtain a consistency comparison result; if the consistency comparison result is that the timestamps are consistent, no data update is needed on the reference switching data service device, and the reference switching data service device is determined as the target switching data service device.

4. The method of claim 1, wherein, The method of determining a reference switching data service device according to a first timestamp corresponding to target stored data stored in each of the candidate switching data service devices and meeting a preset record time judgment condition comprises the following steps: performing consistency comparison on the first timestamp corresponding to the target stored data stored in each of the candidate switching data service devices and meeting the preset record time judgment condition to obtain a consistency comparison result of the first timestamp; determining a reference switching data service device from each of the candidate switching data service devices according to the consistency comparison result of the first timestamp.

5. The method of claim 1, wherein, After the target switching data service device is determined as a target data service device to realize device switching of the data service device, the method further comprises the following steps: In response to the data update request, the target data service device is determined, and the target data service device is determined according to the data update request. The data update request and the corresponding request timestamp are sent to the data recording device, so that the data recording device generates a data update record corresponding to the data update operation result according to the received data update request and the corresponding request timestamp, and stores the data update record and the corresponding request timestamp in association, and feeds back an operation success instruction to the target data service device. According to the operation success instruction, the data update request is executed, and the target update data is updated.

6. The method of claim 1, wherein, Before the target data service device is determined in response to the switching operation request of the data service device, the method further comprises: According to the service data of at least one data service device monitored, the data service state of each data service device is determined. According to the data service state, the data service device that meets the preset device switching condition is determined.

7. A data service device switching apparatus characterized by comprising: Comprise: The request response module is used for determining the target data service device in response to the switching operation request of the data service device. The candidate device determination module is used for determining at least one candidate switching data service device connected in communication with the target data service device. The reference device determination module is used for determining the reference switching data service device according to the first timestamp corresponding to the target storage data stored in each candidate switching data service device and meeting the preset record time judgment condition. The data update record determination module is used for determining the target data update record meeting the record time judgment condition from the data recording device storing a plurality of data update records. The target device determination module is used for judging whether to update the reference switching data service device according to the first timestamp of the target storage data and the second timestamp of the target data update record, and determining the target switching data service device according to the judgment result. The device switching module is used for determining the target switching data service device as the target data service device to realize the device switching of the data service device.

8. An electronic device, comprising: The electronic device comprises: At least one processor; and The memory is in communication connection with the at least one processor; wherein The memory stores the computer program executed by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the data service device switching method in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions are used to enable the processor to execute the data service device switching method in any one of claims 1-6.

10. A computer program product, characterised in that, The computer program product comprises a computer program, and the computer program is executed by the processor to implement the data service device switching method according to any one of claims 1-6.