Data processing method, system, electronic device and storage medium

By processing the data access request of the second business system again in the messaging system and filtering and processing the data according to its set conditions, the problem of redundant data transmission is solved and the optimization and flexibility of data transmission are achieved.

CN113626869BActive Publication Date: 2024-09-24SHAANXI JIAMAO ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110944031.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-17
Publication Date
2024-09-24
Estimated Expiration
2041-08-17

AI Technical Summary

Technical Problem

The second business system often obtains too much redundant data in different application scenarios, which cannot be effectively avoided, resulting in increased data transmission burden and difficulty in modifying the preset conditions according to specific needs.

Method used

By obtaining the data access request of the second business system in the message system, the data is processed again according to the first preset conditions set by it, and only necessary data is sent to avoid the transmission of redundant information.

Benefits of technology

It effectively reduces the redundant information obtained by the second business system, reduces the data transmission burden, and improves the flexibility and efficiency of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113626869B
    Figure CN113626869B
Patent Text Reader

Abstract

The present application relates to the field of artificial intelligence, and provides a data processing method, system, electronic device and storage medium, which are applied to a big data system including a message system, multiple first business systems and multiple second business systems, wherein the multiple first business systems are used to generate data, and the multiple second business systems are used to consume the data generated by the multiple first business systems through the message system. The present application obtains a first preset condition sent by the second business system, processes the data obtained from the message system based on the second preset condition again, and then sends the processed data to the second business system, thereby preventing the second business system from obtaining a lot of useless information and reducing the burden of data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data data processing, and more particularly to a data processing method, system, electronic device, and storage medium. Background Technology

[0002] The messaging system collects data from the first business system, manages that data, and provides data to the second business system. The first business system provides a large amount of data, including multiple message types. The second business system retrieves a specified range of data from the messaging system by establishing an association with a particular message type.

[0003] However, once the association between the second business system and the message type is established, the users of the second business system cannot change the preset conditions. But the second business system may not need all the data in the message type in different application scenarios.

[0004] Therefore, how to prevent the second business system from acquiring too much redundant data is an urgent problem to be solved. Summary of the Invention

[0005] This application provides a data processing method, system, electronic device, and storage medium. By obtaining a first preset condition sent by a second business system, and further processing the data obtained from the message system based on the second preset condition, the processed data is then sent to the second business system. This can avoid the second business system obtaining a lot of useless information and reduce the data transmission burden.

[0006] The objective and other objectives will be achieved through the features described in the independent claims. Further implementations are illustrated in the dependent claims, the specification, and the drawings.

[0007] In a first aspect, this application provides a data processing method, characterized in that it is applied to a big data system including a messaging system, multiple first business systems, and multiple second business systems, wherein the multiple first business systems generate data, and the multiple second business systems consume the data generated by the multiple first business systems through the messaging system. The method includes: the messaging system obtaining a data access request from a second business system, the data access request including an identifier of the second business system and a first preset condition, the first preset condition being set by a user of the second business system; the messaging system determining a target message type associated with the second business system and a second preset condition based on the identifier of the second business system, the second preset condition being a condition associated with the second business system and / or a condition associated with the target message type; the messaging system obtaining first data from data corresponding to the target message type from a target node according to the second preset condition, and obtaining target data from the first data according to the first preset condition, the target node being the master node among multiple nodes storing data of the target message type; and the messaging system sending the target data to the second business system.

[0008] Secondly, this application provides a big data system comprising a management system, multiple first business systems, and multiple second business systems. The multiple first business systems generate data, and the multiple second business systems consume the data generated by the multiple first business systems through the messaging system. The process involves: the first business systems sending data to the messaging system; the messaging system serializing the data sent by the first business systems to obtain serialized data; the messaging system storing the serialized data in a target node; the second business systems sending a data access request to the messaging system, the data access request including an identifier of the second business system and a first preset condition; the messaging system determining a target message type associated with the second business system and a second preset condition based on the identifier of the second business system; the messaging system retrieving first data from the data corresponding to the target message type from the target node according to the second preset condition, and retrieving target data from the first data according to the first preset condition; the messaging system deserializing the target data; and the messaging system sending the deserialized target data to the second business systems.

