CN113420037B - Asset data real-time changing method and device - Google Patents

Asset data real-time changing method and device Download PDF

Info

Publication number
CN113420037B
CN113420037B CN202110715368.6A CN202110715368A CN113420037B CN 113420037 B CN113420037 B CN 113420037B CN 202110715368 A CN202110715368 A CN 202110715368A CN 113420037 B CN113420037 B CN 113420037B
Authority
CN
China
Prior art keywords
data
change
asset
operation instruction
notification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110715368.6A
Other languages
Chinese (zh)
Other versions
CN113420037A (en
Inventor
李荣津
邹初建
王涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110715368.6A priority Critical patent/CN113420037B/en
Publication of CN113420037A publication Critical patent/CN113420037A/en
Application granted granted Critical
Publication of CN113420037B publication Critical patent/CN113420037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification

Abstract

The present disclosure relates to a method, apparatus, electronic device, and computer-readable medium for real-time modification of asset data. Applicable to big data platforms, the method comprises: acquiring asset identification and change data of asset data to be changed; generating a change notification through the asset identification and the change data; the background database acquires the change data based on the change notification; generating a change operation instruction based on the change notification and the change data; and changing the asset data to be changed based on the change operation instruction. The asset data real-time changing method, the device, the electronic equipment and the computer readable medium can enable asset change to take effect in real time, ensure accurate and stable operation of a big data platform and ensure safety and effectiveness of data used by users.

Description

Asset data real-time changing method and device
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for real-time changing asset data.
Background
A data asset is a data asset that is owned or controlled by an individual or business and is physically or electronically recorded to bring future economic benefits to the business. In particular, a data asset refers to a type of asset that exists in the form of data relative to a physical asset in the form of file-borne data such as photographs, documents, drawings, video, digital rights, and the like of an individual or business. Data assets are considered one of the most important asset forms in the digital age.
Under the big data scene, the identification of the assets is helpful for the big data platform to be more rapid and convenient when carrying out some data processing inquiry, and the management operations such as adding, deleting, modifying and checking the data of the assets on the big data platform are also needed. In general, when a user needs to change an asset, the user sends an asset change request, transmits information data and the like needing to be changed, waits for a large data platform to respond, and the large data platform directly accesses an operation database to change the asset, and returns to a page execution result after changing, but the page needs to be refreshed again to display the latest data content. For the change of the assets, such as the modification of asset data, the deletion of the assets or the addition of the assets, if the real-time change cannot be realized, the user still needs to manually refresh the page to update, and the problems of incorrect data display and the like are caused. How to validate an asset immediately after it is changed is a considerable problem. Meanwhile, the correctness of the asset data is ensured, and all relevant data can be updated and processed in time.
Accordingly, there is a need for a new method, apparatus, electronic device, and computer-readable medium for real-time modification of asset data.
The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of the above, the present disclosure provides a method, an apparatus, an electronic device, and a computer readable medium for real-time changing asset data, which can make the asset change take effect in real time, ensure accurate and stable operation of a big data platform, and ensure safe and effective data used by users.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, a method for real-time changing asset data is provided, which is applicable to a big data platform, and the method includes: acquiring asset identification and change data of asset data to be changed; generating a change notification through the asset identification and the change data; the background database acquires the change data based on the change notification; generating a change operation instruction based on the change notification and the change data; and changing the asset data to be changed based on the change operation instruction.
In an exemplary embodiment of the present disclosure, further comprising: after the change, refreshing the cache of the big data platform to enable the page end of the user to acquire the changed asset data.
In an exemplary embodiment of the present disclosure, further comprising: acquiring an equipment identifier and an IP address of corresponding asset data; and carrying out hash calculation on the equipment identifier and the IP address to generate the asset identifier.
In one exemplary embodiment of the present disclosure, generating a change notification by the asset identification and the change data includes: and generating a change notification by the asset identification and the change data through an in-memory database of the big data platform.
In an exemplary embodiment of the present disclosure, generating a change notification by the asset identification and the change data further includes: and storing the change data in a relational database.
In an exemplary embodiment of the present disclosure, the background database obtaining the change data based on the change notification includes: the background database obtains the change notification from the relational database based on the consumer subscription mode; and acquiring the change data based on the change notification.
In one exemplary embodiment of the present disclosure, generating a change operation instruction based on the change notification and the change data includes: extracting operation content by the distributed database based on the change notification; extracting asset data from the change data based on the operation content; the change operation instruction is generated based on the operation content and the asset data.
In one exemplary embodiment of the present disclosure, generating the change operation instruction based on the operation content and the asset data includes: and the back-end program of the big data platform splices the operation content and the asset data to generate the change operation instruction.
In an exemplary embodiment of the present disclosure, changing the asset data to be changed based on the change operation instruction includes: connecting a distributed database based on the change operation instruction; and changing the asset data to be changed in the distributed database.
According to an aspect of the present disclosure, there is provided an asset data real-time changing apparatus applicable to a big data platform, the apparatus comprising: the asset module is used for acquiring asset identification and change data of the asset data to be changed; a notification module for generating a change notification via the asset identification and the change data; the data module is used for acquiring the change data based on the change notification by the background database; the instruction module is used for generating a change operation instruction based on the change notification and the change data; and the change module is used for changing the asset data to be changed based on the change operation instruction.
According to an aspect of the present disclosure, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the present disclosure, a computer-readable medium is presented, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the method, the device, the electronic equipment and the computer readable medium for real-time changing the asset data, the asset identification and the changing data of the asset data to be changed are obtained; generating a change notification through the asset identification and the change data; the background database acquires the change data based on the change notification; generating a change operation instruction based on the change notification and the change data; based on the mode of changing the asset data to be changed by the change operation instruction, the asset change can be effective in real time, the accurate and stable operation of a large data platform is ensured, and the safety and the effectiveness of the data used by a user are ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely examples of the present disclosure and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a system block diagram illustrating a method and apparatus for real-time alteration of asset data according to one exemplary embodiment.
FIG. 2 is a flow chart illustrating a method of real-time alteration of asset data according to one exemplary embodiment.
Fig. 3 is a schematic diagram illustrating a method of real-time alteration of asset data according to another exemplary embodiment.
Fig. 4 is a flow chart illustrating a method of real-time alteration of asset data according to another exemplary embodiment.
FIG. 5 is a block diagram illustrating an asset data real-time alteration device, according to an example embodiment.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment.
Fig. 7 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the concepts of the present disclosure. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the present disclosure, and therefore, should not be taken to limit the scope of the present disclosure.
FIG. 1 is a system block diagram illustrating a method and apparatus for real-time alteration of asset data according to one exemplary embodiment.
As shown in fig. 1, the system architecture 10 may include terminal devices 101, 102, 103, a network 104 and a big data platform 105, a relational database 106, and distributed databases 107, 108, 109. The network 104 is a medium used to provide a communication link between the terminal devices 101, 102, 103 and the big data platform 105; the network 104 is also a medium to provide a communication link between the big data platform 105 and the relational database 106; the network 104 is also a medium used to provide communication links between the relational database 106 and the distributed databases 107, 108, 109. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the big data platform 105 via the network 104 using the terminal devices 101, 102, 103 to receive or transmit asset data or the like. Various communication client applications, such as asset management class applications, big data processing class applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The big data platform 105 may be a server providing various services, such as a background management server providing support for big data platform applications by users with the terminal devices 101, 102, 103. The background management server can analyze the received data and feed back the processing result to the terminal equipment.
The big data platform 105 may, for example, obtain asset identification and change data for asset data to be changed; the big data platform 105 may generate a change notification, for example, by the asset identification and the change data; the big data platform 105 may obtain the change data based on the change notification, for example, by a background database of the big data platform; the big data platform 105 may generate a change operation instruction based on the change notification and the change data, for example; the big data platform 105 may change the asset data to be changed, for example, based on the change operation instruction.
The big data platform 105 may also refresh the big data platform's cache, for example, after the change, so that the user's page side obtains the changed asset data.
The big data platform 105 may also, for example, obtain the device identification and its corresponding IP address of the asset data; and carrying out hash calculation on the equipment identifier and the IP address to generate the asset identifier.
The big data platform 105 may be a server of one entity, and may also be formed by a plurality of servers, for example, it should be noted that the method for changing asset data in real time provided by the embodiment of the present disclosure may be executed by the big data platform 105, and accordingly, the device for changing asset data in real time may be disposed in the big data platform 105.
FIG. 2 is a flow chart illustrating a method of real-time alteration of asset data according to one exemplary embodiment. The asset data real-time modification method 20 at least includes steps S202 to S210.
As shown in fig. 2, in S202, asset identification of asset data to be changed and change data are acquired. Big data is one type of data that is a big data asset if it has the property of an asset in a big data scenario, i.e., asset data is referred to in this disclosure. The user can log in the application or website of the big data platform at the user end to submit the asset data change application.
In one embodiment, further comprising: acquiring an equipment identifier and an IP address of corresponding asset data; and carrying out hash calculation on the equipment identifier and the IP address to generate the asset identifier. In a big data scene, because the data volume is large, the asset data is stored in the data, and when the operation of adding, deleting and checking is performed, the problems of query, modification error and the like easily occur because the name of the asset or the IP of the asset are the same. Then each piece of asset data needs to be uniquely identified.
An asset ID field is added to a database storing asset data to uniquely identify the asset, where ID is a hash value obtained from the device ID and the asset IP, and the hash value is regarded as a unique identification of the asset. Querying based on this asset ID also increases query speed when querying the asset.
In one embodiment, the method further comprises the step that when the asset is newly added, the asset data is added into the data table, so that a unique asset ID is generated, and the uniqueness of the asset is guaranteed. If modification of asset data such as asset status, asset geographic location, etc. is required, the asset can be quickly located to the asset via the asset ID to effect modification of the asset. If the asset is deleted, the deletion is performed according to the unique asset ID, so that the problem of misplacement and deletion caused by the same asset name and asset IP is avoided, and the integrity and the correctness of the asset data are ensured.
In S204, a change notification is generated from the asset identification and the change data. Further comprises: and storing the change data in a relational database. And generating a change notification by the asset identification and the change data through an in-memory database of the big data platform.
In S206, the background database of the big data platform acquires the change data based on the change notification. Comprising the following steps: the background database obtains the change notification from the relational database based on the consumer subscription mode; and acquiring the change data based on the change notification.
In S208, a change operation instruction is generated based on the change notification and the change data. Comprising the following steps: extracting operation content by the distributed database based on the change notification; extracting asset data from the change data based on the operation content; the change operation instruction is generated based on the operation content and the asset data.
Wherein generating the change operation instruction based on the operation content and the asset data includes: and the back-end program of the big data platform splices the operation content and the asset data to generate the change operation instruction.
In S210, the asset data to be changed is changed based on the change operation instruction. Comprising the following steps: connecting a distributed database based on the change operation instruction; and changing the asset data to be changed in the distributed database.
In one embodiment, further comprising: after the change, refreshing the cache of the big data platform to enable the page end of the user to acquire the changed asset data. And after the asset is successfully changed, a cache refreshing method is called by utilizing a cache mechanism of the big data platform, the asset cache of the big data platform is refreshed, and the display page of the user side is queried and displayed again according to the content of the current page, so that the latest asset data is displayed, and the real-time property of asset change is realized. Erroneous data displayed on the page due to untimely cache update is avoided.
According to the real-time asset data changing method, asset identification and changing data of asset data to be changed are obtained; generating a change notification through the asset identification and the change data; the background database acquires the change data based on the change notification; generating a change operation instruction based on the change notification and the change data; based on the mode of changing the asset data to be changed by the change operation instruction, the asset change can be effective in real time, the accurate and stable operation of a large data platform is ensured, and the safety and the effectiveness of the data used by a user are ensured.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a schematic diagram illustrating a method for real-time changing asset data according to another exemplary embodiment, and the process 30 shown in fig. 3 is a detailed description of the step S206 "the background database of the big data platform obtains the change data" in the process shown in fig. 2 based on the change notification.
As shown in fig. 3, when the asset performs the change operation and the real-time performance of the change needs to be ensured, the large data platform uses the in-memory database to perform the change notification and store the change data to ensure the real-time performance. When the front page is to make an asset change, a change notification may be sent, for example, to the big data platform back end and the data needed at the time of the change stored in the mysql database.
For example, when the database of hbase at the back end of the big data platform changes the asset, the database of mysql can be removed to obtain data, and the subsequent operation of changing the asset can be performed.
In the scheme, the mysql database is an intermediate bridge, and by means of transferring the changed asset data in the mysql database, frequent access caused by the fact that the front end directly accesses the rear end database can be reduced when the data size of the asset data is large, and the pressure of the database is enhanced. The sending of the asset change message is realized through the intermediate database, and the back-end database can subscribe to the front-end message. Thus, even if the number of nodes is increased or the number of data is increased, the effect of real-time notification can be realized. And after receiving the notification of the asset change, the hbase database takes the data out of the intermediate database and transmits the data to the rear end of the big data platform for splicing.
Fig. 4 is a flow chart illustrating a method of real-time alteration of asset data according to another exemplary embodiment. The flow 40 shown in fig. 4 is a detailed description of "generate change operation instruction based on the change notification and the change data" in the flow S208 shown in fig. 2.
As shown in fig. 4, in S402, corresponding asset data is acquired according to different asset change operation contents. And after receiving the notification of the asset change, the hbase database takes the data out of the intermediate database and transmits the data to the rear end of the big data platform for splicing.
In S404, the sentences are spliced.
In one embodiment, the change application may be, for example: modifying asset data, transmitting the operation to be performed, the table name, the field and the value of the field of the asset to be modified, and splicing the operation, the field and the value of the field into a full update sql statement through a large data platform back-end program.
In one embodiment, the change application may be, for example: and deleting certain asset data, and then inputting the operation to be performed, the table name of the asset to be deleted and the information of the asset to be deleted, and splicing the operation, the table name and the information of the asset to be deleted into a delete sql statement through a big data platform.
In one embodiment, the change application may be, for example; and adding certain asset data, then inputting the operation to be performed, the inserted table name and the inserted specific data, and splicing the operation, the inserted table name and the inserted specific data into the sql statement of insert through a big data platform hook end program.
In S406, the database is connected to perform a change operation.
In one embodiment, the change application may be, for example, to modify asset data, and may access the hbase database to perform asset modification operations, with the modification success returning true and the modification failure returning false.
In one embodiment, the change application may delete a certain asset data, for example, splice a delete sql statement through a big data platform, access the hbase database to perform deletion operation, return true after deletion success, and return false after deletion failure;
in one embodiment, the change application may be, for example; and adding certain asset data, and inserting the asset data into the accessible operation database, wherein the insertion success returns true, and the insertion failure returns false.
In S408, the execution result is returned.
In S410, the cache is updated. And after the asset is successfully changed, a method for refreshing the cache is called by utilizing a cache mechanism of the big data platform, the asset cache of the big data platform is manually refreshed, the page is queried and displayed again according to the content of the current page, and the latest asset data is displayed, so that the real-time property of asset change is realized. Erroneous data that is presented by the page due to untimely cache updates is also avoided.
According to the asset data real-time changing method disclosed by the invention, when the asset is changed, the changed asset data can take effect in real time, and the large data platform cannot generate errors due to the change of the asset; when the asset is changed, the database can be timely notified, and the database is operated to ensure the correctness of the asset; assigning an ID to an asset can ensure the uniqueness of the database of the asset, and facilitates subsequent modification operations to the asset.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. The above-described functions defined by the above-described methods provided by the present disclosure are performed when the computer program is executed by a CPU. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method of the present disclosure.
FIG. 5 is a block diagram illustrating an asset data real-time alteration device, according to an example embodiment. As shown in fig. 5, the asset data real-time changing device 50 includes: asset module 502, notification module 504, data module 506, instruction module 508, change module 510.
The asset module 502 is configured to obtain asset identification and change data of asset data to be changed; the in-memory database of the big data platform may, for example, generate a change notification from the asset identification and the change data.
The notification module 504 is configured to generate a change notification by the asset identifier and the change data; the notification module 50 is also 4 for storing the change data in a relational database.
The data module 506 is configured to obtain the change data by the background database based on the change notification; the change notification may be obtained by a relational database based on a consumer subscription pattern, for example, by a background database; and acquiring the change data based on the change notification.
The instruction module 508 is configured to generate a change operation instruction based on the change notification and the change data; the instruction module 508 is further configured to extract operation content from the distributed database based on the change notification; extracting asset data from the change data based on the operation content; the change operation instruction is generated based on the operation content and the asset data.
The changing module 510 is configured to change the asset data to be changed based on the change operation instruction. The change module 510 is further configured to connect to a distributed database based on the change operation instruction; and changing the asset data to be changed in the distributed database.
According to the asset data real-time changing device, asset identification and changing data of asset data to be changed are obtained; generating a change notification through the asset identification and the change data; the background database acquires the change data based on the change notification; generating a change operation instruction based on the change notification and the change data; based on the mode of changing the asset data to be changed by the change operation instruction, the asset change can be effective in real time, the accurate and stable operation of a large data platform is ensured, and the safety and the effectiveness of the data used by a user are ensured.
Fig. 6 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 600 according to such an embodiment of the present disclosure is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs steps described in the present specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 610 may perform the steps as shown in fig. 2, 4.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 600' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 600, and/or any devices (e.g., routers, modems, etc.) that the electronic device 600 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 7, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiments of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: acquiring asset identification and change data of asset data to be changed; generating a change notification through the asset identification and the change data; the background database acquires the change data based on the change notification; generating a change operation instruction based on the change notification and the change data; and changing the asset data to be changed based on the change operation instruction.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and include several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that this disclosure is not limited to the particular arrangements, instrumentalities and methods of implementation described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (6)

1. The real-time change method of the asset data can be applied to a big data platform and is characterized by comprising the following steps:
acquiring an equipment identifier and an IP address of corresponding asset data;
performing hash calculation on the equipment identifier and the IP address to generate the asset identifier;
acquiring asset identification and change data of asset data to be changed;
the memory database of the big data platform generates a change notification through the asset identification and the change data, and stores the change data in a relational database;
the background database of the big data platform acquires the change notification from the relational database based on the consumer subscription mode, and acquires the change data based on the change notification;
generating a change operation instruction based on the change notification and the change data;
and changing the asset data to be changed based on the change operation instruction.
2. The method as recited in claim 1, further comprising:
after the change, refreshing the cache of the big data platform to enable the page end of the user to acquire the changed asset data.
3. The method of claim 1, wherein generating a change operation instruction based on the change notification and the change data comprises:
extracting operation content by the distributed database based on the change notification;
extracting asset data from the change data based on the operation content;
the change operation instruction is generated based on the operation content and the asset data.
4. The method of claim 3, wherein generating the change operation instruction based on the operation content and the asset data comprises:
and the back-end program of the big data platform splices the operation content and the asset data to generate the change operation instruction.
5. The method of claim 1, wherein altering the asset data to be altered based on the altering operation instruction comprises:
connecting a distributed database based on the change operation instruction;
and changing the asset data to be changed in the distributed database.
6. An asset data real-time changing device applicable to a big data platform, comprising:
the asset module is used for acquiring the equipment identifier and the IP address of the corresponding asset data, carrying out hash calculation on the equipment identifier and the IP address to generate the asset identifier, and acquiring the asset identifier and the change data of the asset data to be changed;
the notification module is used for generating a change notification through the asset identification and the change data by the memory database of the big data platform and storing the change data in the relational database;
the data module is used for acquiring the change notification from the relational database in a customer subscription mode by a background database of the big data platform and acquiring the change data based on the change notification;
the instruction module is used for generating a change operation instruction based on the change notification and the change data;
and the change module is used for changing the asset data to be changed based on the change operation instruction.
CN202110715368.6A 2021-06-27 2021-06-27 Asset data real-time changing method and device Active CN113420037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110715368.6A CN113420037B (en) 2021-06-27 2021-06-27 Asset data real-time changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110715368.6A CN113420037B (en) 2021-06-27 2021-06-27 Asset data real-time changing method and device

Publications (2)

Publication Number Publication Date
CN113420037A CN113420037A (en) 2021-09-21
CN113420037B true CN113420037B (en) 2023-06-27

Family

ID=77717030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110715368.6A Active CN113420037B (en) 2021-06-27 2021-06-27 Asset data real-time changing method and device

Country Status (1)

Country Link
CN (1) CN113420037B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062515B1 (en) * 2001-12-28 2006-06-13 Vignette Corporation System and method for the synchronization of a file in a cache
CA2731822A1 (en) * 2010-02-18 2011-08-18 Research In Motion Limited Method, system and apparatus for propagating data change notifications
WO2017172847A1 (en) * 2016-04-01 2017-10-05 Microsoft Technology Licensing, Llc Techniques to control notifications for content items in a collaboration platform
CN108628901A (en) * 2017-03-23 2018-10-09 深圳市优朋普乐传媒发展有限公司 A kind of data-updating method and device
CN110825772A (en) * 2019-10-28 2020-02-21 爱钱进(北京)信息科技有限公司 Method and device for synchronizing memory data of multiple service instances and storage medium
CN111125180A (en) * 2018-10-30 2020-05-08 千寻位置网络有限公司 Inventory data statistical method and device, server and distributed purchasing system
CN111708834A (en) * 2020-05-25 2020-09-25 苏州浪潮智能科技有限公司 Method, system, equipment and medium for synchronizing service configuration data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141511B (en) * 2007-05-18 2010-08-18 中兴通讯股份有限公司 Interface view data filtering distribution device and network alarm management system
CN101369283A (en) * 2008-09-25 2009-02-18 中兴通讯股份有限公司 Data synchronization method and system for internal memory database physical data base
CN106294486B (en) * 2015-06-04 2020-06-05 交通银行股份有限公司 Financial market data processing method and system
CN106021512A (en) * 2016-05-24 2016-10-12 乐视控股(北京)有限公司 Page refresh method and apparatus
CN108829727B (en) * 2018-05-09 2021-06-25 未鲲(上海)科技服务有限公司 Data storage method and device, computer equipment and storage medium
CN110083616A (en) * 2019-04-19 2019-08-02 深圳前海微众银行股份有限公司 Page data processing method, device, equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062515B1 (en) * 2001-12-28 2006-06-13 Vignette Corporation System and method for the synchronization of a file in a cache
CA2731822A1 (en) * 2010-02-18 2011-08-18 Research In Motion Limited Method, system and apparatus for propagating data change notifications
WO2017172847A1 (en) * 2016-04-01 2017-10-05 Microsoft Technology Licensing, Llc Techniques to control notifications for content items in a collaboration platform
CN108628901A (en) * 2017-03-23 2018-10-09 深圳市优朋普乐传媒发展有限公司 A kind of data-updating method and device
CN111125180A (en) * 2018-10-30 2020-05-08 千寻位置网络有限公司 Inventory data statistical method and device, server and distributed purchasing system
CN110825772A (en) * 2019-10-28 2020-02-21 爱钱进(北京)信息科技有限公司 Method and device for synchronizing memory data of multiple service instances and storage medium
CN111708834A (en) * 2020-05-25 2020-09-25 苏州浪潮智能科技有限公司 Method, system, equipment and medium for synchronizing service configuration data

Also Published As

Publication number Publication date
CN113420037A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN110019350B (en) Data query method and device based on configuration information
US11411871B2 (en) Augmenting functionality in distributed systems with payload headers
US11561972B2 (en) Query conversion for querying disparate data sources
CN109522751A (en) Access right control method, device, electronic equipment and computer-readable medium
US20140244646A1 (en) Processing webpage data
CN115599386A (en) Code generation method, device, equipment and storage medium
CN110110184B (en) Information inquiry method, system, computer system and storage medium
CN114297278A (en) Method, system and device for quickly writing batch data
CN113761565B (en) Data desensitization method and device
CN113420037B (en) Asset data real-time changing method and device
CN112825096A (en) Data desensitization method and device
CN107291923B (en) Information processing method and device
CN107273362B (en) Data processing method and apparatus thereof
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN114741158A (en) Page switching method, device, equipment and storage medium
CN113704222A (en) Method and device for processing service request
CN113760860B (en) Data reading method and device
US11841916B2 (en) System and method to update a bookmarked document link and avoid a broken link
CN112905388B (en) Page configuration information processing method and device
US11842077B2 (en) Method, device, and computer program product for transmitting data for object storage
US20220197889A1 (en) Identifying incorrect links
US20220253467A1 (en) Method, device and program product for generating configuration information of storage system
CN111460273B (en) Information pushing method and device
CN113704442A (en) Method and device for processing consultation request
US10579696B2 (en) Save session storage space by identifying similar contents and computing difference

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant