CN113342867A - Data distribution and management method and device, electronic equipment and readable storage medium - Google Patents

Data distribution and management method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113342867A
CN113342867A CN202110757442.0A CN202110757442A CN113342867A CN 113342867 A CN113342867 A CN 113342867A CN 202110757442 A CN202110757442 A CN 202110757442A CN 113342867 A CN113342867 A CN 113342867A
Authority
CN
China
Prior art keywords
data
distributed
field
receiving system
data receiving
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.)
Pending
Application number
CN202110757442.0A
Other languages
Chinese (zh)
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.)
China Merchants Finance Technology Co Ltd
Original Assignee
China Merchants Finance Technology 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 China Merchants Finance Technology Co Ltd filed Critical China Merchants Finance Technology Co Ltd
Priority to CN202110757442.0A priority Critical patent/CN113342867A/en
Publication of CN113342867A publication Critical patent/CN113342867A/en
Pending legal-status Critical Current

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/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24578Query processing with adaptation to user needs using ranking
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data synchronization, and discloses a data distribution and management method, which comprises the following steps: acquiring data to be distributed from a database, and extracting a field set to be distributed from the data to be distributed; matching the field set to be distributed with the authority fields of the data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed; establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue; grouping data to be distributed according to authority fields of a data receiving system to obtain grouped data corresponding to the data receiving system; and sending the grouped data to a message queue of a corresponding data receiving system, and informing the corresponding data receiving system to acquire data in the message queue by using a subscription mechanism. The invention also provides a data distribution and management device, equipment and a readable storage medium. The invention can realize the differentiated distribution of data.

Description

