Container-based distributed data subscription and distribution method and system

The container-based distributed data subscription and distribution system solves the problems of MQ protocol incompatibility and insufficient data processing capabilities in the existing technology, realizes distributed deployment and efficient data processing of the system, and improves the scalability and data utilization of the system. sex.

CN118540366APending Publication Date: 2024-08-23CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410526044.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing data subscription system has problems such as MQ communication protocol incompatibility, insufficient data filtering and search capabilities, data subscription does not support distributed and horizontal expansion, and inflexible data access, which affects the scalability and performance of the system.

Method used

Adopt a container-based distributed data subscription and distribution system to realize dynamic processing and distribution of data through components such as configuration and management platform, database, business backend, data subscription and distribution system gateway program, adaptation layer component program, and data flow orchestration executor. , supports compatible forwarding of multiple MQ protocols, provides data visualization and customized reporting capabilities, and improves data processing efficiency and system scalability.

Benefits of technology

It achieves distributed deployment and horizontal expansion of the system, improves high availability and security, supports diversified data access and push, improves data processing capabilities and utilization, and solves the problems of slow data query and low traversal efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540366A
    Figure CN118540366A
Patent Text Reader

Abstract

The invention discloses a container-based distributed data subscription and distribution method and system, belongs to the technical field of computers, supports aggregation, distribution, filtering, conversion, enrichment and execution of various operations on data by using an arrangement-based dynamic rule engine constructed by a Go language, provides data service API (Application Program Interface) access through a UI (User Interface) control and a componentization capability, and provides a distributed data subscription and distribution method and a distributed data subscription and distribution system. The data visualization capability enables the data to support flow arrangement, so that the data secondary processing capability and the report self-defining capability are realized; through a subscription grouping mode, data partition and dimension and pushing to a subqueue group of a specified queue, subscribers can subscribe for multiple nodes, so that transverse expansion of a subscription function, consumption pressure allocation and subscription capability optimization are realized; based on container capabilities, configuration load detection, auto-scaling will enable dynamic management of capacity allocation of workloads so that the infrastructure can be optimally utilized; the whole process can support the transverse expansion capability, and is configurable and rapid in iteration upgrading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a container-based distributed data subscription distribution method and system. Background Art

[0002] Most of the existing data subscription systems are implemented based on the MQ queue system. There are incompatibilities among the various MQ communication protocols and a lack of cross-MQ queue capabilities, which affects access capabilities and usage.

[0003] The MQ queue system does not support partial data deletion, and its data filtering, data search, and data reprocessing capabilities are weak, and it mainly relies on consumer terminals for processing.

[0004] The data subscription system has a single data source input method and is often used with a specified MQ protocol client. Data access does not support expansion and does not support dynamic data sources from external systems.

[0005] Data subscription nodes do not support distribution or horizontal expansion, and the node consumption pressure is high. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a container-based distributed data subscription and distribution method and system in response to the shortcomings of the background technology; based on the orchestration of the dynamic rule engine, it supports various operations on the data and enriches the data flow processing mechanism; through UI controls and componentization capabilities, it provides data service API access, data visualization capabilities, and customized reporting capabilities; it provides big data retrieval capabilities to solve the problems of slow big data query, low data traversal efficiency, and difficult data extraction, and improve business adaptation to different scenarios.

[0007] The present invention adopts the following technical solutions to solve the above technical problems:

[0008] A container-based distributed data subscription and distribution system, specifically comprising:

[0009] Configuration and management platform: used to provide a platform website to facilitate users to interactively configure the business scenario configuration of the data subscription and distribution system, and to perform version management and functional testing on the data subscription and distribution module plug-ins;

[0010] Database: used to save basic information of data subscription and distribution system, persistence strategy, persistence configuration, data converter configuration, environment configuration, plug-in information, adaptation layer component configuration, load balancing strategy and other configurations;

[0011] Business backend: used for checking the results of user-specific business data subscription and distribution system and data maintenance management, data subscription and distribution module plug-in image management and test management, and is the main development module for business docking;

[0012] Gateway program of data subscription and distribution system: responsible for the verification and check of data subscription and distribution system requests, as well as processing input parameter information, binding of service version and protocol, and forwarding of service routing information configuration;

