Data processing method and system based on distributed message queue

By extracting and registering the data schema in the message middleware, and deserializing it on the consumer side, the problem of coarse-grained permission control of structured and semi-structured data in the message middleware is solved, and multiple subscriptions to the same topic are realized. Fine-grained permission control and dynamic configuration improve data access security and efficiency.

CN118277134BActive Publication Date: 2024-08-27BEIJING YOYO TIANYU SYST TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410717682.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Existing message middleware lacks fine-grained permission control when processing structured and semi-structured data, cannot meet users' fine-grained needs for data access, and cannot effectively handle situations where the data structure is unknown to the consumer.

Method used

By extracting and registering the data schema on the production side, generating schema response data, and deserializing it based on the data schema ID on the consumer side, dynamic permission configuration and field-level permission control are achieved, and multiple subscribers can only subscribe to part of the topic. data.

Benefits of technology

It implements fine-grained permission control for multiple subscribers of the same message topic, supports dynamic configuration and automatic sensing, reduces storage and transmission pressure, and provides personalized desensitization methods for different tenants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277134B
    Figure CN118277134B
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method and system based on a distributed message queue, the method comprising: in response to receiving a data request sent by a business system, the serializer at the production end extracts the data pattern corresponding to the current consumer end from the data request; the serializer at the production end registers the data pattern with the pattern management system, performs pattern processing on the response data according to the data pattern, generates pattern response data, and adds the data pattern ID and the pattern response data to the message middleware; the current consumer end obtains the data pattern ID and the pattern response data from the message middleware, the deserializer at the current consumer end extracts the data pattern ID, queries the data pattern corresponding to the data pattern ID through the pattern management system, deserializes the pattern response data according to the data pattern; and consumes the deserialized pattern response data. In this way, dynamic configuration, automatic perception, non-intrusiveness and dynamic permission configuration can be supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of data processing, and in particular, to a data processing method, system, device, and computer-readable storage medium based on a distributed message queue. Background Art

[0002] With the development of distributed systems, the status of message middleware is gradually rising. Since message middleware has no strict restrictions on the content structure of the topic, it is left to the user to define it. It can be structured (two-dimensional table, database table), semi-structured (JSON, XML), or unstructured (binary). Although it provides flexibility, it also brings some problems. First, due to the lack of strict structure definition, the consumer does not know the structure of the data when processing the data and cannot process it; second, due to the lack of metadata information of the data, the data permission control of the message middleware is only at the level of topic (Topic, Subject), and no fine-grained control is performed. For unstructured data, permission control at the topic level is completely sufficient. However, in actual use, there are more structured and semi-structured business data. The permission control of this type of data is at the topic level, which is coarse-grained and cannot meet the needs. A fine-grained permission control is needed to solve the user's pain points.

[0003] Regarding the first problem, the effective methods currently on the market are: 1. Artificially agree on the data structure in advance 2. Attach metadata when writing data.

[0004] For the second question, a commonly used method on the market is to split data by field and write it to different topics, then configure different user permissions for different topics, so that different users can access data in different fields, thereby completing fine-grained data permission control of messages. Summary of the invention

[0005] According to an embodiment of the present application, a data processing solution based on a distributed message queue is provided, which can achieve that for the same published message topic, multiple different subscribers only subscribe to part of the data in the topic, and supports dynamic configuration, automatic perception, non-intrusion and dynamic permission configuration.

[0006] In a first aspect of the present application, a data processing method based on a distributed message queue is provided, comprising:

[0007] In response to receiving a data request sent by the business system, the serializer at the production end extracts a data schema corresponding to the current consumer end from the data request;

[0008] The serializer at the production end registers the data pattern with the pattern management system, performs pattern processing on the response data according to the data pattern, generates pattern response data, and adds the data pattern ID and the pattern response data to the message middleware;