[0009] Thirdly, this application provides a data processing apparatus applied to a big data system including a management system, multiple first business systems, and multiple second business systems. The multiple first business systems generate data, and the multiple second business systems consume the data generated by the multiple first business systems through the message system. The apparatus includes an acquisition unit, a determination unit, and a sending unit: the acquisition unit is used to acquire a data access request from a second business system, the data access request including an identifier of the second business system and a first preset condition, the first preset condition being set by the user of the second business system; the determination unit is used to determine, based on the identifier of the second business system, a target message type associated with the second business system and a second preset condition, the second preset condition being a condition associated with the second business system and / or a condition associated with the target message type; the acquisition unit acquires first data from the data corresponding to the target message type from a target node according to the second preset condition, and acquires target data from the first data according to the first preset condition, the target node being the master node among multiple nodes storing data of the target message type; the sending unit is used to send the target data to the second business system.

[0010] Fourthly, this application provides a computer device, characterized in that it includes: a processor and a memory, the memory storing a computer program, the processor executing the computer program in the memory to perform the method as described in the first aspect.

[0011] Fifthly, this application provides a computer-readable storage medium storing a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to perform the method described in the first aspect.

[0012] In summary, the data processing method provided in this application embodiment processes data obtained based on the second preset conditions. It can obtain the data needed by the second business system according to the first preset conditions set for a specific application scenario, thus avoiding the second business system acquiring excessive useless information and reducing the data transmission burden. Attached Figure Description

[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0014] Figure 1 A schematic diagram of a messaging system architecture provided in this application embodiment;

[0015] Figure 2 This application provides a schematic diagram of the structure of a big data system according to an embodiment of the present application.

[0016] Figure 3A schematic diagram of the structure of a management system provided in an embodiment of this application;

[0017] Figure 4 A flowchart illustrating a data processing method provided in an embodiment of this application;

[0018] Figure 5 This application provides a schematic flowchart of a data processing method in an application scenario.

[0019] Figure 6 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0020] Figure 7 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation

[0021] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.

[0022] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0023] Foundational technologies of artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly include computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning. First, a detailed description of the messaging system involved in this application will be provided.

[0024] A messaging system is an information system that collects data generated by a first business system and provides data to a second business system. The first business system is the data publisher, also known as the producer; the second business system reads data from the messaging system, and is thus considered a consumer. The first business system can also be called the upstream business system, and the second business system the downstream business system. Currently, most messaging systems are distributed storage messaging systems, employing a distributed architecture to support distributed processing. Common distributed messaging systems include Kafka, Flume, Chukwa, Scribe, and MetaQ, among others.

[0025] The messaging system operates in two modes: point-to-point messaging and publish-subscribe messaging. In point-to-point messaging, data from the first business system is transmitted to a message queue. One or more second business systems consume data from this queue, but each piece of data can only be consumed once. After a second business system consumes a piece of data, it is deleted from the queue. Even with multiple second business systems consuming data simultaneously, the order of data processing is guaranteed in point-to-point messaging. In publish-subscribe messaging, data is transmitted to different topics. Second business systems can subscribe to one or more topics and consume all data within those topics. The same piece of data can be consumed by multiple second business systems, and data is not immediately deleted after consumption. In this publish-subscribe messaging system, the first business system can also be called the publisher, and the second business systems can also be called subscribers. The messaging system acquires and processes data based on artificial intelligence technology.

[0026] Kafka is an example of the publish-subscribe messaging pattern in the aforementioned messaging systems. The following section uses Kafka as an example to provide a detailed introduction to messaging systems.

[0027] The Kafka system receives data from different primary business systems. This data is of Java object type. Kafka performs serialization, converting the data from Java objects to a byte sequence. Then, it divides the data into different topics, each with multiple partitions. Secondary business systems can establish a connection with a specific partition within a specific topic based on preset conditions. Before retrieving data from the partition corresponding to those conditions, the messaging system deserializes the data, converting it from a byte sequence back to an object, and then transmits it to the secondary business system. It should be understood that the Kafka system uses classification algorithms from artificial intelligence and other machine learning algorithms to acquire and process relevant data.

[0028] After data is assigned to a partition, it is backed up, and different backups are stored by different caching brokers. That is, data for each partition is stored by a different broker. The second business system can establish a connection with the partitions in the topic based on preset conditions, specifically reading data from the broker. The broker from which the second business system obtains data is the master node in the same partition. When the master node is not functioning properly, the second business system can obtain data through other broker nodes. For example... Figure 1 As shown, the first business system includes business system 1 and business system 2, and the second business system is illustrated using business system 3 as an example. Data from both business systems 1 and 2 is transmitted to topic 1. A portion of the data from business system 1 is partitioned to partition 1, and backup data is stored in partitions 2 and 3. Each partition corresponds to a broker. Business system 3 can obtain data from broker 1, which is the master node. If broker 1 fails, the business system will obtain data from either broker 2 or broker 3.

[0029] Each topic has multiple partitions, which are divided by physical storage addresses; each partition can be viewed as a folder. From a data content perspective, each topic can also include data with multiple attributes. Kafka maps the data content of each topic to a virtual table structure for storage, with each attribute being a column of data. For example, "User Information Data" is a topic that includes attributes such as "ID," "Gender," "Name," "Address," and "Phone Number." User information data will be stored in a table structure based on these attributes, with each attribute being a column of data, resulting in a total of 5 columns.

[0030] The second business system retrieves data within a specified range from the messaging system based on preset conditions. These preset conditions are used not only to establish associations with topics, but also to retrieve data for one or more attributes within a topic. Alternatively, preset conditions can be used to retrieve data based on partial conditions of a certain attribute. For example, preset conditions could be used to retrieve data for the three attributes "ID", "gender", and "name" in "User Information Data", or user information data where "ID" is greater than 10 in the "ID" attribute of "User Information Data".

[0031] After the second business system establishes a connection with the messaging system, each time it retrieves data, it obtains data from the messaging system 120 within the same range according to preset conditions. However, in different application scenarios, the second business system may not need to use all the data within the range specified by the second preset conditions. For example, the second preset condition is to obtain user information data in "user information data" where "ID" is greater than 10. However, in one actual application scenario, the second business system needs to analyze the address distribution of users with "ID" greater than 10, so the second business system only needs to obtain the addresses of users with "ID" greater than 10. In another application scenario, it is necessary to disclose the mobile phone numbers of users with "ID" greater than 10. To ensure the privacy of user information, it is only necessary to obtain the first three or last four digits of the mobile phone numbers of users with "ID" greater than 10. Therefore, the second business system often receives too much redundant information. However, users of the second business system cannot modify the second preset conditions. If it is necessary to modify the second preset conditions, the administrators of the message system need to use the message system's management tools to modify the second preset conditions. However, the administrators usually manage multiple second business systems at the same time. If the second preset conditions need to be modified according to the actual application needs each time, it will reduce work efficiency. Moreover, after modifying the second preset conditions, the second business system needs to re-establish a connection with the message system, which will reduce the efficiency of the second business system in obtaining data. Therefore, the second preset conditions are generally not changed easily.

[0032] To address the problem that the second business system often acquires excessive and redundant information, this application provides a big data system 10, such as... Figure 2 As shown, the system includes a first business system 110, a second business system 130, a message system 120, and a management system 140. Specifically, the first business system 110 acquires first data and sends it to the message system 120; the message system 120 acquires the first data from the first business system 110 and sends it to the management system 140; the management system 140 acquires data within a specified range from the first data according to a second preset condition; the management system 140 further processes the data within the specified range according to the first preset condition to obtain second data; and the message system 120 acquires the second data and sends it to the second business system 130.

[0033] For example, if the messaging system 120 is a log processing system, the first business system 110 can be a log collection system, and the second business system 130 can be a log processing device. The first preset rule can be to obtain log information for a certain time period, and the second preset rule can be to further filter and obtain log information for a specific application based on the first preset rule. If the messaging system 120 is a messaging system, the first business system 110 is an application, and the second business system 130 is another application. If the messaging system 120 is an e-commerce messaging system, the first business system 110 can be a member information system, an order system, etc., and the second business system 130 can be an SMS system or a delivery system, etc. The first preset rule can be to obtain member information, and the second preset rule can be to obtain data in the member information where the "ID" attribute has a value greater than 10. It should be understood that this application does not specifically limit the types of the messaging system, the first business system, and the second business system.

[0034] The following is combined Figure 3 The management system 140 provided in this application is described in detail. The management system 140 includes a management service system 220, a monitoring service system 210, and a client system 230. The management service system 220 manages the second preset conditions and the first preset conditions. The client obtains data from the message system 120 based on the second preset conditions and the first preset conditions, enabling the second business system 130 to further process the data obtained under the second preset conditions based on the first preset conditions, thus avoiding the second business system 130 obtaining excessive useless information. Simultaneously, the monitoring service system 210 monitors the real-time operation of the message system 120 to ensure its normal operation.

[0035] The management service system 220 is used by administrators to manage information in the message system 120 and query data. The information managed in the message system 120 includes: topic information, second preset conditions, alarm conditions, and first preset conditions. Specifically, topic information includes the number of topics and partitions. Second preset conditions include the correspondence between the unique identifier of the second business system 130 and the second preset condition; managing the second preset conditions can include adding, deleting, and modifying them. Alarm condition management includes adding, deleting, and modifying alarm conditions, such as a threshold for the amount of traffic input per second, and adding, deleting, and modifying alarm formats, such as pop-up notifications or direct data writing stoppage. Data querying is primarily performed using parameters, querying data within a certain range, such as a time period. This allows querying based on the offset within that time period, improving query efficiency and reducing the additional load on the message system 120.

[0036] In some embodiments, the management service is also used for the security management of the messaging system 120, including user login authentication and user access permissions, wherein user access permissions are divided into administrator permissions and ordinary user permissions. Only the administrator can manage the second preset condition, and ordinary users cannot add, delete, or modify the second preset condition, but the first preset condition can be managed by ordinary users.

[0037] Monitoring services are used to monitor message status. Taking Kafka as an example, monitoring the status of the Kafka system can include: Kafka system's cache broker (broker) metrics, producer metrics, and consumer metrics. Broker metrics include: input flow per second, output flow per second, and total message writes per second, etc. Producer metrics include: average write flow per second, output flow per second, average number of requests sent to the broker per second, and average number of responses sent to the broker per second. Consumer metrics include: average number of messages consumed per second and consumption lag.

[0038] In some embodiments, the monitoring service system 210 also graphically displays the operating status of the message system 120, allowing users to more intuitively observe the operation of the message system 120. Taking the Kafka system as an example, in a specific implementation, the operating status of the Kafka system can also be graphically displayed according to three categories: broker metrics, producer metrics, and consumer metrics. The graphical display can use bar charts, pie charts, etc.

[0039] In some embodiments, the monitoring service system 210 will monitor and alert the Kafka status by combining the status and alarm conditions of the messaging system 120. For example, when the alarm condition is that the maximum data storage volume is M, the system will issue an alarm prompt before the data storage volume is about to reach M, based on the current data storage volume and the total data write volume per second. If necessary, the monitoring service system 210 can also directly interrupt the producer's data write.

[0040] The client system 230 is used to obtain the first preset condition and the data access request of the second business system 130, read data according to the second preset condition and the first preset condition of the second business system 130, and send the data to the second business system 130. Specifically, it includes: receiving the first preset condition of the second business system 130 and receiving the data access request of the second business system 130, obtaining the second preset condition and the first preset condition of the second business system 130 from the management service system 220 according to the data access request, parsing the second preset condition and the first preset condition, reading the data and sending it to the second business system 130.

[0041] In summary, the management system 140 provided in this application can obtain data from the messaging system 120 based on the first preset conditions sent by the second business system 130, process the data again, and then send the processed data to the second business system 130. This avoids the second business system 130 receiving a lot of useless information and reduces the data transmission burden. Simultaneously, the management system 140 also provides monitoring services, ensuring the normal operation of the messaging system 120 by monitoring its operational status and issuing alarms.