[0013] Data subscription and distribution system adaptation layer component program: dynamic plugin loading management, responsible for data input and data capture, service request scheduling and distribution, service version management, improving distribution performance and timeout control mechanism through concurrency;

[0014] Data flow orchestration executor: responsible for data processing operation execution, data access control, data management and transmission.

[0015] A method for a container-based distributed data subscription and distribution system is abstracted into the following stages from definition to application:

[0016] Data input and capture phase, data configuration and management phase, data flow orchestration phase, data service and application phase, and data subscription and distribution phase;

[0017] The specific steps include:

[0018] Step 1: Develop data source definition, data input or capture mode;

[0019] Step 2: Configure data persistent storage and retrieval services;

[0020] Step 3: Configure data service API, customized generation, interface generation, control layout, and data access method;

[0021] Step 4: Configure data flow orchestration to implement data processing and conversion, including data filtering rules and cleaning and processing rules;

[0022] Step 5: Configure message queues, data partitions, and distributed subscription groups;

[0023] Step 6: Configure data queue subscription and distribution services;

[0024] Step 7: Customized development of plug-ins or public services;

[0025] Step 8: Publish the plug-in service to the container environment;

[0026] Step 9: Query and operate data through API services.

[0027] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, the data input and capture stage specifies the data source mode and connection configuration information based on the interface configuration; the data source can support reuse and support the processing mode of different data sources based on the data source component.

[0028] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, the data configuration and management stage is used to realize the combination of configuration and automation; specifically includes:

[0029] Data service API, by configuring data tables, data field types, binding corresponding UI controls, based on data service API service plug-ins, realizes data input autonomy;

[0030] Data queue management, through queue registration to achieve control, queue partitioning and persistence strategy configuration, SSL secure access connection, more standardized and secure.

[0031] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, in the data flow orchestration stage, the behavior plug-ins are assembled with the plug-in type + API protocol version definition, serially managed through the rule chain method, and combined and orchestrated through the Pipeline pipeline method, thereby realizing dynamic processing and orderly processing of data, enriching the data processing mechanism.

[0032] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, in the data stream orchestration stage, the data stream behavior plug-in does not need to be loaded, runs in a service-oriented mode, and is applied in the configuration interface after being published.

[0033] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, in the data service and application stage, big data storage and data retrieval are realized through ClickHouse; by introducing data service persistence capabilities, data export and secondary distribution operations are supported.

[0034] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, in the data service and application stage, data visualization capability presentation is provided through componentization, and customized data query logic is also supported to adapt business logic; reporting and statistical capability support is provided, so as to have a higher degree of control over the overall data.

[0035] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, in the data subscription and distribution stage, data is pushed to sub-subscription groups according to specified rules in a distributed subscription group manner.

[0036] As a further preferred solution of the container-based distributed data subscription and distribution method of the present invention, in the data subscription and distribution stage, the MQ protocol adaptation layer component is used to support compatible forwarding of different MQ protocols, thereby realizing support for heterogeneous system MQ. While meeting the configurability, it also supports customization, making up for the original shortcomings and expanding the distributed implementation mechanism, plug-in replacement mechanism and data visualization management of data subscription and distribution.

[0037] Compared with the prior art, the present invention adopts the above technical solution and has the following technical effects:

[0038] 1. The distributed application deployment of the present invention is transformed from a single physical host deployment mode to a distributed containerized deployment, which can be quickly horizontally expanded to meet high-load business needs; improve the high availability of the system and solve single point failures; isolate applications from each other, and improve the security of applications;

[0039] 2. The application components of the present invention are provided and combined in the form of plug-ins, the system module reuse rate is higher, the development and release speed can be parallel and become faster, the system is more extensible, supports extended plug-ins, and has flexibility; the component plug-ins run in a service-oriented mode, which enhances the testability and usability of the components and makes it more convenient to upgrade and maintain the software;

[0040] 3. The data flow arrangement of the present invention provides data filtering, aggregation, distribution, filtering, conversion, and other operations. Data pre-processing can better solve the repeated operations of client processing. Data arrangement improves data processing capabilities and is more adaptable to complex Internet business scenarios.