Data distribution and management method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of data synchronization technologies, and in particular, to a data distribution and management method, an apparatus, an electronic device, and a readable storage medium.
Background
With the economic development, various industries have a vigorous development trend, and the optimization of data distribution is increasingly important under the background that various industries are gradually strong.
When data of a source system is changed in each industry, changed data needs to be distributed to a plurality of subsystems in the downstream. However, when data is distributed, a one-to-many distribution mode is generally adopted, that is, changed data is sent to each subsystem without being distinguished, and the data distribution mode enables data received by subsystems with different levels to be the same, so that refinement and differentiated distribution of data cannot be realized.
Disclosure of Invention
The invention provides a data distribution and management method, a data distribution and management device, electronic equipment and a computer-readable storage medium, and mainly aims to realize differentiated distribution of data.
In order to achieve the above object, the present invention provides a data distribution and management method, including:
acquiring data to be distributed from a pre-constructed database, and extracting a field set to be distributed from the data to be distributed;
matching the field set to be distributed with the permission fields of the pre-constructed data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed;
establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
grouping the data to be distributed according to the authority field of the data receiving system to obtain grouped data corresponding to the data receiving system;
and sending the grouped data to a message queue of a corresponding data receiving system, and informing the corresponding data receiving system to acquire data in the message queue by using the subscription mechanism.
Optionally, the obtaining data to be distributed from a pre-constructed database, and extracting a field set to be distributed from the data to be distributed includes:
acquiring changed data or requested data from a pre-constructed database to obtain data to be distributed;
extracting a field corresponding to the data to be distributed;
and integrating all the fields to obtain a field set to be distributed.
Optionally, the matching the field set to be distributed with the permission field of a pre-constructed data receiving system to obtain one or more data receiving systems matched with the field set to be distributed includes:
acquiring a pre-constructed field authority matching table;
and acquiring the authority field of the data receiving system corresponding to each field to be distributed in the field set to be distributed according to the field authority matching table, and matching one or more data receiving systems matched with the field set to be distributed according to the authority field.
Optionally, the grouping the data to be distributed according to the authority field of the data receiving system to obtain the grouped data corresponding to the data receiving system includes:
step A: selecting one of the data from the data to be distributed, and acquiring a field to be distributed of the selected data;
and B: acquiring an authority field corresponding to the field to be distributed according to the field authority matching table;
and C: distributing the selected data to a group corresponding to the permission field;
and returning to the step A until all the data to be distributed are selected.
Optionally, the creating a message queue corresponding to each data receiving system includes:
establishing data storage queues with the same quantity according to the quantity of the data receiving systems;
and performing one-to-one mapping on the data storage queue and the data receiving systems, and setting authority field labels for the data storage queue according to the mapping relation to obtain a message queue corresponding to each data receiving system.
Optionally, the subscription mechanism for establishing the message queue includes:
setting an access time interval;
and when the message queue has the stored data, notifying the corresponding data receiving system to acquire the data from the message queue according to the access time interval.
Optionally, the notifying, by using the subscription mechanism, the corresponding data receiving system to obtain data from the message queue includes:
setting access authority to the data receiving system;
and when the notification of the message queue is received, acquiring data in the message queue by using the access right.
In order to solve the above problem, the present invention further provides a data distribution and management apparatus, comprising:
the data to be distributed acquisition module is used for acquiring data to be distributed from a pre-constructed database and extracting a field set to be distributed from the data to be distributed;
the subscription mechanism building module is used for matching the field set to be distributed with the permission fields of the pre-built data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed; establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
the data to be distributed grouping module is used for grouping the data to be distributed according to the authority field of the data receiving system to obtain grouping data corresponding to the data receiving system;
and the data distribution module is used for sending the grouped data to a message queue of a corresponding data receiving system and informing the corresponding data receiving system to acquire data from the message queue by using the subscription mechanism.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and the processor executes the computer program stored in the memory to realize the data distribution and management method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the data distribution and management method described above.
The embodiment of the invention matches the field corresponding to the data to be distributed with a pre-constructed data receiving system to obtain the data receiving system to be distributed of the data to be distributed, then utilizes the authority field of the data receiving system to group the data to be distributed, and utilizes the authority field to create a message queue, only the data which can be received by the corresponding data receiving system is received in the message queue, thereby realizing the refinement and differentiation of data distribution. Therefore, the data distribution and management method, the data distribution and management device, the electronic equipment and the computer-readable storage medium provided by the embodiment of the invention realize the refinement and differentiated distribution of data.
Drawings
Fig. 1 is a schematic flow chart of a data distribution and management method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of a data distribution and management apparatus according to an embodiment of the present invention;
fig. 3 is a schematic internal structural diagram of an electronic device implementing a data distribution and management method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a data distribution and management method. The executing body of the data distribution and management method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the data distribution and management method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flow diagram of a data distribution and management method according to an embodiment of the present invention is shown, in the embodiment of the present invention, the data distribution and management method includes:
s1, acquiring data to be distributed from a pre-constructed database, and extracting a field set to be distributed from the data to be distributed;
in the embodiment of the invention, when data in the database is changed or request data is received, the changed data and/or the request data form the data to be distributed. Further, the field set to be distributed is a field to which the data to be distributed belongs.
For example: when the changed data or the request data is that the name of the employee is XX, the gender is X, and the identification number is YXYX, the corresponding fields are a name field, a gender field and an identification number field.
In the embodiment of the present invention, the obtaining data to be distributed from a pre-constructed database and extracting a field set to be distributed from the data to be distributed includes:
acquiring changed data or requested data from a pre-constructed database to obtain data to be distributed;
extracting a field corresponding to the data to be distributed;
and integrating all the fields to obtain a field set to be distributed.
S2, matching the field set to be distributed with the permission fields of the pre-constructed data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed;
in the embodiment of the invention, the authority field is a preset field which can be received by the data receiving system in an authority range. For example: the authority field of the data receiving system A is a name field and a gender field, the authority field of the data receiving system B is a name field, a gender field and an identity card number field, when the changed data or the requested data is an identity card number, the data receiving system A cannot obtain the changed data or the requested data, and the data receiving system B can receive the changed data or the requested data.
In the embodiment of the present invention, the matching the field set to be distributed with the permission fields of the pre-constructed data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed includes:
acquiring a pre-constructed field authority matching table;
and acquiring the authority field of the data receiving system corresponding to each field to be distributed in the field set to be distributed according to the field authority matching table, and matching one or more data receiving systems matched with the field set to be distributed according to the authority field.
In the embodiment of the invention, the field authority matching table records the mapping relation between the authority fields of all the data receiving systems and the fields of the data. And matching the data receiving system corresponding to each field to be distributed in the field set to be distributed by using the field authority matching table.
S3, creating a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
in the embodiment of the invention, the message queue can temporarily store the data to be distributed, so that the operating pressure of the server is relieved. And originally, the server is connected with each data receiving system in a butt joint mode, and each data receiving system is connected with a corresponding message queue in a butt joint mode.
In this embodiment of the present invention, the creating a message queue corresponding to each data receiving system includes:
establishing data storage queues with the same quantity according to the quantity of the data receiving systems;
and performing one-to-one mapping on the data storage queue and the data receiving systems, and setting authority field labels for the data storage queue according to the mapping relation to obtain a message queue corresponding to each data receiving system.
In the embodiment of the invention, the permission field label identifies the receivable field of the message queue. For example: and if the message queue mapped with the data receiving system A exists, the authority field labels of the message queue are name labels and gender labels.
In this embodiment of the present invention, the subscription mechanism for establishing the message queue includes:
setting an access time interval;
and when the message queue has the stored data, notifying the corresponding data receiving system to acquire the data from the message queue according to the access time interval.
In the embodiment of the present invention, in order to prevent the data receiving system from accessing the message queue frequently, the access time interval may be preset, and when there is data in the message queue, the corresponding data receiving system is notified to acquire the data according to the access time interval.
S4, grouping the data to be distributed according to the authority field of the data receiving system to obtain grouped data corresponding to the data receiving system;
in the embodiment of the invention, the grouped data is obtained by matching the field corresponding to the data to be distributed with the authority field of the data receiving system according to the field authority matching table. For example: the data to be distributed are employee name XX, gender X and identity card number YXYX, the authority field of the data receiving system A is name field and gender field, the authority field of the data receiving system B is name field, gender field and identity card number field, the grouped data of the data receiving system A are name XX and gender X, the grouped data of the data receiving system B are name XX, gender X and identity card number YXYX.
In this embodiment of the present invention, the grouping the data to be distributed according to the authority field of the data receiving system to obtain the grouped data corresponding to the data receiving system includes:
step A: selecting one of the data from the data to be distributed, and acquiring a field to be distributed of the selected data;
and B: acquiring an authority field corresponding to the field to be distributed according to the field authority matching table;
and C: distributing the selected data to a group corresponding to the permission field;
and returning to the step A until all the data to be distributed are selected.
In the embodiment of the present invention, a field corresponding to each piece of data in the to-be-distributed data needs to be matched with authority fields corresponding to all the data receiving systems, and if matching is successful, the data is distributed to a corresponding group until the data matching is completed, so as to obtain the grouped data.
S5, sending the grouped data to the message queue of the corresponding data receiving system, and informing the corresponding data receiving system to obtain the data in the message queue by using the subscription mechanism.
In this embodiment of the present invention, the notifying the corresponding data receiving system of obtaining data from the message queue by using the subscription mechanism includes:
setting access authority to the data receiving system;
and when the notification of the message queue is received, acquiring data in the message queue by using the access right.
In the embodiment of the invention, in order to ensure the confidentiality of data, the access authority is set for the data receiving system corresponding to the message queue, and the data in the message queue can be acquired only by the data receiving system corresponding to the message queue.
In the embodiment of the invention, the data receiving system to be distributed of the data to be distributed is obtained by matching the field corresponding to the data to be distributed with the pre-constructed data receiving system, the authority field of the data receiving system is utilized to group the data to be distributed, the authority field is utilized to create the message queue, only the data which can be received by the corresponding data receiving system is received in the message queue, and the differentiation of data distribution is realized.
Fig. 2 is a functional block diagram of the data distribution and management apparatus according to the present invention.
The data distribution and management apparatus 100 according to the present invention may be installed in an electronic device. According to the realized functions, the data distribution and management apparatus 100 may include a to-be-distributed data acquisition module 101, a subscription mechanism construction module 102, a to-be-distributed data grouping module 103, and a data distribution module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the data to be distributed acquisition module 101 is configured to acquire data to be distributed from a pre-constructed database, and extract a field set to be distributed from the data to be distributed;
the subscription mechanism building module 102 is configured to match the field set to be distributed with permission fields of a pre-built data receiving system, so as to obtain one or more data receiving systems matched with the field set to be distributed; establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
the to-be-distributed data grouping module 103 is configured to group the to-be-distributed data according to the permission field of the data receiving system, so as to obtain grouping data corresponding to the data receiving system;
the data distribution module 104 is configured to send the packet data to a message queue of a corresponding data receiving system, and notify the corresponding data receiving system to obtain data in the message queue by using the subscription mechanism.
Each module in the data distribution and management apparatus 100 provided in the embodiment of the present invention can use the same means as the data distribution and management method shown in fig. 1, and specific implementation steps are not described herein again, and the technical effect generated by the function of each module/unit is the same as the technical effect of the data distribution and management method shown in fig. 1, that is, the problem that the data received by subsystems with different levels are the same, and refinement and differentiated distribution of the data cannot be realized is solved.
Fig. 3 is a schematic structural diagram of an electronic device implementing the data distribution and management method according to the present invention.
The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may further include a computer program, such as a data distribution and management program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (for example, executing data distribution and management programs and the like) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a data distribution and management program, but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 3 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 3 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the electronic device may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The data distribution and management program stored in the memory 11 of the electronic device is a combination of a plurality of computer programs, and when running in the processor 10, can realize:
acquiring data to be distributed from a pre-constructed database, and extracting a field set to be distributed from the data to be distributed;
matching the field set to be distributed with the permission fields of the pre-constructed data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed;
establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
grouping the data to be distributed according to the authority field of the data receiving system to obtain grouped data corresponding to the data receiving system;
and sending the grouped data to a message queue of a corresponding data receiving system, and informing the corresponding data receiving system to acquire data in the message queue by using the subscription mechanism.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring data to be distributed from a pre-constructed database, and extracting a field set to be distributed from the data to be distributed;
matching the field set to be distributed with the permission fields of the pre-constructed data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed;
establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
grouping the data to be distributed according to the authority field of the data receiving system to obtain grouped data corresponding to the data receiving system;
and sending the grouped data to a message queue of a corresponding data receiving system, and informing the corresponding data receiving system to acquire data in the message queue by using the subscription mechanism.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any accompanying claims should not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for data distribution and management, the method comprising:
acquiring data to be distributed from a pre-constructed database, and extracting a field set to be distributed from the data to be distributed;
matching the field set to be distributed with the permission fields of the pre-constructed data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed;
establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
grouping the data to be distributed according to the authority field of the data receiving system to obtain grouped data corresponding to the data receiving system;
and sending the grouped data to a message queue of a corresponding data receiving system, and informing the corresponding data receiving system to acquire data in the message queue by using the subscription mechanism.
2. The data distribution and management method according to claim 1, wherein the obtaining data to be distributed from a pre-built database and extracting a field set to be distributed from the data to be distributed comprises:
acquiring changed data or requested data from a pre-constructed database to obtain data to be distributed;
extracting a field corresponding to the data to be distributed;
and integrating all the fields to obtain a field set to be distributed.
3. The data distribution and management method according to claim 1, wherein the matching the field set to be distributed with the permission field of the pre-constructed data receiving system to obtain one or more data receiving systems matched with the field set to be distributed comprises:
acquiring a pre-constructed field authority matching table;
and acquiring the authority field of the data receiving system corresponding to each field to be distributed in the field set to be distributed according to the field authority matching table, and matching one or more data receiving systems matched with the field set to be distributed according to the authority field.
4. The data distribution and management method of claim 3, wherein the grouping the data to be distributed according to the authority field of the data receiving system to obtain the grouped data corresponding to the data receiving system comprises:
step A: selecting one of the data from the data to be distributed, and acquiring a field to be distributed of the selected data;
and B: acquiring an authority field corresponding to the field to be distributed according to the field authority matching table;
and C: distributing the selected data to a group corresponding to the permission field;
and returning to the step A until all the data to be distributed are selected.
5. The data distribution and management method of claim 1, wherein the creating of the message queue corresponding to each data receiving system comprises:
establishing data storage queues with the same quantity according to the quantity of the data receiving systems;
and performing one-to-one mapping on the data storage queue and the data receiving systems, and setting authority field labels for the data storage queue according to the mapping relation to obtain a message queue corresponding to each data receiving system.
6. The data distribution and management method according to claim 5, wherein the subscription mechanism for establishing the message queue comprises:
setting an access time interval;
and when the message queue has the stored data, notifying the corresponding data receiving system to acquire the data from the message queue according to the access time interval.
7. The data distribution and management method according to claim 5, wherein the notifying the corresponding data receiving system of obtaining data from the message queue using the subscription mechanism comprises:
setting access authority to the data receiving system;
and when the notification of the message queue is received, acquiring data in the message queue by using the access right.
8. A data distribution and management apparatus, comprising:
the data to be distributed acquisition module is used for acquiring data to be distributed from a pre-constructed database and extracting a field set to be distributed from the data to be distributed;
the subscription mechanism building module is used for matching the field set to be distributed with the permission fields of the pre-built data receiving systems to obtain one or more data receiving systems matched with the field set to be distributed; establishing a message queue corresponding to each data receiving system, and establishing a subscription mechanism of the message queue;
the data to be distributed grouping module is used for grouping the data to be distributed according to the authority field of the data receiving system to obtain grouping data corresponding to the data receiving system;
and the data distribution module is used for sending the grouped data to a message queue of a corresponding data receiving system and informing the corresponding data receiving system to acquire data from the message queue by using the subscription mechanism.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores computer program instructions executable by the at least one processor to enable the at least one processor to perform the data distribution and management method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the data distribution and management method according to any one of claims 1 to 7.
CN202110757442.0A 2021-07-05 2021-07-05 Data distribution and management method and device, electronic equipment and readable storage medium Pending CN113342867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110757442.0A CN113342867A (en) 2021-07-05 2021-07-05 Data distribution and management method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110757442.0A CN113342867A (en) 2021-07-05 2021-07-05 Data distribution and management method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113342867A true CN113342867A (en) 2021-09-03

