CN113420037A - Real-time asset data changing method and device - Google Patents
Real-time asset data changing method and device Download PDFInfo
- Publication number
- CN113420037A CN113420037A CN202110715368.6A CN202110715368A CN113420037A CN 113420037 A CN113420037 A CN 113420037A CN 202110715368 A CN202110715368 A CN 202110715368A CN 113420037 A CN113420037 A CN 113420037A
- Authority
- CN
- China
- Prior art keywords
- change
- data
- asset
- changed
- generating
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2308—Concurrency control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2358—Change logging, detection, and notification
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The disclosure relates to an asset data real-time change method, an asset data real-time change device, an electronic device and a computer readable medium. The method can be applied to a big data platform and comprises the following steps: 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 change method, the asset data real-time change device, the electronic equipment and the computer readable medium can enable asset change to take effect in real time, guarantee accurate and stable operation of a big data platform and guarantee safety and effectiveness of data used by a user.
Description
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method and an apparatus for real-time asset data modification, an electronic device, and a computer-readable medium.
Background
Data assets refer to data resources that are physically or electronically recorded, owned or controlled by an individual or business, and that can bring future economic benefits to the business. Specifically, a data asset refers to a type of data in the form of a file carrying data such as a photograph, a document, a drawing, a video, a digital right, etc. of an individual or a business, as opposed to a physical asset. Data assets are considered one of the most important forms of assets in the digital age.
In a big data scene, the identification of the assets is beneficial to a big data platform to carry out more rapid and convenient data processing and query, and management operations such as increasing, deleting, modifying, checking and the like are also needed to be carried out on the data of the assets on the big data platform. In general, when a user needs to perform asset change, the user sends an asset change request, transmits information data and the like needing to be changed, waits for a response of a big data platform, the big data platform directly accesses an operation database to perform the asset change, returns a page execution result after the asset change, and displays the latest data content only after the page needs to be refreshed. For the change of the assets, such as the modification of the asset data, the deletion of the assets or the addition of the assets, if the real-time change cannot be realized, the user is still required to manually refresh the page to update, and the problems of incorrect data display and the like are caused. It is a considerable question how to make the asset take effect immediately after it has been changed. Meanwhile, the correctness of the asset data is ensured, and all related data can be updated and processed in time.
Therefore, a new method, apparatus, electronic device and computer readable medium for real-time asset data modification are needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present disclosure provides an asset data real-time change method, an asset data real-time change device, an electronic device, and a computer readable medium, which 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 a user.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the disclosure, a method for real-time asset data change 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, the cache of the big data platform is refreshed, so that the page side of the user acquires the changed asset data.
In an exemplary embodiment of the present disclosure, further comprising: acquiring an equipment identifier and an IP address of asset data corresponding to the equipment identifier; performing a hash calculation on the device identification and the IP address to generate the asset identification.
In an exemplary embodiment of the present disclosure, generating a change notification by the asset identification and the change data includes: and generating a change notice by the memory database of the big data platform through the asset identification and the change data.
In an exemplary embodiment of the disclosure, generating a change notification by the asset identification and the change data further comprises: storing the change data in a relational database.
In an exemplary embodiment of the present disclosure, the obtaining, by the background database, the change data based on the change notification includes: the background database acquires the change notification from the relational database based on a consumer subscription mode; obtaining the change data based on the change notification.
In an exemplary embodiment of the present disclosure, generating a change operation instruction based on the change notification and the change data includes: the distributed database extracts operation content based on the change notification; extracting asset data from the changed data based on the operation content; and generating the change operation instruction based on the operation content and the asset data.
In an exemplary embodiment of the present disclosure, generating the change operation instruction based on the operation content and the asset data includes: and splicing the operation content and the asset data by a back-end program of the big data platform to generate the change operation instruction.
In an exemplary embodiment of the present disclosure, changing 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, an asset data real-time modification apparatus is provided, which is applicable to a big data platform, and the apparatus includes: the asset module is used for acquiring asset identification and change data of asset data to be changed; a notification module for generating a change notification by the asset identification and the change data; the data module is used for the background database to acquire the changed 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.
According to an aspect of the present disclosure, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the disclosure, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the asset data real-time changing method, the device, the electronic equipment and the computer readable medium, 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; and changing the asset data to be changed based on the change operation instruction, so that the asset change can take effect in real time, the accurate and stable operation of the big data platform is ensured, and the data used by the user is ensured to be safe and effective.
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 some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
FIG. 1 is a system block diagram illustrating a method and apparatus for real-time alteration of asset data according to an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a method for real-time alteration of asset data, according to an 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 change mechanism, according to an exemplary embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 7 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different 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 example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, 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 subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to 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 actual execution sequence may be changed according to the actual situation.
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. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended 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 an 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, distributed databases 107, 108, 109. The network 104 is the medium used to provide communication links between the terminal devices 101, 102, 103 and the big data platform 105; network 104 also serves as a medium for providing communication links between big data platform 105 and relational database 106; network 104 also serves as a medium for providing communication links between relational database 106 and distributed databases 107, 108, 109. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 101, 102, 103 to interact with the big data platform 105 over the network 104 to receive or transmit asset data or the like. Various communication client applications, such as asset management applications, big data processing applications, search 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 various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, 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 users using big data platform applications hosted by the terminal devices 101, 102, 103. The background management server can analyze and process 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 the asset data to be changed; big data platform 105 may generate a change notification, for example, through the asset identification and the change data; big data platform 105 may, for example, obtain the change data based on the change notification by a backend database of the big data platform; big data platform 105 may generate change operation instructions, for example, based on the change notifications and the change data; the big data platform 105 may, for example, alter the asset data to be altered based on the alteration operation instructions.
The big data platform 105 may also, for example, after the change, refresh the big data platform's cache to allow the user's pageside to obtain the changed asset data.
The big data platform 105 may also, for example, obtain the device identification and its corresponding asset data's IP address; performing a hash calculation on the device identification and the IP address to generate the asset identification.
The big data platform 105 may be a server of an entity, or may be composed of a plurality of servers, for example, it should be noted that the asset data real-time changing method provided by the embodiment of the present disclosure may be executed by the big data platform 105, and accordingly, the asset data real-time changing device may be disposed in the big data platform 105.
FIG. 2 is a flow diagram illustrating a method for real-time alteration of asset data, according to an exemplary embodiment. The real-time asset data modification method 20 includes at least steps S202 to S210.
As shown in fig. 2, in S202, the asset identification and the change data of the asset data to be changed are acquired. Big data is a kind of data that is a big data asset if the data has the property of an asset in a big data scenario, i.e. the present disclosure relates to asset data. The user can log in an application or a website of the big data platform at the user side to submit the asset data change application.
In one embodiment, further comprising: acquiring an equipment identifier and an IP address of asset data corresponding to the equipment identifier; performing a hash calculation on the device identification and the IP address to generate the asset identification. In a big data scene, because the data volume is large, asset data is stored in data, and when the asset data is subjected to the increasing, deleting, modifying and checking operation, the problems of inquiry, modification errors and the like are easily caused because the asset names or the asset IPs are the same. 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 an asset, where the ID is a hash value obtained from the device ID and the asset IP, and this hash value is used as a unique identification for the asset. Then when querying for assets, querying based on the asset ID also increases the speed of querying.
In one embodiment, when the assets are added, the asset data is added into the data table, so that a unique asset ID is generated, and the uniqueness of the assets is guaranteed. If modification of asset data such as asset status, asset geographic location, etc. is required, the asset can be quickly located by asset ID to effect the modification of the asset. Similarly, if the assets need to be deleted, the deletion is carried out according to the unique asset ID, so that the problem of mistaken deletion due to the fact that the asset name and the asset IP are the same is solved, and the integrity and the correctness of the asset data are guaranteed.
In S204, a change notification is generated by the asset identification and the change data. Further comprising: storing the change data in a relational database. And generating a change notice by the memory database of the big data platform through the asset identification and the change data.
In S206, the background database of the big data platform obtains the changed data based on the change notification. The method comprises the following steps: the background database acquires the change notification from the relational database based on a consumer subscription mode; obtaining 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. The method comprises the following steps: the distributed database extracts operation content based on the change notification; extracting asset data from the changed data based on the operation content; and generating the change operation instruction based on the operation content and the asset data.
Wherein generating the change operation instruction based on the operation content and the asset data comprises: and splicing the operation content and the asset data by a back-end program of the big data platform to generate the change operation instruction.
In S210, the asset data to be changed is changed based on the change operation instruction. The method comprises 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, the cache of the big data platform is refreshed, so that the page side of the user acquires the changed asset data. And calling a cache refreshing method by using a cache mechanism of the big data platform after the assets are successfully changed, refreshing the assets of the big data platform, and inquiring and displaying a display page of the user side according to the content of the current page, wherein the displayed asset data is the latest asset data, so that the real-time property of the assets change is realized. The method and the device avoid that the page shows wrong data due to untimely cache updating.
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; and changing the asset data to be changed based on the change operation instruction, so that the asset change can take effect in real time, the accurate and stable operation of the big data platform is ensured, and the data used by the user is ensured to be safe and effective.
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 asset data change according to another exemplary embodiment, and the process 30 shown in fig. 3 is a detailed description of S206 "obtaining the change data based on the change notification by the background database of the big data platform" in the process shown in fig. 2.
As shown in fig. 3, when an asset performs a change operation, it is necessary to ensure real-time performance of the change, and then the big data platform uses the in-memory database to perform a change notification and store the changed data to ensure real-time performance. When the front-end page needs to perform asset change, a change notification can be sent to the back end of the big data platform, and data required during change is stored in the mysql database.
For example, when the hbase database at the back end of the big data platform performs asset change, the mysql database is removed to obtain data, and subsequent asset change operation is performed.
In the scheme, the mysql database is an intermediate bridge, and the mode of unloading the changed asset data in the mysql database can reduce frequent access caused by directly accessing the back-end database by the front end when the data volume of the asset data is large, thereby enhancing the pressure of the database. The sending of the asset change message is realized through the intermediate database, and the back-end database can also subscribe to the front-end message. Therefore, the effect of real-time notification can be realized even if nodes or data are increased. And after receiving the asset change notification, the hbase database takes the data from 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 "generating a change operation instruction based on the change notification and the change data" in S208 in the flow 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 asset change notification, the hbase database takes the data from 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: and modifying asset data, transmitting the operation to be carried out, the table name of the asset to be modified, the field and the value of the field into the asset, and splicing into a complete update sql statement by a back-end program of the big data platform.
In one embodiment, the change application may be, for example: and when some asset data is deleted, transmitting the operation to be carried out, the table name of the asset to be deleted and the information of the asset to be deleted, and splicing into an sql statement of delete through a large data platform.
In one embodiment, the change request may be, for example; and adding certain asset data, then transmitting the operation to be performed, the inserted table name and the inserted specific data, and splicing into an insert sql statement by a hook-end program of the big data platform.
In S406, the database is connected to perform the change operation.
In one embodiment, the change application may be, for example, to modify asset data, access the hbase database for asset modification operations, return true for successful modification, and return false for failed modification.
In one embodiment, the change application may, for example, delete some asset data, may be spliced into a delete sql statement by a big data platform, access the hbase database to perform a deletion operation, return true if the deletion succeeds, and return false if the deletion fails;
in one embodiment, the change request may be, for example; adding some asset data, accessing the operation database to insert the asset data, returning true after the insertion is successful, and returning false after the insertion is failed.
In S408, the execution result is returned.
In S410, the cache is updated. And after the assets are successfully changed by utilizing a cache mechanism of the big data platform, calling a cache refreshing method, manually refreshing the assets cache of the big data platform, and inquiring and displaying the page again according to the content of the current page, wherein the displayed asset data is the latest asset data, so that the real-time property of the assets change is realized. And the phenomenon that the page shows wrong data due to untimely cache updating is also avoided.
According to the asset data real-time changing method disclosed by the invention, when the assets are changed, the changed asset data can take effect in real time, and the big data platform cannot generate errors due to the change of the assets; when the assets are changed, the database can be informed in time, and the database is operated to ensure the correctness of the assets; the asset is assigned with the ID, so that the uniqueness of the database of the asset can be ensured, and the subsequent change operation of the asset is facilitated.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the above-described methods provided by the present disclosure. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
FIG. 5 is a block diagram illustrating an asset data real-time change mechanism, according to an exemplary embodiment. As shown in fig. 5, the real-time asset data modification device 50 includes: an asset module 502, a notification module 504, a data module 506, an instruction module 508, and a change module 510.
The asset module 502 is used for acquiring asset identification and change data of asset data to be changed; the in-memory database of the big data platform may generate a change notification, for example, from the asset identification and the change data.
A notification module 504 for generating a change notification from the asset identification 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 used for the background database to obtain the changed data based on the change notification; the change notification may be obtained, for example, by the background database from the relational database based on a consumer subscription pattern; obtaining 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 based on the change notification by the distributed database; extracting asset data from the changed data based on the operation content; and generating the change operation instruction based on the operation content and the asset data.
The change 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 the 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; and changing the asset data to be changed based on the change operation instruction, so that the asset change can take effect in real time, the accurate and stable operation of the big data platform is ensured, and the data used by the user is ensured to be safe and effective.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 600 according to this embodiment of the disclosure is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps described in this specification in accordance with various exemplary embodiments of the present disclosure. For example, the processing unit 610 may perform the steps shown in fig. 2 and 4.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory 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 of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 600 may also communicate with one or more external devices 600' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 600 interacts, and/or any device (e.g., router, modem, etc.) with which the electronic device 600 can communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 7, the technical solution according to the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable 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 disc 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 propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and 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 for 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 and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, 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., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, 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 described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, 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 (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute 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 the present disclosure is not limited to the precise arrangements, instrumentalities, or instrumentalities 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 (10)
1. A real-time asset data change method can be applied to a big data platform and is characterized by comprising the following steps:
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 of the big data platform acquires the changed 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 of claim 1, further comprising:
after the change, the cache of the big data platform is refreshed, so that the page side of the user acquires the changed asset data.
3. The method of claim 1, further comprising:
acquiring an equipment identifier and an IP address of asset data corresponding to the equipment identifier;
performing a hash calculation on the device identification and the IP address to generate the asset identification.
4. The method of claim 1, wherein generating a change notification via the asset identification and the change data comprises:
and generating a change notice by the memory database of the big data platform through the asset identification and the change data.
5. The method of claim 1, wherein generating a change notification via the asset identification and the change data further comprises:
storing the change data in a relational database.
6. The method of claim 1, wherein a background database of a big data platform obtains the change data based on the change notification, comprising:
the background database acquires the change notification from the relational database based on a consumer subscription mode;
obtaining the change data based on the change notification.
7. The method of claim 1, wherein generating change operation instructions based on the change notification and the change data comprises:
the distributed database extracts operation content based on the change notification;
extracting asset data from the changed data based on the operation content;
and generating the change operation instruction based on the operation content and the asset data.
8. The method of claim 7, wherein generating the change operation instructions based on the operation content and the asset data comprises:
and splicing the operation content and the asset data by a back-end program of the big data platform to generate the change operation instruction.
9. The method of claim 1, wherein changing asset data to be changed based on the change operation instructions comprises:
connecting a distributed database based on the change operation instruction;
and changing the asset data to be changed in the distributed database.
10. An asset data real-time changing device, which can be applied to a big data platform, is characterized by comprising:
the asset module is used for acquiring asset identification and change data of asset data to be changed;
a notification module for generating a change notification by the asset identification and the change data;
the data module is used for the background database to acquire the changed 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.
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 true CN113420037A (en) | 2021-09-21 |
CN113420037B 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 (13)
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 |
CN101141511A (en) * | 2007-05-18 | 2008-03-12 | 中兴通讯股份有限公司 | 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 |
CA2731822A1 (en) * | 2010-02-18 | 2011-08-18 | Research In Motion Limited | Method, system and apparatus for propagating data change notifications |
CN106021512A (en) * | 2016-05-24 | 2016-10-12 | 乐视控股(北京)有限公司 | Page refresh method and apparatus |
CN106294486A (en) * | 2015-06-04 | 2017-01-04 | 交通银行股份有限公司 | The processing method of finance market data and system |
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 |
CN108829727A (en) * | 2018-05-09 | 2018-11-16 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Date storage method, 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 |
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 |
-
2021
- 2021-06-27 CN CN202110715368.6A patent/CN113420037B/en active Active
Patent Citations (13)
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 |
CN101141511A (en) * | 2007-05-18 | 2008-03-12 | 中兴通讯股份有限公司 | 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 |
CA2731822A1 (en) * | 2010-02-18 | 2011-08-18 | Research In Motion Limited | Method, system and apparatus for propagating data change notifications |
CN106294486A (en) * | 2015-06-04 | 2017-01-04 | 交通银行股份有限公司 | The processing method of finance market data and system |
WO2017172847A1 (en) * | 2016-04-01 | 2017-10-05 | Microsoft Technology Licensing, Llc | Techniques to control notifications for content items in a collaboration platform |
CN106021512A (en) * | 2016-05-24 | 2016-10-12 | 乐视控股(北京)有限公司 | Page refresh method and apparatus |
CN108628901A (en) * | 2017-03-23 | 2018-10-09 | 深圳市优朋普乐传媒发展有限公司 | A kind of data-updating method and device |
CN108829727A (en) * | 2018-05-09 | 2018-11-16 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Date storage method, device, computer equipment and storage medium |
CN111125180A (en) * | 2018-10-30 | 2020-05-08 | 千寻位置网络有限公司 | Inventory data statistical method and device, server and distributed purchasing system |
CN110083616A (en) * | 2019-04-19 | 2019-08-02 | 深圳前海微众银行股份有限公司 | Page data processing method, device, equipment and computer readable storage medium |
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 |
---|---|
CN113420037B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107622135B (en) | Method and apparatus for displaying information | |
US11561972B2 (en) | Query conversion for querying disparate data sources | |
CN109522751B (en) | Access right control method and device, electronic equipment and computer readable medium | |
CN115587575A (en) | Data table creation method, target data query method, device and equipment | |
CN112825096A (en) | Data desensitization method and device | |
CN114297278A (en) | Method, system and device for quickly writing batch data | |
CN113761565B (en) | Data desensitization method and device | |
CN112347383A (en) | Sharing link generation method and device and electronic equipment | |
CN107330126B (en) | Method and apparatus for outputting information | |
CN111753141A (en) | Data management method and related equipment | |
US20190163830A1 (en) | Customer service advocacy on social networking sites using natural language query response from site-level search results | |
CN113420037B (en) | Asset data real-time changing method and device | |
CN110881056A (en) | Method and device for pushing information | |
CN113722007A (en) | Configuration method, device and system of VPN branch equipment | |
CN111460273B (en) | Information pushing method and device | |
US11023900B2 (en) | Routing customer feedback and service request | |
CN113450170A (en) | Information display method and device | |
CN113704222A (en) | Method and device for processing service request | |
CN113760568A (en) | Data processing method and device | |
CN110888939A (en) | Data management method and device | |
US20220253467A1 (en) | Method, device and program product for generating configuration information of storage system | |
CN110807089B (en) | Question answering method and device and electronic equipment | |
CN113760860B (en) | Data reading method and device | |
US10839026B2 (en) | Knowledge management by connecting users | |
US20230100936A1 (en) | Method, device, and computer program product for transmitting data for object storage |
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 |