[0041] 4. The present invention supports diversified data access modes, data push mode, data capture mode, data service API access mode, data access customization, solves data access problems, solves data islands and data connections, and is more business adaptable; data types are bound to UI, services and interfaces are dynamically generated, and program application performance is optimized;

[0042] 5. The MQ push support of the present invention can adapt to the scenario of pushing services outward, and also supports conversion under different MQ protocols. The secondary push capability improves data utilization, thereby being more versatile and improving data sharing capabilities;

[0043] 6. The data persistence, retrieval and report presentation capabilities of the present invention achieve message persistence by introducing ClickHouse, and support the retrieval of large amounts of data. Compared with traditional relational databases, the data retrieval capability is faster, with a higher data compression rate and cost savings. The componentized presentation of reports makes data visual and easier to view and manage; the unique data ID provides support for data tracing;

[0044] 7. The real-time data deletion and filtering function of the present invention has important business significance for intercepting business data and quickly responding to data changes. Filtering is performed according to the rule set, dynamic loading is supported, and different business scenario requirements are adapted. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0046] Figure 1 It is the overall architecture diagram of the present invention;

[0047] Figure 2 It is a schematic diagram of the data persistence mechanism of the present invention;

[0048] Figure 3 It is a schematic diagram of the data persistence multi-copy processing mechanism of the present invention;

[0049] Figure 4 It is a schematic diagram of the data subscription registration mechanism of the present invention;

[0050] Figure 5 is a data subscription processing flow chart of the present invention;

[0051] Figure 6 It is a schematic diagram of the data receiving, subscribing and distributing adaptation layer mechanism of the present invention;

[0052] Figure 7 It is a schematic diagram of the rule chain data processing mechanism of the present invention. DETAILED DESCRIPTION

[0053] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings:

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The present invention is described in detail below based on the drawings and preferred embodiments, and the purpose and effect of the present invention will become clearer. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.

[0055] Glossary:

[0056] Data subscription refers to obtaining data change information of key businesses, packaging this information as message objects and pushing it to the MQ message queue, which is convenient for downstream businesses to subscribe, obtain and consume, and for users to build data synchronization between systems, such as cache updates, ETL (data warehouse technology) real-time synchronization, business asynchronous decoupling, etc.

[0057] A container is a portable software unit that combines an application and all its dependencies into a single package that is not limited by the underlying host operating system. This eliminates the need to build complex environments and simplifies the process from application development to deployment.

[0058] In order to quickly adapt to the cloud native environment and high concurrency of Internet applications, the present invention designs a new container-based data subscription distribution construction method and system.

[0059] The orchestration-based dynamic rule engine built in Go language supports data aggregation, distribution, filtering, conversion, enrichment and execution of various operations. It can meet the needs of highly personalized or frequently changing business scenarios and enrich the data stream processing mechanism.

[0060] Through UI controls and componentization capabilities, data service API access and data visualization capabilities are provided, allowing data to support process orchestration, thereby realizing data secondary processing capabilities and customized reporting capabilities.

[0061] ClickHouse provides big data retrieval capabilities to solve the problems of slow big data query, low data traversal efficiency, and difficult data extraction, and improve business adaptation to different scenarios.

[0062] Through the subscription grouping mode, data is divided into zones and dimensions and pushed to the sub-queue groups of the specified queue. Subscribers can subscribe to multiple nodes, thereby achieving horizontal expansion of the subscription function, sharing consumption pressure, and optimizing subscription capabilities.

[0063] Based on container capabilities and configured load detection, autoscaling will be able to dynamically manage capacity allocation for workloads so that the infrastructure can be optimally utilized.

[0064] The whole process can support horizontal expansion capabilities, configurability, and rapid iteration and upgrade. It provides a method for data processing, conversion, access, push, and visual management of data subscription distribution.

[0065] A container-based distributed data subscription distribution system, such as Figure 1 As shown, specifically including;

[0066] Configuration and management platform: used to provide a platform website for users to interactively configure the business scenario configuration of the data subscription and distribution system, and to perform version management and functional testing on the data subscription and distribution module plug-ins;