Family

ID=77482526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110757442.0A Pending CN113342867A (en) 2021-07-05 2021-07-05 Data distribution and management method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113342867A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661720A (en) * 2022-03-28 2022-06-24 浪潮卓数大数据产业发展有限公司 Method and system for distributing data according to authority based on message queue

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110021145A1 (en) * 2008-03-14 2011-01-27 Johnson William J System and method for targeting data processing system(s) with data
CN110278231A (en) * 2018-03-16 2019-09-24 中移(苏州)软件技术有限公司 A kind of data subscription distribution method and system
CN111327696A (en) * 2020-02-17 2020-06-23 北京奇艺世纪科技有限公司 Data processing method and system
CN112953757A (en) * 2021-01-26 2021-06-11 北京明略软件系统有限公司 Data distribution method, system and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110021145A1 (en) * 2008-03-14 2011-01-27 Johnson William J System and method for targeting data processing system(s) with data
CN110278231A (en) * 2018-03-16 2019-09-24 中移(苏州)软件技术有限公司 A kind of data subscription distribution method and system
CN111327696A (en) * 2020-02-17 2020-06-23 北京奇艺世纪科技有限公司 Data processing method and system
CN112953757A (en) * 2021-01-26 2021-06-11 北京明略软件系统有限公司 Data distribution method, system and computer equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661720A (en) * 2022-03-28 2022-06-24 浪潮卓数大数据产业发展有限公司 Method and system for distributing data according to authority based on message queue

