Business data updating method and device, equipment and storage medium
By listening to the update events of the basic business data and determining the update priority based on the call dependency relationship, the efficient update of the business data system during data update is achieved, and the problem of inefficiency of traditional update methods is solved.
Patent Information
- Application Number
- CN202411454070.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2025-02-11
AI Technical Summary
Traditional user information update methods are cumbersome and inefficient, making it difficult to meet changing business needs.
By listening to the data update event of the basic business data, the target business data and the target business module are determined, the update priority is determined based on the call dependencies between the target business modules, and the target business module is controlled to call the data update interface in turn for module update.
It improves the update efficiency of the business data system when data is updated, ensures that the business module can respond to the update of basic business data in a timely manner, avoid data out of synchronization, and improves the accuracy and consistency of the updated data.
Smart Images

Figure CN119415532A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data updating technology, and in particular to a business data updating method, device, equipment and storage medium. Background Art
[0002] In the process of software development, we often face such a situation: different business modules usually have their own independent functions and data storage requirements, such as administrator business module, blacklist business module and permission business module. The administrator business may need user information to make management decisions and operations; the blacklist business relies on user information to judge and deal with illegal users; the permission business also needs to determine the user's access rights based on user information.
[0003] At present, when the basic information of user information changes, the traditional approach is to call each business module related to user information in turn to update the user information stored therein. However, this update method is not only cumbersome, but also inefficient and difficult to meet the ever-changing business needs. Summary of the invention
[0004] The present invention provides a business data updating method, device, equipment and storage medium to improve the updating efficiency of a business data system during data updating and improve the scalability of the business data system.
[0005] According to one aspect of the present invention, a service data updating method is provided, the method comprising:
[0006] Monitoring data update events of basic business data, determining the basic business data for which the data update event occurs as target business data, and determining a business module that has a mapping relationship with the target business data as a target business module; wherein the mapping relationship is determined according to a data dependency relationship between the basic business data and the business module;
[0007] Determine the update priority of the target business module according to the call dependency relationship between the target business modules; wherein the call dependency relationship is used to characterize the data support relationship between the target business modules;
[0008] Based on the update priority of the target service module, at least one target service module is controlled to call the data update interface in sequence to perform module update.
[0009] According to another aspect of the present invention, there is provided a service data updating device, the device comprising:
[0010] A data monitoring module is used to monitor data update events of basic business data, determine the basic business data where the data update event occurs as target business data, and determine the business module that has a mapping relationship with the target business data as the target business module; wherein the mapping relationship is determined according to the data dependency relationship between the basic business data and the business module;
[0011] A priority determination module, used to determine the update priority of the target business module according to the call dependency relationship between the target business modules; wherein the call dependency relationship is used to characterize the data support relationship between the target business modules;
[0012] The update module is used to control at least one target business module to call the data update interface in sequence to perform module update based on the update priority of the target business module.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service data updating method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service data updating method described in any embodiment of the present invention when executed.
[0018] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is processed and executed, the service data updating method according to any embodiment of the present invention is implemented.
[0019] The technical solution of the embodiment of the present invention determines the target business data and the target business module by monitoring the data update events of the basic business data, and makes different target business modules call the standard data update interface. According to the update priority of different business modules, the target business module is updated at one time, thereby ensuring that the business module can respond to the update of the basic business data in a timely manner, avoiding data asynchrony between the basic business data and the business module, improving the update efficiency of the data update and the accuracy of the updated data, and ensuring the data consistency between the business modules.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flowchart of a service data updating method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 is a flow chart of a service data updating method provided according to Embodiment 2 of the present invention;
[0024] Figure 3 is a flowchart of a service data updating method provided according to Embodiment 3 of the present invention;
[0025] Figure 4 is a structural diagram of a service data updating device provided according to a fourth embodiment of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the service data updating method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a method for updating business data is provided for the first embodiment of the present invention. This embodiment is applicable to the case where basic business data is updated and business modules are updated synchronously. The method can be executed by a business data updating device. The business data updating device can be implemented in the form of hardware and / or software. The business data updating device can be configured in various general computing devices, such as client devices or server devices. Figure 1 As shown, the method includes:
[0031] S110 , monitoring data update events of basic business data, determining the basic business data on which the data update event occurs as target business data, and determining a business module that has a mapping relationship with the target business data as a target business module.
[0032] Among them, the basic business data can be the basic data for the business module to implement its own business logic. It should be noted that the business logic of the business module can refer to the business functions to be implemented by the business module, and the business logic of each business module is different. Optionally, in an embodiment of the present invention, the basic business data may include course information data such as course subjects, course start time, course instructors, and course outline information.
[0033] In an embodiment of the present invention, when the basic business data is updated, the business module not only needs to synchronously update the basic business data stored in itself, but also needs to update its own business logic based on the updated basic business data. For example, taking the online education platform system as an example, if the basic business data represented by the course information changes, the teacher teaching module will update the basic business data, and synchronously update the teaching teacher information corresponding to the changed course information according to the changes in the course information, and send notifications to the relevant teaching teachers involved in the changes in the course information.
[0034] Optionally, in an embodiment of the present invention, basic business data may be stored in a business database, and whether a data update event occurs in the basic business data may be determined by monitoring whether data update occurs in the business database. In other words, a data update event may refer to a situation in which data update occurs in the business database.
[0035] The mapping relationship can be determined based on the data dependency between the basic business data and the business module, that is, a mapping relationship between the business module that references the basic business data and the basic business data is established. Optionally, one basic business data can be referenced by multiple business modules, and one business module can also reference multiple basic business data.
[0036] Specifically, by monitoring data update events of basic business data, the basic business data for which the data update event occurs is determined as target business data, thereby determining a target business module that has a module update requirement due to changes in the target business data.
[0037] S120: Determine the update priority of the target business module according to the call dependency relationship between the target business modules.
[0038] The call dependency relationship can be used to characterize the data support relationship between target business modules, that is, the realization of the business logic of a target business module itself requires the business data generated by another target business module. Optionally, the call dependency relationship can include a calling relationship and a called relationship.
[0039] It should be noted that, in an embodiment of the present invention, the update priority can be used to characterize the module update order between target business modules that have call dependencies, and on the other hand, it can also be used to indicate the degree of coupling between a target business module and other target business modules. The greater the update priority of a target business module, the smaller the degree of coupling with other target business modules.
[0040] S130. Based on the update priority of the target service module, control at least one target service module to call the data update interface in sequence to perform module update.
[0041] The data update interface integrates a data update method that complies with the business logic of each business module.
[0042] Specifically, at least one target service module may be controlled to call the data update interface in sequence to perform module update on itself according to the update priority of the target service module.
[0043] Optionally, in an embodiment of the present invention, controlling at least one target business module to call a data update interface in sequence to perform module update also includes: according to the event type of the data update event, controlling the target business module to call a target data update method in the data update interface corresponding to the event type to perform module update.
[0044] The event type is used to characterize the update type of the data update event, for example, a new update type, a deletion update type, and a modification update type.
[0045] It should be noted that the target data update method has the module identification of the corresponding business module, and the target business module can call the target data update method corresponding to the event type in the data update interface according to its own module identification.
[0046] By calling the target data update method corresponding to the event type of the data update event, the update efficiency of the business module is further improved.
[0047] The technical solution of the embodiment of the present invention determines the target business data and the target business module by monitoring the data update events of the basic business data, and makes different target business modules call the standard data update interface. According to the update priority of different business modules, the target business module is updated at one time, thereby ensuring that the business module can respond to the update of the basic business data in a timely manner, avoiding data asynchrony between the basic business data and the business module, improving the update efficiency of the data update and the accuracy of the updated data, and ensuring the data consistency between the business modules.
[0048] Embodiment 2
[0049] Figure 2 This is a flowchart of a business data update method provided in the second embodiment of the present invention. This embodiment further refines the above embodiment and provides specific steps for determining the update priority of the target business module according to the call dependency relationship between the target business modules. It should be noted that for the undetailed parts of the embodiment of the present invention, please refer to the relevant descriptions of other embodiments, which will not be repeated here. Figure 2 As shown, the method includes:
[0050] S210 , monitoring data update events of basic business data, determining the basic business data on which the data update event occurs as target business data, and determining a business module that has a mapping relationship with the target business data as a target business module.
[0051] S220: Traverse the target business modules to determine the calling relationship and called relationship of each target business module.
[0052] S230, determining the update priority of the target business module according to the calling relationship and the called relationship of the target business module. Among the target business modules with a calling dependency relationship, the update priority of the target business module with a calling dependency relationship being a called relationship is greater than the update priority of the target business module with a calling dependency relationship being a calling relationship.
[0053] S240 . Based on the update priority of the target service module, control at least one target service module to call the data update interface in sequence to perform module update.
[0054] In the embodiment of the present invention, different business modules may be coupled to each other to different degrees, that is, when the business information or business data in any business module changes, it will affect the business information or business data of other business modules. For example, taking the student course selection module and the teacher teaching module in the online education platform system as an example, the student course selection module will eventually generate course selection information and send it to the teacher teaching module, so that each teacher in the teacher teaching module receives the student information of the class he teaches. Therefore, when the basic business information of the course information (class opening time information, course type information, etc.) changes, it will inevitably affect the students' course selection plan, and then the course selection information generated by the student course selection module also needs to be changed. Therefore, when there is a change in the business data in the student course selection module, it will affect the teacher teaching module, that is, there is a call dependency relationship between the student course selection module and the teacher teaching module, the teacher teaching module calls the student course selection module, and the student course selection is called by the teacher teaching module.
[0055] Therefore, in an embodiment of the present invention, it is necessary to traverse the calling dependency relationships of the target business modules to determine the calling relationship and the called relationship of each target business module. Among the target business modules with calling dependencies, the update priority of the target business module whose calling dependency is a called relationship can be higher than the update priority of the target business module whose calling dependency is a calling relationship.
[0056] The technical solution of the embodiment of the present invention, by determining the update priority of each target business module, avoids data conflicts between different business modules after subsequent business modules are updated, and improves the accuracy and consistency of updated data.
[0057] Embodiment 3
[0058] Figure 3This is a flowchart of a service data update method provided in Embodiment 3 of the present invention. This embodiment further refines the above embodiment and provides specific steps for controlling at least one target service module to call the data update interface in sequence to perform module update based on the update priority of the target service module. It should be noted that for the undetailed parts of the embodiment of the present invention, please refer to the relevant descriptions of other embodiments, which will not be repeated here. Figure 3 As shown, the method includes:
[0059] S310 , monitoring data update events of basic business data, determining the basic business data on which the data update event occurs as target business data, and determining a business module that has a mapping relationship with the target business data as a target business module.
[0060] S320: Determine the update priority of the target business module according to the call dependency relationship between the target business modules.
[0061] S330. Establish a corresponding number of update threads according to the number of target business modules.
[0062] S340 . For target business modules with call dependency relationships, update threads are allocated in sequence according to the update priorities of the target business modules, and data update interfaces are called to perform module updates.
[0063] S350: For target business modules that do not have calling dependency relationships, update threads are simultaneously allocated to the target business modules, and data update interfaces are called to perform asynchronous module updates.
[0064] In an embodiment of the present invention, in order to improve the update efficiency of the business module and the accuracy of the business data after the module is updated, a corresponding number of update threads can be pre-established according to the number of target business modules. One update thread is only used to update one business module and is destroyed to release memory after the update thread completes the update of the business module.
[0065] For target business modules that have call dependencies with each other, update threads can be assigned to call data update interfaces to update target business modules in turn according to the update priorities of the target business modules, so as to ensure the accuracy and consistency of data between the updated business modules. For target business modules that do not have call dependencies, that is, the target business modules do not call other target business modules, nor are they called by other target business modules, update threads can be assigned to such target business modules at the same time, and the data update interface can be called to perform asynchronous module updates, so as to improve the update efficiency of module updates.
[0066] Optionally, in an embodiment of the present invention, the generation process of the data update interface can be: rewrite at least one basic data update method according to the business logic of each business module using the basic business data, and generate a target data update method corresponding to the business module; integrate the rewritten data update method into a data update interface.
[0067] Among them, the target data update method may refer to a data update method that complies with the business logic of each business basic data used in the business module; the basic data update method may include a method for adding data, a method for deleting data, and a method for modifying data.
[0068] In an embodiment of the present invention, different business modules have different business logics, and have corresponding processing logics for the processing of basic business data. For example, taking the online education platform system as an example, the student course selection module in the online education platform system will provide course information to students for them to choose courses, and finally generate course selection list information for each student and student selection list information for each course. The teacher teaching module in the online education platform system will generate teaching list information based on the course teaching teacher information and syllabus information of each course, and send the corresponding course information to the teaching teacher of the corresponding course, so that the teacher can make teaching arrangements in advance. When the course information of a course changes, the course information of the course in the teaching list information needs to be updated.
[0069] Therefore, in the embodiment of the present invention, for each business module, the business logic using the basic business data of course information can be used to rewrite at least one basic data update method, generate a target data update method corresponding to the business module, and integrate the rewritten data update method into a data update interface. Optionally, the target data update method can be in the form of a virtual function or an overloaded function.
[0070] By defining a standard data update interface, the business modules are updated, so that different business modules use their own unique data update methods to update the modules, making the division of labor between the business modules clearer, reducing the complexity and confusion in the module update process, and by calling the standard data interface to update the modules, the data consistency between the business modules is ensured.
[0071] It should be noted that the data update method adopted in the present invention divides the data update process into three levels, namely, the basic business data layer, the monitoring basic business data layer and the data update interface layer. Each level does not affect each other and is only responsible for its own dimensional level. The basic business data layer is only used to store basic business data, the monitoring basic business data layer is only used to monitor the update of basic business data, and the data update interface layer is responsible for responding to the update of basic business data to perform module updates. When the business logic of the business module changes, only the corresponding target update method in the data update interface needs to be modified without affecting the basic business data layer. The monitoring basic business data layer improves the scalability and stability of subsequent business systems.
[0072] The technical solution of the embodiment of the present invention fully utilizes system resources, avoids waste of resources, and improves update efficiency in high-concurrency scenarios by allocating different update threads to update tasks of different business modules.
[0073] Embodiment 4
[0074] Figure 4 A schematic diagram of the structure of a service data updating device provided in Embodiment 4 of the present invention.
[0075] like Figure 4 As shown, the device comprises:
[0076] The data monitoring module 410 is used to monitor the data update events of the basic business data, determine the basic business data for which the data update event occurs as the target business data, and determine the business module that has a mapping relationship with the target business data as the target business module; wherein the mapping relationship is determined according to the data dependency relationship between the basic business data and the business module;
[0077] The priority determination module 420 is used to determine the update priority of the target business module according to the call dependency relationship between the target business modules; wherein the call dependency relationship is used to characterize the data support relationship between the target business modules;
[0078] The updating module 430 is used to control at least one target business module to call the data updating interface in sequence to perform module updating based on the updating priority of the target business module.
[0079] The technical solution of the embodiment of the present invention determines the target business data and the target business module by monitoring the data update events of the basic business data, and makes different target business modules call the standard data update interface. According to the update priority of different business modules, the target business module is updated at one time, thereby ensuring that the business module can respond to the update of the basic business data in a timely manner, avoiding data asynchrony between the basic business data and the business module, improving the update efficiency of the data update and the accuracy of the updated data, and ensuring the data consistency between the business modules.
[0080] Optionally, the priority determination module 420 may be specifically configured to:
[0081] A relationship determination unit, used to traverse the target business modules and determine the calling relationship and the called relationship of each target business module;
[0082] A priority determination unit is used to determine the update priority of the target business module according to the calling relationship and the called relationship of the target business module; wherein, between target business modules with a calling dependency relationship, the update priority of the target business module whose calling dependency relationship is a called relationship is greater than the update priority of the target business module whose calling dependency relationship is a calling relationship.
[0083] Optionally, the update module 430 may be specifically used for:
[0084] According to the number of target business modules, a corresponding number of update threads are established; for target business modules with calling dependencies, update threads are allocated in sequence according to the update priority of the target business modules, and the data update interface is called to perform module update; for target business modules without calling dependencies, update threads are allocated to the target business modules at the same time, and the data update interface is called to perform asynchronous module update.
[0085] Optionally, the device further comprises:
[0086] An update interface generation module is used to rewrite at least one basic data update method according to the business logic of each business module using the basic business data, and generate a target data update method corresponding to the business module; wherein the target data update method refers to a data update method that conforms to the business logic of using each business basic data in the business module; the basic data update method includes a method for adding new data, a method for deleting data, and a method for modifying data; and the rewritten data update method is integrated into a data update interface.
[0087] Optionally, the basic business data may be basic data for a business module to implement its own business logic.
[0088] Optionally, the update module 430 may also be used to: according to the event type of the data update event, control the target business module to call a target data update method corresponding to the event type in the data update interface to perform module update.
[0089] The service data updating device provided in the embodiment of the present invention can execute the service data updating method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0090] Embodiment 5
[0091] Figure 5 A schematic diagram of an electronic device 510 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0092] like Figure 5 As shown, the electronic device 510 includes at least one processor 511, and a memory connected to the at least one processor 511 in communication, such as a read-only memory (ROM) 512, a random access memory (RAM) 513, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 511 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 512 or the computer program loaded from the storage unit 518 to the random access memory (RAM) 513. In the RAM 513, various programs and data required for the operation of the electronic device 510 can also be stored. The processor 511, the ROM 512, and the RAM 513 are connected to each other via a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.
[0093] A number of components in the electronic device 510 are connected to the I / O interface 515, including: an input unit 516, such as a keyboard, a mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a disk, an optical disk, etc.; and a communication unit 519, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 519 allows the electronic device 510 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0094] The processor 511 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a business data update method.
[0095] In some embodiments, the service data update method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 518. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 510 via the ROM 512 and / or the communication unit 519. When the computer program is loaded into the RAM 13 and executed by the processor 511, one or more steps of the service data update method described above may be performed. Alternatively, in other embodiments, the processor 511 may be configured to perform the service data update method in any other appropriate manner (e.g., by means of firmware).
[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0097] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0099] To provide interaction with a user, the systems and techniques described herein may 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 trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may 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.
[0101] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may 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 to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for updating business data, characterized in that: include: Monitoring data update events of basic business data, determining the basic business data for which the data update event occurs as target business data, and determining a business module that has a mapping relationship with the target business data as a target business module; wherein the mapping relationship is determined according to a data dependency relationship between the basic business data and the business module; Determine the update priority of the target business module according to the call dependency relationship between the target business modules; wherein the call dependency relationship is used to characterize the data support relationship between the target business modules; Based on the update priority of the target service module, at least one target service module is controlled to call the data update interface in sequence to perform module update.
2. The method according to claim 1, characterized in that Determine the update priority of the target business modules based on the call dependencies between the target business modules, including: Traverse the target business modules to determine the calling relationship and called relationship of each target business module; The update priority of the target business module is determined according to the calling relationship and the called relationship of the target business module; among the target business modules with calling dependency relationships, the update priority of the target business module whose calling dependency relationship is a called relationship is greater than the update priority of the target business module whose calling dependency relationship is a calling relationship.
3. The method according to claim 1, characterized in that Based on the update priority of the target service module, controlling at least one target service module to sequentially call the data update interface to perform module update, including: According to the number of target business modules, establish a corresponding number of update threads; For target business modules with call dependency relationships, update threads are allocated in sequence according to the update priorities of the target business modules, and the data update interface is called to perform module update; For target business modules that do not have a calling dependency relationship, update threads are simultaneously allocated to the target business modules, and the data update interface is called to perform asynchronous module update.
4. The method according to claim 1, characterized in that: The generation process of the data update interface includes: According to the business logic of each business module using the basic business data, at least one basic data update method is rewritten to generate a target data update method corresponding to the business module; wherein the target data update method refers to a data update method that conforms to the business logic of using each business basic data in the business module; the basic data update method includes a method for adding data, a method for deleting data, and a method for modifying data; Integrate the rewritten data update methods into a data update interface.
5. The method according to claim 4, characterized in that The basic business data is the basic data for the business module to implement its own business logic.
6. The method according to any one of claims 1 to 5, characterized in that: Controlling at least one target business module to call the data update interface in sequence to perform module update, including: According to the event type of the data update event, the target service module is controlled to call the target data update method corresponding to the event type in the data update interface to perform module update.
7. A service data updating device, characterized in that: include: A data monitoring module is used to monitor data update events of basic business data, determine the basic business data where the data update event occurs as target business data, and determine the business module that has a mapping relationship with the target business data as the target business module; wherein the mapping relationship is determined according to the data dependency relationship between the basic business data and the business module; A priority determination module, used to determine the update priority of the target business module according to the call dependency relationship between the target business modules; wherein the call dependency relationship is used to characterize the data support relationship between the target business modules; The update module is used to control at least one target business module to call the data update interface in sequence to perform module update based on the update priority of the target business module.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, 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 so that the at least one processor can execute the service data updating method according to any one of claims 1 to 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 a processor to implement the business data updating method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that It comprises a computer program, which implements the business data updating method according to any one of claims 1 to 6 when executed by a processor.