[0067] Database: used to save basic information of data subscription and distribution system, persistence strategy, persistence configuration, data converter configuration, environment configuration, plug-in information, adaptation layer component configuration, load balancing strategy and other configurations;

[0068] Business backend: used for checking the results of user-specific business data subscription and distribution system and data maintenance management, data subscription and distribution module plug-in image management and test management, and is the main development module for business docking;

[0069] Gateway program of data subscription and distribution system: responsible for the verification and check of data subscription and distribution system requests, as well as processing input parameter information, binding of service version and protocol, and forwarding of service routing information configuration;

[0070] Data subscription and distribution system adaptation layer component program: dynamic plugin loading management, responsible for data input and data capture, service request scheduling and distribution, service version management, improving distribution performance and timeout control mechanism through concurrency;

[0071] Data flow orchestration executor: responsible for data processing operation execution, data access control, data management and transmission.

[0072] like Figures 2 to 6 As shown, the container-based data subscription and distribution method and system can be abstracted into several stages from definition to application: data input and capture stage, data configuration and management stage, data flow orchestration stage, data service and application stage, and data subscription and distribution stage.

[0073] The steps to use the data subscription system are as follows:

[0074] Step 1: Develop data source definition, data input or capture mode;

[0075] Step 2: Configure data persistent storage and retrieval services;

[0076] Step 3: Configure data service API, customized generation, interface generation, control layout, and data access method;

[0077] Step 4: Configure data flow orchestration to implement data processing and conversion, including data filtering rules and cleaning and processing rules;

[0078] Step 5: Configure message queues, data partitions, and distributed subscription groups;

[0079] Step 6: Configure data queue subscription and distribution services;

[0080] Step 7: Customized development of plug-ins or public services;

[0081] Step 8: Publish the plug-in service to the container environment;

[0082] Step 9: Query and operate data through API services.

[0083] From the definition stage, the present invention isolates the resources of the data subscription system with namespace, adopts the subscription registration system to standardize the subscription access process, configures data persistence capability to optimize big data query, improves subscription capability expansion through distributed node subscription, improves data processing capability through data stream engine conversion, supports heterogeneous MQ system push, and improves versatility.

[0084] In the data input and capture phase, based on the interface configuration, specify the data source method and connection configuration information. The data source can support reuse, and based on the data source component to support the processing methods of different data sources, it is more scalable.

[0085] In the data configuration and management stage, configuration and automation are combined.

[0086] The data service API configures data tables, data field types, binds corresponding UI controls, and implements autonomous data input based on the data service API service plug-in.

[0087] Data queue management, through queue registration to achieve control, queue partitioning and persistence strategy configuration, SSL secure access connection, more standardized and secure.

[0088] In the data flow orchestration stage, the behavior plug-ins are assembled with the plug-in type + API protocol version definition, serially managed through rule chains, and combined and orchestrated through pipelines, thereby realizing dynamic and orderly processing of data and enriching the data processing mechanism.

[0089] The data flow behavior plug-in does not need to be loaded and runs in a service-oriented mode. After being released, it can be applied on the configuration interface.

[0090] In the data service and application stage, ClickHouse is used to realize the storage and retrieval of big data, which improves the data retrieval efficiency compared with traditional relational databases.

[0091] By introducing data service persistence capabilities, we support data export and secondary distribution operations, thereby improving data utilization capabilities.

[0092] It provides data visualization capabilities through componentization and supports custom data query logic to adapt to business logic. It provides reporting and statistical capabilities to provide a higher degree of control over the overall data.

[0093] During the data subscription and distribution phase, data is pushed to sub-subscription groups according to specified rules in the form of distributed subscription groups, which improves the balanced distribution of subscription capabilities and enhances the horizontal expansion capabilities of nodes.

[0094] Through the MQ protocol adaptation layer component, compatible forwarding of different MQ protocols is supported, thereby realizing support for heterogeneous system MQ and being more universal.

[0095] Through the above method, while meeting the configurability, it also supports customization, making up for the original shortcomings and expanding the distributed implementation mechanism of data subscription and distribution, plug-in replacement mechanism, and data visualization management.

[0096] 6.1 Data Source Processing Mechanism

[0097] The data source, as the input end of the data subscription system, is supported by providing standardized public component capabilities and also supports customization.