Similar Documents

Publication Publication Date Title
CN112052370A (en) Message generation method and device, electronic equipment and computer readable storage medium
CN112653760B (en) Cross-server file transmission method and device, electronic equipment and storage medium
CN112115145A (en) Data acquisition method and device, electronic equipment and storage medium
CN112015815A (en) Data synchronization method, device and computer readable storage medium
CN112580079A (en) Authority configuration method and device, electronic equipment and readable storage medium
CN112949278A (en) Data checking method and device, electronic equipment and readable storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN112217639B (en) Data encryption sharing method and device, electronic equipment and computer storage medium
CN113342867A (en) Data distribution and management method and device, electronic equipment and readable storage medium
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN111901224A (en) Method, device and equipment for loading delayed messages and computer readable storage medium
CN114547011A (en) Data extraction method and device, electronic equipment and storage medium
CN115145870A (en) Method and device for positioning reason of failed task, electronic equipment and storage medium
CN114491196A (en) Information granularity-based information export method, device, equipment and medium
CN114820132A (en) Order distribution method and device, electronic equipment and storage medium
CN114185588A (en) Incremental package generation method, device, equipment and storage medium
CN114625712A (en) Data synchronization method and device, electronic equipment and storage medium
CN114201466A (en) Method, device and equipment for preventing cache breakdown and readable storage medium
CN112988888A (en) Key management method, key management device, electronic equipment and storage medium
CN114003661A (en) Offline data entry method and device, electronic equipment and storage medium
CN113240351A (en) Business data consistency checking method and device, electronic equipment and medium
CN113918305A (en) Node scheduling method and device, electronic equipment and readable storage medium
CN112685384A (en) Data migration method and device, electronic equipment and storage medium
CN112669029A (en) Bank card adding method, device, equipment and computer readable storage medium

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