[0042] The following is a detailed description of a data processing method provided in this application. For example... Figure 4 As shown, the data processing method may include the following steps:

[0043] S410, The messaging system receives a data access request from the second business system.

[0044] Specifically, the messaging system obtains a data access request sent by a user of the second business system. The data access request includes the identifier of the second business system and a first preset condition.

[0045] The first preset condition is set by the user of the second business system based on the application scenario of the second business system. It is used to further process the data obtained from the message system. This processing can include field splitting, field merging, etc. Field splitting involves extracting a portion of information from a certain field, while field merging involves combining several fields into a new field. In other words, the first preset condition can be used to further filter the data to obtain a portion of the data within a specified range; or it can be used to concatenate the data within the specified range to obtain new data.

[0046] It should be understood that the first preset condition can also be called a user-defined function (UDF). The first preset condition can be set by the user through shell commands or Structured Query Language (SQL) commands. For example, creating a first preset condition as `creat udf(name) = 'zhang'` means that the first preset condition is to filter data whose names contain "zhang".

[0047] S420. The messaging system determines the target message type and second preset conditions associated with the second business system based on the identifier of the second business system.

[0048] After receiving a data access request from a user in the second business system, the messaging system sends the request to the client system. The client system retrieves the second preset conditions corresponding to the second business system from the management service system and sends these conditions to the messaging system. These second preset conditions are pre-defined by the second business system when it connects to the messaging system. They include the unique identifier of the second business system and the message type of the data the second business system needs to access, allowing the messaging system to filter data from the first set of data within a specified range.

[0049] In other words, the second preset condition is used to obtain a specified range of data from the message system when the message system establishes a connection with the second business system, and the first preset condition is used to further process the data obtained from the message system based on the second preset condition.

[0050] For example, if the messaging system is a Kafka system, the second preset condition includes the topic and specific attribute type of the data that the second business system needs to obtain. Based on the topic and specific attribute type of the data to be obtained, the messaging system can filter out the data within a specified range, and then obtain the processed data from the data within the specified range according to the first preset condition.

[0051] S430. The message system obtains the first data from the data corresponding to the target message type from the target node according to the second preset condition, and obtains the target data from the first data according to the first preset condition.

[0052] Specifically, the first business system sends the third data to the message system, which stores the third data. If the message system is a Kafka system, it stores the first data by different topics and partitions, and backs up the data in each partition, generating multiple nodes containing target nodes. Each node's target storage queue stores data corresponding to the message type. The message system retrieves the first data corresponding to the target message type from the target nodes according to a second preset condition, and then retrieves the target data from the first data according to the first preset condition. Processing the first data according to the first preset condition can involve further filtering the first data to obtain a subset, or concatenating data with different attributes from the first data to obtain new data.

[0053] In some embodiments, if the data type of the first data is a Java object, it needs to be serialized to facilitate data transmission and processing. This involves converting the data type of the first data from an object to a byte sequence, resulting in the serialized first data. Serialization can be performed using tools such as Kryo, Jackson, Fastjson, Protostuff, and FST. It should be understood that this application does not specifically limit the type of serialization tool.

[0054] In some embodiments, if the messaging system is a Kafka system, and if the second preset condition includes topic information, meaning that the second business system has not previously established a connection with a topic in the Kafka system, then the Kafka system needs to first verify the permissions of the second business system to verify whether the management service system allows the second business system to connect to the topic specified in the second preset condition. If the verification is successful, then the connection with the topic will be established.

[0055] In some embodiments, if the second preset condition and the first preset condition are set via SQL commands, the big data system also includes an SQL parser and an SQL executor. The SQL parser and SQL executor can exist independently within the big data system, or within the message system 120 or the management system. After the client obtains the second preset condition from the management service system, the SQL parser parses the second preset condition and generates a corresponding execution plan, which is then executed by the SQL executor to filter out the first data from the data. Similarly, after obtaining the first preset condition, the SQL parser also parses the first preset condition and generates a corresponding execution plan, which is then executed by the SQL executor to process the data within the specified range to obtain the target data.