[0098] The supported data source input methods are as follows:

[0099] (1) Change Data Push (CDP): The business party pushes the data source change message to the designated location for reception. It supports custom data message format, data message receiving API service, and data message dynamic processing mechanism.

[0100] One is the MQ access layer adapter component, which supports commonly used message middleware, Rabbitmq, Rocketmq, Kafka, etc., and supports network retransmission, message duplication detection, and exception handling.

[0101] One is custom access adaptation, which implements custom logic based on component instance code and publishes it to the plug-in pool for application.

[0102] (2) Change Data Capture (CDC), which is responsible for capturing change messages of business data sources in real time and supports change capture of multiple data sources, including Oracle, MySQL, and PostgresSQL.

[0103] The change data capture capability is mainly based on flink-cdc. Through a set of source connectors for CDC, it supports database systems such as oracle, mysql, sqlserver, postgres, db2, mongodb, tidb, oceanbase, etc.

[0104] The basic principle of change data capture is: first, read the existing data once using snapshot mode, and then load the subsequent changed data in real time by monitoring the database log. Some data sources monitor the WAL log by subscribing to the logical replication slot to capture data changes in real time. It is non-invasive and does not require changing the business data architecture.

[0105] 6.2 Message middleware plug-in management mechanism:

[0106] Message middleware is mainly used to support the distribution and accumulation of messages. By providing message delivery and message queue models, it can expand the communication between applications in a distributed environment.

[0107] Message subscription adaptation layer plug-in improves data dispatch and output capabilities.

[0108] Kafka messages are consumed, processed, and then pushed to the Topic of the corresponding type of MQ system through the adaptation layer, thereby realizing cross-MQ system consumption.

[0109] The built-in Kafka, RocketMq, and RabbitMq adapters can adapt to several mainstream MQ queue systems.

[0110] Of course, for special MQ systems, it is also supported to be implemented through custom adapters, which can be achieved by connecting to the message push API of the new type of MQ.

[0111] Multiple messaging protocols are supported both directly and through the use of plugins.

[0112] 6.3 Data persistence capability:

[0113] ClickHouse is used as the persistent storage base for messages. ClickHouse is a reliable columnar database that focuses on real-time query and analysis of large-scale data.

[0114] MQ message middleware, through the corresponding data warehouse plug-in engine, synchronizes data to ClickHouse in real time.

[0115] Compared with traditional relational databases, ClickHouse has a fast write speed, large data compression space and reduces storage occupancy, provides more efficient query performance, and is more suitable for data management of large data volumes in data subscription system scenarios.

[0116] ClickHouse is used to process real-time queries and data analysis. Its columnar storage structure enables it to quickly perform aggregate queries on large amounts of data while also efficiently processing column-specific reads.

[0117] 6.4 Data search and re-push capabilities:

[0118] Data can be retrieved and queried from ClickHouse, supporting conditional queries and visual presentation.

[0119] The data re-push capability is based on data management and setting data screening conditions. Data that meets the rules can be re-pushed to the specified queue through the search result set to achieve secondary push.

[0120] 6.5 Distributed subscription capabilities:

[0121] The data processing engine divides the data into zones and dimensions by specifying rules and pushes them to the specified queue. Messages can be sent to the specified node or nodes with the same classification dimension information.

[0122] Subscribers can be assigned to multiple nodes for subscription, so that the subscription function can be expanded horizontally.

[0123] 6.6 Real-time data deletion and filtering function:

[0124] Data filtering is mainly accessed in the following places:

[0125] (1) Filtering at the data writing end;

[0126] (2) Pre-filtering at the consumer end;

[0127] Through the front filter, read the filter rules, and filter out invalid messages if they are matched.

[0128] The filter technology types are as follows:

[0129] 1. Bloom filter: Suitable for scenarios that require high query speed and can tolerate a certain misjudgment rate.

[0130] 2. Cuckoo filter: It is suitable for scenarios with higher requirements on false positive rate, but it requires more space to store data.

[0131] 3. Redis filter: suitable for scenarios that require precise filtering.

[0132] Optimization of filter misjudgment behavior:

