Digital wallet data synchronization system, digital wallet data synchronization method and equipment
By integrating data capture, conversion, verification and synchronization modules in the digital wallet data synchronization system, the problem of digital wallet data synchronization between different institutions under heterogeneous conditions is solved, efficient and reliable data synchronization is achieved, and the interoperability of the financial system is improved.
Patent Information
- Application Number
- CN202411477460.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-28
AI Technical Summary
Under heterogeneous conditions, it is difficult to synchronize the data of digital wallets between different institutions and systems.
It provides a digital wallet data synchronization system, including data capture module, data conversion module, synchronization verification and conflict resolution module, and data transmission and synchronization module. Through these modules, digital wallet data of different institutions are obtained, converted, verified and synchronized, ensuring efficient, reliable and secure synchronization of data between different institutions.
It has achieved efficient, reliable and secure synchronization of digital wallet information among different institutions, improved the interoperability and synergy efficiency of the financial system, and supported the wide application of legal digital currencies and other digital assets in a multi-subject ecosystem.
Smart Images

Figure CN119539800A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data synchronization technology and digital currency wallet system integration technology, and in particular to a digital wallet data synchronization system, a digital wallet data synchronization method and a device. Background Art
[0002] With the development of the information age, digital wallets have emerged, and various financial institutions, payment service providers, and multi-institutional collaboration scenarios in the regulatory environment of digital currency issuance and circulation have become increasingly common. Therefore, data update and synchronization of digital wallets under different technical architectures, database types, and business processes have become an important issue that needs to be solved urgently.
[0003] In the related technologies, the existing technologies mainly solve the problem of digital wallets using high availability technology to update and synchronize data in the system under homogeneous conditions. However, under heterogeneous conditions, it is difficult to synchronize the data of digital wallets between different institutions and systems. Summary of the invention
[0004] In view of this, the present invention provides a digital wallet data synchronization system, a digital wallet data synchronization method and a device to solve the problem that it is difficult to synchronize the data of digital wallets between different institutions and systems.
[0005] In a first aspect, the present invention provides a digital wallet data synchronization system, the system comprising: a data capture module, a data conversion module, a synchronization verification and conflict resolution module and a data transmission and synchronization module:
[0006] Data capture module, used to obtain transaction event data from digital wallet systems of different institutions;
[0007] A data conversion module is used to format the transaction event data to obtain digital wallet information in a target format, where the target format is the database format of the target institution;
[0008] A synchronous verification and conflict resolution module is used to detect data conflicts in digital wallet information. When data conflicts occur in digital wallet information, the data conflicts are processed according to a preset conflict resolution strategy to obtain updated digital wallet information.
[0009] The data transmission and synchronization module is used to send the updated digital wallet information to the target institution through the message queue service.
[0010] In the present invention, through a digital wallet data synchronization system including a data capture module, a data conversion module, a synchronization verification and conflict resolution module, and a data transmission and synchronization module, transaction event data of digital wallets of different institutions are obtained and converted into the data format of the target institution. When data conflicts occur, they are processed to ensure that the updated digital wallet information sent to the target institution is the latest digital wallet information, which solves the problem that data of digital wallets between different institutions and systems is difficult to synchronize, and realizes efficient, reliable and secure synchronization of digital wallet information between different institutions, greatly improving the interoperability and coordination efficiency of the financial system, and strongly supporting the widespread application of legal digital currencies and other digital assets in multi-subject ecosystems.
[0011] In an optional implementation, the data capture module uses change data capture or transaction log monitoring technology to obtain transaction update event data of the digital wallet system of the same institution.
[0012] In this method, the data capture module uses change data capture or transaction log monitoring technology to obtain transaction update event data from the digital wallet system of the same institution, thereby achieving timely and accurate acquisition of all data update records and ensuring that digital wallet information is not lost.
[0013] In an optional implementation, the data transmission and synchronization module is also used to send the digital wallet information to the target institution using a distributed transaction management mechanism.
[0014] In this way, the digital wallet information is sent to the target institution through the distributed transaction management mechanism adopted by the data transmission and synchronization module, ensuring the security and integrity of the digital wallet information transmitted between different institutions.
[0015] In an optional implementation, the data transmission and synchronization module uses a distributed transaction management mechanism to send the updated digital wallet information to the target institution, including:
[0016] The data transmission and synchronization module pushes the updated digital wallet information asynchronously one by one through the message middleware, distributes the updated digital wallet information to the server, and writes the distributed lock to the target institution through the server; updates the intermediate flow of the target institution, sends the updated digital wallet information to the target institution, and releases the distributed lock after the intermediate flow of the target institution is updated.
[0017] In this method, a distributed transaction management mechanism is adopted through the data transmission and synchronization module to ensure the consistency of digital wallet information across institutions, and to ensure that the digital wallet information sent to the target institution will ultimately remain consistent even when the network is unstable or the system fails.
[0018] In an optional implementation, the synchronization verification and conflict resolution module is used to generate a sequential number corresponding to the transaction event data; based on the sequential number, determine whether the transaction event before the sequential number has been processed; when the transaction event before the sequential number has not been processed, push and resend the transaction event data until the transaction event before the sequential number has been processed; after the transaction event before the sequential number has been processed, update the transaction event data, and release the distributed lock after the transaction event data is updated.
[0019] In this way, by implementing strict verification measures during the data synchronization process of digital wallet information and establishing conflict detection and resolution strategies, it is possible to deal with all possible concurrent update problems and ensure that the operation order of digital wallet information between multiple different institutions is correctly maintained.
[0020] In an optional embodiment, the system also includes a monitoring and auditing module, which is used to add a distributed lock to the database of a single target organization at preset intervals, and start a listening thread to detect abnormal data in the database of the target organization; when abnormal data occurs, the abnormal data is compensated and reported.
[0021] In this way, by designing a monitoring and auditing module, the synchronization status of digital wallet information can be tracked in real time, abnormal situations can be discovered and reported promptly, and detailed operation records can be provided for subsequent audit and compliance requirements. At the same time, system abnormalities can be discovered quickly, and transaction recovery processing can be performed as soon as possible to avoid an overall system avalanche caused by a certain push task.
[0022] In a second aspect, the present invention provides a digital wallet data synchronization method, which is applied to a digital wallet data synchronization system as in any one of the first aspects, and the method comprises:
[0023] Obtain transaction event data from digital wallet systems of different institutions;
[0024] Formatting the transaction event data to obtain digital wallet information in a target format, where the target format is the database format of the target institution;
[0025] Perform data conflict detection on the digital wallet information. When data conflict occurs in the digital wallet information, handle the data conflict according to a preset conflict resolution strategy to obtain updated digital wallet information;
[0026] The updated digital wallet information is sent to the target institution through the message queue service.
[0027] In the present invention, transaction event data of digital wallet systems of different institutions are obtained and formatted to obtain digital wallet information in a unified format. When data conflicts occur, they are processed according to conflict strategies, and the updated digital wallet information is transmitted to the target institution. This achieves real-time synchronization of digital wallet information between different institutions, solves the problem of consistency of digital wallet data between different institutions and systems in heterogeneous situations, and greatly improves the interoperability and collaborative efficiency of financial systems.
[0028] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the digital wallet data synchronization method of the second aspect by executing the computer instructions.
[0029] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the digital wallet data synchronization method of the second aspect.
[0030] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the digital wallet data synchronization method of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 1 is a schematic diagram of the structure of a digital wallet data synchronization system according to an embodiment of the present invention.
[0033] Figure 2 is a schematic diagram of a system for realizing cross-institution synchronization of digital wallet information according to an embodiment of the present invention.
[0034] Figure 3 1 is a flow chart of a digital wallet data synchronization method according to an embodiment of the present invention.
[0035] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0037] In the related technologies, the existing technologies mainly solve the problem of digital wallets using high availability technology to update and synchronize data in the system under homogeneous conditions. However, under heterogeneous conditions, it is difficult to synchronize the data of digital wallets between different institutions and systems.
[0038] In order to solve the above problems, a digital wallet data synchronization system is provided in an embodiment of the present invention, which is suitable for various financial institutions, payment service providers and multi-institutional collaboration scenarios under the regulatory environment of digital currency issuance and circulation. The digital wallet data synchronization system provided by the present invention can obtain transaction event data of digital wallets of different institutions through a digital wallet data synchronization system including a data capture module, a data conversion module, a synchronization verification and conflict resolution module and a data transmission and synchronization module, and convert the data into the data format of the target institution. When data conflicts occur, they are processed to ensure that the updated digital wallet information sent to the target institution is the latest digital wallet information, which solves the problem that the data of digital wallets between different institutions and systems is difficult to synchronize, and realizes efficient, reliable and secure synchronization of digital wallet information between different institutions, greatly improving the interoperability and coordination efficiency of the financial system, and strongly supporting the widespread application of legal digital currency and other digital assets in a multi-subject ecosystem.
[0039] According to an embodiment of the present invention, a digital wallet data synchronization system embodiment is provided. Figure 1 is a schematic diagram of the structure of a digital wallet data synchronization system according to an embodiment of the present invention. Figure 1 As shown, the digital wallet data synchronization system includes: a data capture module 1, a data conversion module 2, a synchronization verification and conflict resolution module 3 and a data transmission and synchronization module 4: the data capture module 1 is used to obtain transaction event data of digital wallet systems of different institutions; the data conversion module 2 is used to format the transaction event data to obtain digital wallet information in a target format, and the target format is the database format of the target institution; the synchronization verification and conflict resolution module 3 is used to detect data conflicts in the digital wallet information, and when data conflicts occur in the digital wallet information, the data conflicts are processed according to a preset conflict resolution strategy to obtain updated digital wallet information; the data transmission and synchronization module 4 is used to send the updated digital wallet information to the target institution through a message queue service.
[0040] In one implementation scenario, Figure 2 is a schematic diagram of a system for realizing cross-institution synchronization of digital wallet information according to an embodiment of the present invention, such as Figure 2 As shown, the system for realizing cross-institution synchronization of digital wallet information includes: a data capture module 1 is used to automatically monitor and capture any transaction update events of the source institution's digital wallet system by adopting change data capture (CDC) or transaction log monitoring technology, including but not limited to account balance changes, user identity information changes, transaction flow record generation, etc.
[0041] The data conversion module 2 is used to format and adapt the captured raw data to meet the different database structures and technical requirements of the target organization. Using heterogeneous data conversion technology, data from different source systems are converted into a unified standard or a data format that can be recognized and stored by a specific target system. For data wallet information from various scenarios, the data is converted into wallet information data in a unified format through a standardized cleaning module.
[0042] The data transmission and synchronization module 4 is used to ensure the security and integrity of data transmission between institutions through secure message queue services (such as AMQP, MQTT or other enterprise-level message middleware). At the same time, a distributed transaction management mechanism is used to ensure cross-institutional data consistency, ensuring that data is ultimately consistent even when the network is unstable or the system fails.
[0043] The synchronization verification and conflict resolution module 3 is used to implement strict verification measures during the data synchronization process and establish a set of conflict detection and resolution strategies to deal with possible concurrent update problems and ensure that the operation sequence between multiple institutions is correctly maintained.
[0044] The system also includes monitoring and auditing functions: a comprehensive logging and monitoring system is designed to track data synchronization status in real time, detect and report abnormal situations in a timely manner, and provide detailed operation records for subsequent audit and compliance requirements.
[0045] In an optional implementation, the data capture module 1 uses change data capture or transaction log monitoring technology to obtain transaction update event data of the digital wallet system of the same institution.
[0046] In one example, the data capture module 1 automatically monitors and captures any transaction update events of the source institution's digital wallet system by using change data capture (CDC) or transaction log monitoring technology, including but not limited to account balance changes, user identity information changes, transaction flow record generation, etc. The purpose of data capture is to obtain all data update records in a timely and accurate manner to ensure that they are not lost. The latest digital wallet information is obtained from the digital wallet management agency through the standard API, and the relevant data is saved in a persistent form for subsequent data push processing.
[0047] In this method, the data capture module uses change data capture or transaction log monitoring technology to obtain transaction update event data from the digital wallet system of the same institution, thereby achieving timely and accurate acquisition of all data update records and ensuring that digital wallet information is not lost.
[0048] In an optional implementation, the data transmission and synchronization module 4 is also used to send the digital wallet information to the target institution using a distributed transaction management mechanism.
[0049] In this way, the digital wallet information is sent to the target institution through the distributed transaction management mechanism adopted by the data transmission and synchronization module, ensuring the security and integrity of the digital wallet information transmitted between different institutions.
[0050] In an optional implementation, the data transmission and synchronization module 4 adopts a distributed transaction management mechanism to send the updated digital wallet information to the target institution, including: the data transmission and synchronization module 4 asynchronously pushes the updated digital wallet information piece by piece through the message middleware, distributes the updated digital wallet information to the server, and writes a distributed lock to the target institution through the server; updates the intermediate flow of the target institution, sends the updated digital wallet information to the target institution, and releases the distributed lock after the intermediate flow of the target institution is updated.
[0051] In one example, the data transmission and synchronization module 4 ensures the security and integrity of data transmission between institutions through a secure message queue service (such as AMQP, MQTT or other enterprise-level message middleware, and the message middleware is not limited in the present invention). At the same time, a distributed transaction management mechanism is used to ensure cross-institutional data consistency, and data consistency can be ensured even when the network is unstable or the system fails.
[0052] While the source institution obtains the information change, it responds to the client in real time to return the latest data. The intermediate flow is updated according to the registration data of the target institution, and the updated information is distributed to different servers through the message middleware. The server first caches the digital wallet and the target institution that need to be operated or writes the lock data to the configuration center to realize the distributed lock. Among them, the distributed lock can be realized by ZOOKEEPER, and the method of realizing the distributed lock is not limited in the present invention. Then check the intermediate flow of the institution, and release the distributed lock after the update is completed. When the network is unstable or the system fails, the system fails to receive the data message or fails to process it. The retransmission mechanism of MQ is used to realize the first-time processing after the system recovers.
[0053] In this method, a distributed transaction management mechanism is adopted through the data transmission and synchronization module to ensure the consistency of digital wallet information across institutions, and to ensure that the digital wallet information sent to the target institution will ultimately remain consistent even when the network is unstable or the system fails.
[0054] In an optional implementation, the synchronization verification and conflict resolution module 3 is used to generate a sequential number corresponding to the transaction event data; based on the sequential number, determine whether the transaction event before the sequential number has been processed; when the transaction event before the sequential number has not been processed, push and resend the transaction event data until the transaction event before the sequential number has been processed; after the transaction event before the sequential number has been processed, update the transaction event data, and release the distributed lock after the transaction event data is updated.
[0055] In one example, the synchronization verification and conflict resolution mechanism may include: implementing strict verification measures during the data synchronization process, and establishing a set of conflict detection and resolution strategies to deal with possible concurrent update problems and ensure that the operation sequence between multiple institutions is correctly maintained.
[0056] Exemplarily, the message middleware pushes asynchronously one by one, and carries a sequence number when pushing. The sequence number is generated according to a fixed rule to ensure that the sequence number does not change each time it is triggered or resynchronized. Among them, asynchronous push uses the asynchronous thread pool that comes with the program when it starts to realize asynchronous processing of push.
[0057] When executing data update, first check the intermediate flow (through the intermediate flow table to ensure that the push will not be processed repeatedly) to see if the data before the sequence number has been processed. If the processing is completed, update the data and release the distributed lock after the update is completed. If the task before the target intermediate flow is not completed, push the data again until the processing is successful.
[0058] In this way, by implementing strict verification measures during the data synchronization process of digital wallet information and establishing conflict detection and resolution strategies, it is possible to deal with all possible concurrent update problems and ensure that the operation order of digital wallet information between multiple different institutions is correctly maintained.
[0059] In an optional embodiment, the system also includes a monitoring and auditing module, which is used to add a distributed lock to the database of a single target organization at preset intervals, and start a listening thread to detect abnormal data in the database of the target organization; when abnormal data occurs, the abnormal data is compensated and reported.
[0060] In one example, the monitoring and auditing functions may include: a comprehensive logging and monitoring system is designed to track data synchronization status in real time, detect and report abnormal situations in a timely manner, and provide detailed operation records for subsequent audits and compliance requirements. Combined with the internal monitoring thread of the program, a distributed lock is added globally for a single target organization at preset intervals. Only one monitoring thread is started for all services. This thread monitors the abnormal data table in real time, compensates for the abnormal data, and pushes the relevant data to the monitoring platform. The platform pushes it to the instant messaging tool to realize the first-time discovery of problems. The function of monitoring and auditing is to quickly discover system abnormalities, and to recover transactions in the first time to avoid the avalanche of the entire system due to a certain push task.
[0061] In this way, by designing a monitoring and auditing module, the synchronization status of digital wallet information can be tracked in real time, abnormal situations can be discovered and reported promptly, and detailed operation records can be provided for subsequent audit and compliance requirements. At the same time, system abnormalities can be discovered quickly, and transaction recovery processing can be performed as soon as possible to avoid an overall system avalanche caused by a certain push task.
[0062] The digital wallet data synchronization system provided in this embodiment obtains transaction event data of digital wallets of different institutions, converts it into the data format of the target institution, and handles data conflicts when they occur, thereby ensuring that the updated digital wallet information sent to the target institution is the latest digital wallet information. The problem that data of digital wallets between different institutions and systems is difficult to synchronize, and efficient, reliable and secure synchronization of digital wallet information between different institutions is achieved, which greatly improves the interoperability and coordination efficiency of the financial system and strongly supports the widespread application of legal digital currencies and other digital assets in multi-subject ecosystems.
[0063] In this embodiment, a digital wallet data synchronization method is provided, which can be used in the above-mentioned digital wallet data synchronization system. Figure 3 is a flow chart of a digital wallet data synchronization method according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0064] Step S301, obtaining transaction event data of digital wallet systems of different institutions.
[0065] In one example, the source institution deploys a data capture component to obtain all relevant wallet account information changes by connecting to the digital wallet system's API interface or directly reading the database transaction log. When the data is obtained, it is saved in the database as soon as possible and the transaction is submitted to ensure that the data is captured and processed.
[0066] Step S302, formatting the transaction event data to obtain digital wallet information in a target format, where the target format is the database format of the target institution.
[0067] In one example, data preprocessing and conversion logic is implemented to convert the captured source data into a standard format that conforms to the target institution's database structure. The data is extracted from the database to the corresponding application service through a program, and then the basic information, balance information, and transaction information are processed through different digital wallet features, and the data is rewritten into the database and saved in a standard table format.
[0068] Step S303, performing data conflict detection on the digital wallet information, and when data conflict occurs in the digital wallet information, processing the data conflict according to a preset conflict resolution strategy to obtain updated digital wallet information.
[0069] In one example, after receiving the synchronization request, the target organization performs data landing operations through a dedicated synchronization processor and initiates a local database transaction when necessary to maintain data consistency.
[0070] Specifically, if a potential data conflict is detected during the synchronization process, the conflict is resolved according to a predefined conflict resolution strategy (eg, priority rules, timestamp sorting, etc.), and the corresponding record is updated.
[0071] If the second transaction occurs in the data wallet before the first data wallet information is updated, such as in the case of batch payment, it will be updated in order according to the fixed sequence number generated at the time of each transaction, and each institution will process it separately. If one institution processes slowly or does not respond, it will not affect the latest data processing of other institutions.
[0072] After the synchronization is completed, the system will automatically generate a synchronization completion notification and record the synchronization results in the audit log for later verification and supervision.
[0073] Step S304, sending the updated digital wallet information to the target institution through the message queue service.
[0074] In one example, the converted data is sent to the target organization using a message queue service, and encrypted transmission can be supported during the process to ensure data privacy and security. The digital wallet information is sent to different target organizations through network transmission and waits for the other party to return for processing.
[0075] In one implementation scenario, the server side obtains information changes and responds to the client in real time to return the latest data. The registration data updates the intermediate flow, and is pushed asynchronously one by one through the message middleware. The push carries the sequence number, which is generated according to fixed rules to ensure that the sequence number does not change when resynchronizing. The update information is distributed to different servers. After the server receives the request, it will process it step by step. First, the digital wallet that needs to be operated is cached or the configuration center writes the lock data to implement the distributed lock, and then the intermediate flow is checked to see if the data before the sequence number has been processed. If the processing is completed, the data is updated and the distributed lock is released after the update is completed. When the network is unstable or the system fails, retry at a short interval. If it is still unsuccessful after the retry, write the abnormal data table and release the distributed lock. Combined with the listening thread inside the program, a distributed lock is added globally at an interval. Only one listening thread is started for all services. The thread monitors the abnormal data table in real time and compensates for the abnormal data.
[0076] The digital wallet data synchronization method provided in this embodiment obtains transaction event data from digital wallet systems of different institutions, formats the transaction event data, and converts it into digital wallet information in a unified format. When data conflicts occur, they are handled according to the conflict strategy, and the updated digital wallet information is transmitted to the target institution, thereby realizing real-time synchronization of digital wallet information between different institutions, solving the problem of consistency of digital wallet data between different institutions and systems in heterogeneous situations, and greatly improving the interoperability and collaborative efficiency of financial systems.
[0077] The embodiment of the present invention also provides a computer device for executing the above Figure 3 The digital wallet data synchronization method shown.
[0078] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.
[0079] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0080] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0081] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0082] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0083] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0084] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0085] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0086] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0087] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A digital wallet data synchronization system, characterized in that: The system includes: a data capture module, a data conversion module, a synchronization verification and conflict resolution module and a data transmission and synchronization module: The data capture module is used to obtain transaction event data of digital wallet systems of different institutions; The data conversion module is used to format the transaction event data to obtain digital wallet information in a target format, where the target format is the data format of the target institution; The synchronization verification and conflict resolution module is used to perform data conflict detection on the digital wallet information. When a data conflict occurs in the digital wallet information, the data conflict is processed according to a preset conflict resolution strategy to obtain updated digital wallet information; The data transmission and synchronization module is used to send the updated digital wallet information to the target institution through a message queue service.
2. The system according to claim 1, characterized in that The data capture module uses change data capture or transaction log monitoring technology to obtain transaction update event data of the digital wallet system of the same institution.
3. The system according to claim 1, characterized in that The data transmission and synchronization module is also used to adopt a distributed transaction management mechanism to send the digital wallet information to the target institution.
4. The system according to claim 3, characterized in that The data transmission and synchronization module adopts a distributed transaction management mechanism to send the updated digital wallet information to the target institution, including: The data transmission and synchronization module asynchronously pushes the updated digital wallet information piece by piece through the message middleware, distributes the updated digital wallet information to the server, and writes a distributed lock to the target organization through the server; updates the intermediate flow of the target organization, sends the updated digital wallet information to the target organization, and releases the distributed lock after the intermediate flow of the target organization is updated.
5. The system according to claim 4, characterized in that The synchronization verification and conflict resolution module is used to generate a sequence number corresponding to the transaction event data; based on the sequence number, determine whether the transaction event before the sequence number has been processed; when the transaction event before the sequence number has not been processed, push and resend the transaction event data until the transaction event before the sequence number is processed; after the transaction event before the sequence number is processed, the transaction event data is updated, and the distributed lock is released after the transaction event data is updated.
6. The system according to claim 4, characterized in that The system also includes a monitoring and auditing module, which is used to add the distributed lock to the database of a single target organization at preset intervals, and start a listening thread to detect abnormal data in the database of the target organization; when abnormal data occurs, the abnormal data is compensated and reported.
7. A digital wallet data synchronization method, characterized in that: Applied to the digital wallet data synchronization system according to any one of claims 1 to 6, the method comprises: Obtain transaction event data from digital wallet systems of different institutions; Formatting the transaction event data to obtain digital wallet information in a target format, where the target format is a database format of a target institution; Performing data conflict detection on the digital wallet information, and when data conflict occurs in the digital wallet information, processing the data conflict according to a preset conflict resolution strategy to obtain updated digital wallet information; The updated digital wallet information is sent to the target institution via a message queue service.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the digital wallet data synchronization method according to claim 7 by executing the computer instructions.
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 a computer to execute the digital wallet data synchronization method according to claim 7.
10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the digital wallet data synchronization method according to claim 7.