[0056] S440, the messaging system sends the target data to the second business system.

[0057] The messaging system sends the target data to the second business system. In some embodiments, before sending the second data to the second business system, the second data is deserialized. Sending the second data to the second business system specifically means sending the deserialized second data to the second business system. It should be understood that the first data is a byte sequence, and if the data type remains unchanged under the second preset conditions and data processing method, the second data is also a byte sequence. The deserialization operation is used to convert the byte sequence into a Java object.

[0058] In summary, the data processing method provided in this application can obtain the first preset conditions sent by the second business system, process the data obtained from the message system based on the second preset conditions, and then send the processed data to the second business system. This can avoid the second business system 130 obtaining a lot of useless information and reduce the data transmission burden.

[0059] The following is combined Figure 5 The data processing method provided in this application is illustrated with an example. Specifically, message system 120 is a Kafka system, the data provided by the first business system is user information data, and the second business system 130 is a bank software application, which will be used as an example for detailed explanation.

[0060] The S510 and Kafka systems received data access requests from the bank's software application.

[0061] The Kafka system receives data access requests sent by users of a banking software application. These requests include the identifier of the banking software application and a first preset condition. Specifically, the first preset condition is to retrieve user data whose "name" contains the character "zhang".

[0062] The S520 and Kafka systems determine the target message type and second preset conditions associated with the bank software application based on the identifier of the bank software application.

[0063] After the Kafka system receives a data access request from a user of the bank's software application, it sends the request to the client system. The client system then retrieves the second preset condition corresponding to this second business system from the management service system. The management service system, based on the unique identifier of the bank's software application, determines that the second preset condition for this application is to read data with an "ID" greater than 10 from the user information data, and sends this second preset condition to the messaging system.

[0064] The S530 and Kafka systems retrieve the first data from the data corresponding to the target message type from the target node according to the second preset condition, and retrieve the target data from the first data according to the first preset condition.

[0065] The first business system sends user information data to the Kafka system. After the Kafka system receives the "user information data", it serializes the data and creates a corresponding topic: "user information data". This topic includes attributes such as "ID", "gender", "name", "address" and "phone number".

[0066] The Kafka system filters out data with an "ID" greater than 10 from the serialized user information data based on the second preset condition, and then filters out data with "Zhang" in the "Name" field from the data with an "ID" greater than 10 based on the first preset condition, thus obtaining the target data.

[0067] The S540 and Kafka systems send the target data to the bank's software applications.

[0068] After obtaining the target data based on the first preset condition, the Kafka system deserializes the target data and transmits it to the bank's software application.

[0069] In summary, the data processing method provided in this application can obtain a first preset condition sent by a bank software application, process the data obtained from the message system based on a second preset condition, and then send the processed data to the second business system. This can avoid the second business system obtaining a lot of useless information and reduce the data transmission burden.

[0070] To address the problem of excessive and redundant information often acquired by the second business system, this application provides a data processing device 600, applied in a management system, such as... Figure 6 As shown, the data processing device 600 includes an acquisition unit 610, a determination unit 620, and a transmission unit 630:

[0071] The acquisition unit 610 is used to acquire a data access request from the second business system. The data access request includes the identifier of the second business system and a first preset condition, which is set by the user of the second business system.

[0072] The determining unit 620 is used to determine the target message type and the second preset condition associated with the second business system based on the identifier of the second business system, wherein the second preset condition is the condition associated with the second business system and / or the condition associated with the target message type.

[0073] The acquisition unit 610 is also used to acquire the first data in the data corresponding to the target message type from the target node according to the second preset condition, and to acquire the target data from the first data according to the first preset condition. The target node is the master node among multiple nodes that store the data of the target message type.

[0074] The sending unit 630 is used to send the target data to the second business system.

[0075] In summary, the data processing device 600 provided in this application can obtain a first preset condition sent by a bank software application, process the data obtained from the message system 120 based on a second preset condition, and then send the processed data to the second business system 130. This can avoid the second business system 130 obtaining a lot of useless information and reduce the data transmission burden.