[0133] 1. Time-sensitive filter: Create a filter at a specified time interval. By segmenting data, the scope of conflict can be reduced, thereby reducing the false positive rate while maintaining performance.

[0134] 2. Customize the filter method to implement judgment logic and meet special business demand scenarios.

[0135] 6.7 Data subscription application componentization:

[0136] Data subscription applications often involve repeated development, and common problems recur.

[0137] Provide a unified access path for producers and consumers to solve common problems such as serialization, offset management, monitoring and alarm.

[0138] Supports custom component access, provides basic code templates and API protocols, and accelerates custom component development.

[0139] 6.8 Data traceability:

[0140] Data traceability: When data is accessed, a globally unique data ID can be generated, or a custom ID can be created and passed when a message is pushed. Each step asynchronously generates a corresponding data execution log, which can locate the data flow, ensure the uniqueness and traceability of the data, and avoid problems such as repeated sending or missing processing.

[0141] 6.9 Data Stream Orchestration Capabilities:

[0142] Data flow orchestration capabilities are used to process and transform data to build and maintain data assets and improve data practicality and business adaptability.

[0143] (1) Component-based capability building:

[0144] By refining functions into small granularity, functional components are formed, and API service capabilities are provided to the outside world, which can support GRPC and RESTful access.

[0145] (2) Rule chain:

[0146] Different components can be flexibly combined and reused to achieve highly customized and scalable business processes.

[0147] The chain of responsibility pattern is used in conjunction with the builder pattern to implement chain programming.

[0148] (3) Process orchestration:

[0149] Supports dynamic arrangement of rule chains to implement complex logic.

[0150] (4) Dynamic loading:

[0151] When the corresponding component is needed, it is dynamically introduced to avoid component expansion. Depending on the component load, it supports dynamic expansion of component nodes.

[0152] 6.10 Capability Component Plug-in Mechanism

[0153] Providing capabilities through a plug-in mechanism improves the platform's expansion functions and also provides a basis for capability upgrades.

[0154] 1. Data type UI control componentization:

[0155] Combine common data types, such as strings, numbers, time, and text types, with customized UIs to form forms, thereby making the UI interface programmable and accessible to the data service API.

[0156] 2. Data service API componentization:

[0157] By solidifying the data table and providing it in the form of components, it encapsulates common data addition, deletion, modification, query and export modes, thereby expanding data access methods and processing and supporting custom implementation.

[0158] 3. Data Visualization Component

[0159] Data presentation is mainly based on the combination of data source and data display column. Through the data type UI control, the data loading method is encapsulated to make the overall data service configurable, viewable and more operable.

[0160] 6.11 Data subscription capability management mechanism:

[0161] Conventional message queue subscription: Use the MQ message client to subscribe to queue messages and perform consumption processing. The data processing logic is executed by the client application.

[0162] Dynamic message queue subscription: Based on data stream orchestration, after the data is stream processed from the upstream, the data is dynamically written into the customized queue and provided to the downstream for subscription.

[0163] When upstream data is provided for use in multiple different scenarios, data streams are used to dynamically orchestrate and process data to improve business adaptability.

[0164] Heterogeneous system queue subscription: Different heterogeneous systems may have inconsistent MQ message protocols. Different MQ message component adaptation layers are provided to consume messages and then convert them to other MQ protocols for push, thereby realizing protocol conversion and providing subscription capabilities.

[0165] The specific embodiments are as follows:

[0166] System process:

[0167] The architecture of the container-based data subscription and distribution system is as follows Figure 1 As shown, the overall data subscription registration process is as follows Figure 4 As shown, the data subscription processing flow is layered as follows Figure 6 As shown, the data receiving, subscription and distribution adaptation layer is as follows Figure 7 shown.

[0168] Define new subscription distribution items through the configuration and management platform, and set basic subscription information, including type and label, subscription name, subscription ID, namespace, etc.

[0169] Data subscription requires associated data storage configuration for data persistence and retrieval, which can be flexibly configured for different business scenarios. By configuring persistence strategy, data retention mechanism, data MQ queue type and queue name, data partition and default grouping information, etc.

[0170] Data subscription requires an associated data receiver or data capturer or a custom data receiver service component, corresponding to the processing logic of the data source input. The data receiver adapter is versioned and deployed in a containerized manner. You can configure a pre-integrated container image plus an external execution script, or a custom program, configure the source code management path, and build a data receiver adapter version image.