[0009] The current consumer obtains the data pattern ID and pattern response data from the message middleware. The deserializer of the current consumer extracts the data pattern ID, queries the data pattern corresponding to the data pattern ID through the pattern management system, deserializes the pattern response data according to the data pattern; and consumes the deserialized pattern response data.

[0010] In some embodiments, the data schema includes the type and field of the data;

[0011] Among them, the types include:

[0012] SchemaDesc, Schema and Field;

[0013] The fields include:

[0014] Unique identifier, subject, version, schema type, and mode.

[0015] In some embodiments, querying the data mode corresponding to the data mode ID through the mode management system includes:

[0016] The data mode corresponding to the data mode ID and the field permissions of the current consumer are queried through the mode management system.

[0017] In some embodiments, it also includes:

[0018] The permission level of the current consumer is determined based on the type and field in the data mode.

[0019] In some embodiments, it also includes:

[0020] Pre-set the permissions of the consumer end according to the data model:

[0021] After the deserializer at the consumer end queries the data mode corresponding to the data mode ID through the mode management system, it determines the permission level of the current consumer end according to the type and field in the data mode.

[0022] In some embodiments, deserializing the schema response data according to the data schema includes:

[0023] The pattern response data is deserialized according to the data pattern, and the pattern response data is subjected to corresponding field clipping, field desensitization and / or field encryption according to the authority level of the current consumer end.

[0024] In some embodiments, the data request includes a permission level of the consumer, and the permission level is pre-configured in the mode management system.

[0025] In a second aspect of the present application, a data processing system based on a distributed message queue is provided, comprising:

[0026] The production end and the consumer end, the serializer set at the production end and the deserializer set at the consumer end, and the mode management system; wherein,

[0027] The production end is used to receive data requests sent by the business system;

[0028] The serializer is used to extract the data pattern corresponding to the current consumer end from the data request; register the data pattern with the pattern management system, perform pattern processing on the response data according to the data pattern, generate pattern response data, and add the data pattern ID and the pattern response data to the message middleware;

[0029] The consumer end is used to obtain the data mode ID and mode response data from the message middleware; and consume the deserialized mode response data;

[0030] The deserializer is used to extract the data mode ID, query the data mode corresponding to the data mode ID through the mode management system, and deserialize the mode response data according to the data mode.

[0031] In a third aspect of the present application, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.

[0032] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present application is implemented.

[0033] The data processing method based on distributed message queue provided in the embodiment of the present application receives a data request sent by a consumer; parses the data request and extracts the data pattern in the data request; determines the authority level of the consumer and the data information requested by the consumer according to the data pattern; obtains the corresponding target data from a database according to the data information; processes the target data according to the authority level; and sends the processed target data to the consumer. This method can achieve that for the same message topic published, multiple different subscribers only subscribe to part of the data in the topic, and supports dynamic configuration, automatic perception, non-intrusion and dynamic authority configuration.

[0034] It should be understood that the contents described in the Summary of the Invention are not intended to limit the key or important features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The above and other features, advantages and aspects of the embodiments of the present application will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0036] Figure 1 A system architecture diagram of the method provided in the embodiments of the present application;

[0037] Figure 2 is a flow chart of a data processing method based on a distributed message queue according to an embodiment of the present application;

[0038] Figure 3 is a block diagram of a data processing system based on a distributed message queue according to an embodiment of the present application;

[0039] Figure 4 It is a schematic diagram of the structure of a terminal device or a server suitable for implementing the embodiments of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0041] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0042] Noun analysis:

[0043] Message middleware is a supporting software system that provides synchronous or asynchronous, reliable message transmission for application systems in a network environment based on queue and message passing technology.

[0044] Figure 1An exemplary system architecture 100 is shown to which an embodiment of a data processing method based on a distributed message queue or a data processing device based on a distributed message queue of the present application can be applied.

[0045] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0046] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as model training applications, video recognition applications, web browser applications, social platform software, etc.

[0047] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0048] When the terminals 101, 102, and 103 are hardware, a video acquisition device may be installed thereon. The video acquisition device may be any device capable of acquiring video, such as a camera, a sensor, etc. A user may use the video acquisition device on the terminals 101, 102, and 103 to acquire video.