[0076] See Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 700 may be the data processing device 700 described above. For example... Figure 6 As shown, the electronic device 700 includes a processor 710, a communication interface 720, and a memory 730. The processor 710, the communication interface 720, and the memory 730 are interconnected via an internal bus 740.

[0077] The processor 710, communication interface 720, and memory 730 can be connected via a bus or communicate via wireless transmission or other means. This embodiment uses a bus 740 as an example, where the bus 740 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 740 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0078] The processor 710 may consist of one or more general-purpose processors, such as a central processing unit (CPU), or a combination of a CPU and hardware chips. The hardware chips may be application-specific integrated circuits (ASICs), programmable logic devices (PLDs), or combinations thereof. The PLDs may be complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), generic array logic (GALs), or any combination thereof. The processor 710 executes various types of digital storage instructions, such as software or firmware programs stored in memory 730, enabling the electronic device 700 to provide a wide range of services.

[0079] Specifically, the processor 710 may be composed of at least one general-purpose processor, such as a central processing unit (CPU), or a combination of a CPU and hardware chips. The aforementioned hardware chips may be application-specific integrated circuits (ASICs), programmable logic devices (PLDs), or combinations thereof. The aforementioned PLDs may be complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), generic array logic (GALs), or any combination thereof. The processor 710 executes various types of digital storage instructions, such as software or firmware programs stored in the memory 730, enabling the electronic device 700 to provide a wide range of services.

[0080] The memory 730 may include volatile memory, such as random access memory (RAM); the memory 730 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); the memory 730 may also include combinations of the above types. The memory 730 may store application code and program data. The program code can, by obtaining a first preset condition sent by the banking software application, further process the data obtained from the messaging system 120 based on a second preset condition, and then send the processed data to the second business system 130, etc. It can also be used to execute... Figure 4 Other steps described in the embodiments will not be repeated here. The code of the memory 730 may include code that implements the functions of the acquisition unit, the determination unit, and the transmission unit. The functions of the acquisition unit include... Figure 6 The functions of the acquisition unit 610 include, for example, acquiring data access requests from the second business system, acquiring first data from the data corresponding to the target message type from the target node according to a second preset condition, and acquiring target data from the first data according to the first preset condition; the functions of the determination unit include Figure 6 The determining unit 620 has functions such as determining, for example, the target message type and second preset conditions associated with the second business system based on the identifier of the second business system; the sending unit has functions including Figure 6 The function of the sending unit 630 is, for example, to send the target data to the second service system. Specific steps S410-S440, which can be used to execute the aforementioned method, and their optional steps, will not be described in detail here.

[0081] The communication interface 720 can be a wired interface (e.g., an Ethernet interface), an internal interface (e.g., a Peripheral Component Interconnect express (PCIe) bus interface), a wired interface (e.g., an Ethernet interface), or a wireless interface (e.g., a cellular network interface or a wireless LAN interface), for communicating with other devices or modules.

[0082] It needs to be explained that, Figure 7 This is merely one possible implementation of an embodiment of this application. In practical applications, the electronic device may include more or fewer components, and this is not a limitation. For details regarding anything not shown or described in the embodiments of this application, please refer to the foregoing. Figure 4 The relevant descriptions in the embodiments will not be repeated here. Figure 7 The electronic device shown can also be a computer cluster consisting of multiple computing nodes, which is not specifically limited in this application.

[0083] This application also provides a computer-readable storage medium storing instructions that, when executed on a processor... Figure 4 The method and flow shown are thus implemented.

[0084] This application also provides a computer program product, which, when run on a processor... Figure 4 The method and flow shown are thus implemented.

[0085] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., high-density digital video disc (DVD), or a semiconductor medium. The semiconductor medium can be an SSD).