[0171] Data persistence mainly consists of two parts, data connector and data table definition.

[0172] The data connector type needs to be configured for data source matching and persistent data writing.

[0173] The data table definition mainly consists of basic table information, field attributes, index groups, etc., materialized view configuration, and data tables. Each table has a unique table ID, table English name, and table Chinese name. Field attributes must specify data types, add default value configuration, whether the field is required, data conversion methods, and other information.

[0174] For data subscription and distribution, you need to configure the subscription adaptation layer MQ component and the distributor component corresponding to data distribution. If it is an MQ subscription of a different protocol, you need to configure the MQ protocol converter. For specific message consumption and consumption distribution to external systems, you also need to configure specific consumption components to support it.

[0175] After the data subscription configuration is completed, you need to publish the subscription so that the new subscription configuration will take effect.

[0176] Data subscription services and plug-ins are mainly managed in an image-based manner. Through custom image building, components need to configure elastic scaling policies to support automatic expansion and reduction of nodes. Components support JSON format requests by default to facilitate functional testing.

[0177] Data receiving adapter configuration:

[0178] like Figure 7 As shown, data reception is divided into standard MQ component access adaptation layer, data reception service adaptation layer, and data capture adaptation layer, corresponding to different data source input scenarios.

[0179] The standard MQ component access adaptation layer is suitable for scenarios where MQ is directly input. You only need to configure the adapter of the corresponding MQ type.

[0180] The data receiving service adaptation layer is suitable for customized data reception, which is mainly based on customization, such as RESTful data input. The service needs to be developed, registered with the plug-in service and published first.

[0181] The data capture adaptation layer is suitable for database data synchronization and data change notification. It monitors and parses database binlog or replication slot logic synchronization through the CDC component.

[0182] Data persistence configuration and data retrieval and visualization:

[0183] Before data synchronization, you need to create the corresponding clickhouse table according to the above Figure 2 For the flowchart, three tables need to be created: data table, MQ corresponding engine table, and materialized view;

[0184] Configure the clickhouse synchronization engine corresponding to the corresponding MQ, configure the read queue information, and the corresponding table information.

[0185] After the configuration is complete, push a message through the test button to test whether the data is written into the table.

[0186] After the data persistence table is configured, you need to configure the data retriever, define the corresponding data source, and configure the visual presentation, configure the display fields and methods, and view them through preview after the configuration is completed.

[0187] Data flow orchestration configuration:

[0188] Data flow orchestration configuration is mainly aimed at scenarios where data needs to be processed.

[0189] Data processing consists of multiple public data processing components, and corresponding components can also be customized and developed and published to the plug-in system. Data orchestration is divided into two parts: rule chain and process orchestration.

[0190] Rule chains are mainly serial processing, combining related components to process data.

[0191] Process orchestration is mainly aimed at the distribution of data flows and the processing of different branches to form complex processes.

[0192] The configured rule chain can be reused.

[0193] For example, if you want to configure data to obtain values ​​from the outside for supplementation, you need to configure a Restful component to obtain values, you need to select branches based on the message MsgType type, and you need to configure a node selector component.

[0194] Data real-time filtering and deletion configuration:

[0195] Data filtering and deletion requires configuration of data filters, and the filters also need to configure data filtering rules. For example, data that meets a certain rule based on a certain field value will be skipped if the match fails.

[0196] In addition, for data filtering under specific conditions, you can configure Bloom or Cuckoo filters to implement ID filtering and specified user filtering, which can save data space and provide higher matching performance.

[0197] Those skilled in the art can understand that the above are only preferred examples of the invention and are not intended to limit the invention. Although the invention is described in detail with reference to the above examples, those skilled in the art can still modify the technical solutions recorded in the above examples or replace some of the technical features with equivalents. Any modification, equivalent replacement, etc. made within the spirit and principle of the invention should be included in the protection scope of the invention. All technical features in this embodiment can be freely combined according to actual needs.