[0049] The server 105 may be a server that provides various services, such as a background server that processes data displayed on the terminal devices 101, 102, and 103. The background server may analyze the received data and feed back the processing result (target data) to the terminal device.

[0050] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0051] It should be understood that Figure 1 The number of terminal devices, networks and servers in the above is only illustrative. According to the implementation requirements, there may be any number of terminal devices, networks and servers. In particular, when the target data does not need to be acquired remotely, the above system architecture may not include a network, but only include terminal devices or servers.

[0052] like Figure 2 , is a flow chart of a data processing method based on a distributed message queue according to an embodiment of the present application. Figure 2 It can be seen that the data processing method based on the distributed message queue of this embodiment includes the following steps:

[0053] S210: In response to receiving a data request sent by the business system, the serializer at the production end extracts a data schema corresponding to the current consumer end from the data request.

[0054] In this embodiment, the execution subject (eg Figure 1 The server shown) can obtain the data request through a wired or wireless connection.

[0055] Furthermore, the execution subject can usually obtain an electronic device (such as Figure 1 The data request may be a data request sent by the terminal device shown in the figure, or may be a data request pre-stored locally.

[0056] In some embodiments, the data request includes the Schema ID, permission information, type information and / or requested data information of the consumer, etc., and the data request is usually a serialized message.

[0057] When receiving a data request sent by the business system, the serializer at the production end extracts the data mode corresponding to the current consumer end from the data request.

[0058] S220: The serializer at the production end registers the data pattern with the pattern management system, performs pattern processing on the response data according to the data pattern, generates pattern response data, and adds the data pattern ID and the pattern response data to the message middleware.

[0059] In some embodiments, the data mode (schema) of the current consumer end and the Schema object are extracted from the data request (message middleware) to obtain the field-level permission configuration of the current consumer end; the data mode is the metadata of the data, which is used to describe the structure of the data, including the fields and type information of the data, specifically:

[0060] SchemaDesc:

[0061] Long id; / / unique identifier

[0062] String subject; / / Subject

[0063] String version; / / version

[0064] String schemaType; schema type

[0065] Schema schema; / / mode

[0066] Schema:

[0067] String type; / / Type

[0068] String name; / / name

[0069] String namespace; / / namespace

[0070] Fields fields; / / fields

[0071] Field:

[0072] String name; / / name

[0073] String type; / / Type

[0074] String default; / / Default value

[0075] Specifically:

[0076] Register the data model (Schema) of the business system to the model management system in advance, use the Schema to serialize the message and append the Schema ID, and write it to the message middleware; after the registration is completed, you can view the Schema registered on the consumer side through the model management system, and configure different field permissions for different users, different consumer groups, and different consumer topics, as shown in Table 1:

[0077] Table 1

[0078]

[0079] Authorization operations on the consumer side can be based on the definition mode of the above Schema object. That is, authorization operations are performed on the fields in the schema, including field clipping, field desensitization, field encryption, etc.

[0080] The field authorization model is as follows:

[0081] FeildPrivilege:

[0082] Long privilegeId; / / Permission Id

[0083] String group; / / Consumer group

[0084] String topic; / / message topic

[0085] String field; / / Permission field

[0086] Boolean hasAccess; / / Whether there is access permission

[0087] Long maskPolicyId; / / Desensitization processing policy Id

[0088] Boolean isMasked; / / Whether to desensitize

[0089] String customMaskedValue; custom masked value

[0090] String maskType; / / Desensitization type

[0091] Through the above method, for the same topic message, different authorization fields can be configured for different users, so that "publishing the same message topic, multiple different subscribers only subscribe to part of the data in the topic" can be achieved; different desensitization rules can be configured for different users, so that "different tenants use different desensitization methods for different fields". In other words, personalized field-level settings of user permissions can be achieved.

[0092] The serializer at the production end performs pattern processing on the response data according to the data pattern, generates pattern response data, registers the data pattern with the pattern management system, and adds the data pattern ID and the pattern response data to the message middleware.

[0093] S230: The current consumer obtains the data pattern ID and pattern response data from the message middleware, the deserializer of the current consumer extracts the data pattern ID, queries the data pattern corresponding to the data pattern ID through the pattern management system, deserializes the pattern response data according to the data pattern; and consumes the deserialized pattern response data.

[0094] The production end sends the data pattern ID and pattern response data to the current consumer end through the message middleware. The deserializer of the current consumer end extracts the data pattern ID, queries the data pattern corresponding to the data pattern ID through the pattern management system, and after determining the corresponding data pattern, parses the pattern response data and deserializes the pattern response data according to the data pattern; the deserialized pattern response data is consumed.

[0095] In this embodiment, the data mode includes the type and field of the data;

[0096] Among them, the types include:

[0097] SchemaDesc, Schema and Field;

[0098] The fields include:

[0099] Unique identifier, subject, version, schema type, and mode.

[0100] The deserializer on the consumer side queries the data schema corresponding to the data schema ID through the schema management system, including:

[0101] The data mode corresponding to the data mode ID and the field authority of the current consumer are queried through the mode management system. Specifically, the authority level of the current consumer can be determined according to the type and field in the data mode.

[0102] According to the embodiments of the present disclosure, the following technical effects are achieved:

[0103] 1. The management capability based on theme mode, supporting dynamic configuration, automatic perception, non-intrusiveness and dynamic permission configuration;

[0104] 2. The data distribution model based on the topic mode can realize the same message topic being published, and multiple different subscribers only subscribe to part of the data in the topic;

[0105] 3. Desensitize the subject data based on the subject model, and use different desensitization methods for different fields of different tenants.

[0106] 4. Based on the subject model, since data and metadata are separated and only one copy of the same metadata is stored, the waste of storage space and the pressure of data transmission can be reduced.

[0107] In addition, as an optional embodiment of the present application, in the above embodiment, it also includes:

[0108] Pre-set the permissions of the consumer end according to the data model:

[0109] After the deserializer at the consumer end queries the data mode corresponding to the data mode ID through the mode management system, it determines the permission level of the current consumer end according to the type and field in the data mode.

[0110] As another optional embodiment of the present application, deserializing the mode response data according to the data mode may include:

[0111] The pattern response data is deserialized according to the data pattern, and the pattern response data is subjected to corresponding field clipping, field desensitization and / or field encryption according to the authority level of the current consumer end.

[0112] Furthermore, in the above embodiment, the data request includes the authority level of the consumer end, and the authority level is pre-configured in the mode management system.

[0113] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0114] The above is an introduction to the method embodiment. The following is a further explanation of the scheme described in this application through an apparatus embodiment.