[0086] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A data processing method, characterized in that: Applied to a big data system including a message system, a plurality of first business systems and a plurality of second business systems, the plurality of first business systems being used to generate data, and the plurality of second business systems being used to consume the data generated by the plurality of first business systems through the message system, the method comprising: The message system obtains a data access request from the second business system, where the data access request includes an identifier of the second business system and a first preset condition, where the first preset condition is set by a user of the second business system; The message system determines, according to the identifier of the second business system, a target message type and a second preset condition associated with the second business system, where the second preset condition is a condition associated with the second business system and / or a condition associated with the target message type; The message system obtains first data from the data corresponding to the target message type from the target node according to the second preset condition, and obtains target data from the first data according to the first preset condition, wherein the target node is a master node among multiple nodes storing data of the target message type; The message system sends the target data to the second business system.

2. The method according to claim 1, characterized in that The message system acquires first data from data corresponding to the target message type according to the second preset condition, and acquires target data from the first data according to the first preset condition, including: Determining, according to the identifier of the second business system, data last accessed by the second business system from the target message type; Acquire the first data according to the second preset condition and the data last accessed by the second business system from the target message type; The target data is acquired from the first data according to the first preset condition.

3. The method according to claim 2, characterized in that Before the message system determines the target message type and the second preset condition associated with the second business system according to the identifier of the second business system, the method further includes: When the data access request includes the identifier of the target message type, the message system determines that the second business system obtains data from the message system for the first time; The message system establishes an association relationship between the second service system and the target message type according to the identifier of the second service system and the identifier of the target message type.

4. The method according to claim 3, characterized in that The message system includes a distributed storage system. Before the message system obtains the data access request of the second business system, the method further includes: The message system receives third data sent by the first business system; The message system determines a message type of the third data; The message system stores the third data in a target storage queue of each of a plurality of target nodes, wherein the target storage queue is a queue for storing data corresponding to the message type, and the plurality of target nodes are part or all of the storage nodes in the distributed storage system.

5. The method according to claim 4, characterized in that The message system stores the third data in storage queues corresponding to the message types in multiple storage nodes, including: The message system performs a serialization operation on the third data to obtain serialized third data, wherein the serialization operation is used to convert a data type of the data obtained from the first business system from an object into a byte sequence; The message system stores the serialized third data in the target storage queues of the multiple target nodes.

6. The method according to claim 5, characterized in that The message system sends the target data to the second business system, including: The message system performs a deserialization operation on the target data, wherein the deserialization operation is used to convert the data type of the serialized stored data from a byte sequence into an object; The message system sends the deserialized target data to the second business system.

7. A big data system, characterized in that: Applied to a big data system including a management system, multiple first business systems and multiple second business systems, wherein the multiple first business systems are used to generate data, and the multiple second business systems are used to consume the data generated by the multiple first business systems through a message system: The first business system sends data to the message system; The message system performs a serialization operation on the data sent by the first business system to obtain serialized data; The message system stores the serialized data in the target node; The second business system sends a data access request to the message system, where the data access request includes an identifier of the second business system and a first preset condition; The message system determines, according to the identifier of the second business system, a target message type and a second preset condition associated with the second business system; The message system obtains first data from the data corresponding to the target message type from the target node according to the second preset condition, and obtains target data from the first data according to the first preset condition; The message system performs a deserialization operation on the target data; The message system sends the deserialized target data to the second business system.

8. A data processing device, characterized in that: Applied to a big data system including a management system, a plurality of first business systems and a plurality of second business systems, the plurality of first business systems are used to generate data, and the plurality of second business systems are used to consume the data generated by the plurality of first business systems through a message system, the device includes an acquisition unit, a determination unit and a sending unit: The acquisition unit is used to acquire a data access request of the second business system, the data access request includes an identifier of the second business system and a first preset condition, and the first preset condition is set by a user of the second business system; The determining unit is used to determine the target message type and the second preset condition associated with the second business system according to the identifier of the second business system, where the second preset condition is a condition associated with the second business system and / or a condition associated with the target message type; The acquisition unit is further used to acquire first data in the data corresponding to the target message type from the target node according to the second preset condition, and acquire target data from the first data according to the first preset condition, wherein the target node is a master node among multiple nodes storing data of the target message type; The sending unit is used to send the target data to the second business system.

9. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program in the memory to implement the method according to any one of claims 1 to 6.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 6.