[0198] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A container-based distributed data subscription and distribution system, characterized by: Specifically include: Configuration and management platform: used to provide a platform website to facilitate users to interactively configure the business scenario configuration of the data subscription and distribution system, and to perform version management and functional testing on the data subscription and distribution module plug-ins; Database: used to save basic information of data subscription and distribution system, persistence strategy, persistence configuration, data converter configuration, environment configuration, plug-in information, adaptation layer component configuration, load balancing strategy and other configurations; Business backend: used for checking the results of user-specific business data subscription and distribution system and data maintenance management, data subscription and distribution module plug-in image management and test management, and is the main development module for business docking; Gateway program of data subscription and distribution system: responsible for the verification and check of data subscription and distribution system requests, as well as processing input parameter information, binding of service version and protocol, and forwarding of service routing information configuration; Data subscription and distribution system adaptation layer component program: dynamic plugin loading management, responsible for data input and data capture, service request scheduling and distribution, service version management, improving distribution performance and timeout control mechanism through concurrency; Data flow orchestration executor: responsible for data processing operation execution, data access control, data management and transmission.

2. A method of a distributed data subscription and distribution system based on the container of claim 1, characterized in that: From definition to application, it is abstracted into the following stages: Data input and capture phase, data configuration and management phase, data flow orchestration phase, data service and application phase, and data subscription and distribution phase; The specific steps include: Step 1: Develop data source definition, data input or capture mode; Step 2: Configure data persistent storage and retrieval services; Step 3: Configure data service API, customized generation, interface generation, control layout, and data access method; Step 4: Configure data flow orchestration to implement data processing and conversion, including data filtering rules and cleaning and processing rules; Step 5: Configure message queues, data partitions, and distributed subscription groups; Step 6: Configure data queue subscription and distribution services; Step 7: Customized development of plug-ins or public services; Step 8: Publish the plug-in service to the container environment; Step 9: Query and operate data through API services.

3. The method of the container-based distributed data subscription and distribution system according to claim 2, characterized in that: In the data input and capture phase, based on the interface configuration, the data source mode and connection configuration information are specified; Data sources can be reused and support different data source processing methods based on data source components.

4. The method of the container-based distributed data subscription and distribution system according to claim 2, characterized in that: The data configuration and management stage is used to realize the combination of configuration and automation; specifically includes: Data service API, by configuring data tables, data field types, binding corresponding UI controls, based on data service API service plug-ins, realizes data input autonomy; Data queue management, through queue registration to achieve control, queue partitioning and persistence strategy configuration, SSL secure access connection, more standardized and secure.

5. The method of the container-based distributed data subscription and distribution system according to claim 2, characterized in that: In the data flow orchestration stage, the behavior plug-ins are assembled with the plug-in type + API protocol version definition, serially managed through the rule chain method, and combined and orchestrated through the pipeline method, so as to realize dynamic processing and orderly processing of data and enrich the data processing mechanism.

6. The method of the container-based distributed data subscription and distribution system according to claim 5, characterized in that: In the data flow orchestration stage, the data flow behavior plug-in does not need to be loaded and runs in a service-oriented mode. After being released, it is applied in the configuration interface.

7. The method of the container-based distributed data subscription and distribution system according to claim 2, characterized in that: In the data service and application stage, ClickHouse is used to realize the storage and retrieval of big data; by introducing the data service persistence capability, it supports the export and secondary distribution of data.

8. The method of the container-based distributed data subscription and distribution system according to claim 7, characterized in that: In the data service and application stage, data visualization capabilities are provided through componentization, and customized data query logic is supported to adapt to business logic; reporting and statistical capabilities are provided to provide a higher degree of control over the overall data.

9. The method of the container-based distributed data subscription and distribution system according to claim 2, characterized in that: In the data subscription and distribution stage, data is pushed to sub-subscription groups according to specified rules in a distributed subscription group manner.

10. The method of the container-based distributed data subscription and distribution system according to claim 2, characterized in that: In the data subscription and distribution stage, the MQ protocol adaptation layer component is used to support compatible forwarding of different MQ protocols, thereby realizing support for heterogeneous system MQ. While meeting the configurability, it also supports customization, making up for the original shortcomings and expanding the distributed implementation mechanism, plug-in replacement mechanism and data visualization management of data subscription and distribution.