[0115] Figure 3 FIG. 4 shows a block diagram of a data processing system based on a distributed message queue according to an embodiment of the present application, as shown in FIG. Figure 3 Shown include:

[0116] A production end 310 and a consumption end 320, a serializer 330 disposed at the production end 310 and a deserializer 340 disposed at the consumption end 320, and a mode management system 350; wherein,

[0117] The production end 310 is used to receive data requests sent by the business system;

[0118] The serializer 330 is used to extract the data pattern corresponding to the current consumer end from the data request; register the data pattern with the pattern management system 350, perform pattern processing on the response data according to the data pattern, generate pattern response data, and add the data pattern ID and the pattern response data to the message middleware;

[0119] The consumer end 320 is used to obtain the data mode ID and mode response data from the message middleware; and consume the deserialized mode response data;

[0120] The deserializer 340 is used to extract the data mode ID, query the data mode corresponding to the data mode ID through the mode management system 350, and deserialize the mode response data according to the data mode.

[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0122] Figure 4 A schematic diagram of the structure of a terminal device or server suitable for implementing an embodiment of the present application is shown.

[0123] like Figure 4 As shown, the terminal device or server includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the terminal device or server are also stored. The CPU 401, ROM 402 and RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0124] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.

[0125] In particular, according to an embodiment of the present application, the above method flow steps can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present application are executed.

[0126] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0128] The units or modules involved in the embodiments described in the present application may be implemented by software or hardware. The units or modules described may also be arranged in a processor. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.

[0129] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the method described in the present application.

[0130] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.

Claims

1. A data processing method based on a distributed message queue, characterized in that: include: In response to receiving a data request sent by the business system, the serializer on the production side extracts a data schema corresponding to the current consumer side from the data request, wherein the data request includes the Schema ID, permission information, type information and / or requested data information of the consumer side, the data request is a serialized message, and the data schema is used to describe the structure of the data, including the fields and type information of the data; The serializer on the production side registers the data mode with the mode management system, performs mode processing on the response data according to the data mode, and generates mode response data, specifically including: extracting the data mode and Schema object of the current consumer side from the data request, obtaining the field-level permission configuration of the current consumer side, and adding the data mode ID and mode response data to the message middleware; The current consumer obtains the data pattern ID and pattern response data from the message middleware. The deserializer of the current consumer extracts the data pattern ID, queries the data pattern corresponding to the data pattern ID through the pattern management system, deserializes the pattern response data according to the data pattern; and consumes the deserialized pattern response data.

2. The method according to claim 1, characterized in that The data model includes the type and field of data; Among them, the types include: SchemaDesc, Schema and Field; The fields include: Unique identifier, subject, version, schema type, and mode.

3. The method according to claim 2, characterized in that The querying the data mode corresponding to the data mode ID through the mode management system includes: The data mode corresponding to the data mode ID and the field permissions of the current consumer are queried through the mode management system.

4. The method according to claim 2, characterized in that: Also includes: The permission level of the current consumer is determined based on the type and field in the data mode.

5. The method according to claim 2, characterized in that: Also includes: Pre-set the permissions of the consumer end according to the data model: After the deserializer at the consumer end queries the data mode corresponding to the data mode ID through the mode management system, it determines the permission level of the current consumer end according to the type and field in the data mode; When sending a data request, write the consumer's permissions into the permissions field in the data schema.

6. The method according to claim 5, characterized in that Deserializing the mode response data according to the data mode includes: The pattern response data is deserialized according to the data pattern, and the pattern response data is subjected to corresponding field clipping, field desensitization and / or field encryption according to the authority level of the current consumer end.

7. The method according to claim 1, characterized in that The data request includes the authority level of the consumer end, and the authority level is pre-configured in the mode management system.

8. A data processing system based on a distributed message queue, characterized in that: include: The production end and the consumer end, the serializer set at the production end and the deserializer set at the consumer end, and the mode management system; wherein, The production end is used to receive data requests sent by the business system; The serializer is used to extract the data schema corresponding to the current consumer end from the data request; register the data schema with the schema management system, perform schema processing on the response data according to the data schema, and generate schema response data, specifically including: extracting the data schema and Schema object of the current consumer end from the data request, obtaining the field-level permission configuration of the current consumer end, and adding the data schema ID and schema response data to the message middleware, wherein the data request includes the Schema ID, permission information, type information and / or requested data information of the consumer end, the data request is a serialized message, and the data schema is used to describe the structure of the data, including the fields and type information of the data; The consumer end is used to obtain the data mode ID and mode response data from the message middleware; and consume the deserialized mode response data; The deserializer is used to extract the data mode ID, query the data mode corresponding to the data mode ID through the mode management system, and deserialize the mode response data according to the data mode.

9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Data bus realizing method and device based on distributed message queue

    CN106302817A

  • Integrated big data management platform based on life cycle management

    CN113127462A

  • Message transmission system and method

    CN113360301A

  • Message processing system and message processing method

    CN114253748A

  • Data change record storage method and device, computer equipment and storage medium

    CN114372052A