Dynamic distribution support method based on business consumption
By adopting a dynamic distribution support method based on business consumption in the business system, the problems of low data distribution efficiency and insufficient data accuracy are solved, efficient, secure and real-time data processing and synchronization are achieved, and the stability and flexibility of the system are improved.
Patent Information
- Application Number
- CN202510347434.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-06-27
AI Technical Summary
Data distribution in existing business systems is inefficient, data accuracy is insufficient, and effective management and monitoring mechanisms are lacking, resulting in data loss or errors, affecting the normal operation of business processes.
The dynamic distribution support method based on business consumption is adopted, and the database table structure of the business consumption end is configured to integrate data processing and business components, and data push, download, downlink and processing interface services are provided, and real-time data synchronization and processing are achieved using message queues.
It improves data processing efficiency, enhances data security and integrity, realizes real-time data synchronization and processing, improves error processing capabilities, supports flexible data processing requirements, and optimizes resource management and monitoring and analysis.
Smart Images

Figure CN120215891A_ABST
Abstract
Description
Technical Field
[0001] The present invention discloses a dynamic distribution support method based on service consumption, which relates to the technical field of computer software. Background Art
[0002] In existing business systems, data distribution usually faces problems such as low efficiency and insufficient data accuracy. Especially when dealing with large-scale data distribution, the lack of effective management and monitoring mechanisms easily leads to data loss or errors, affecting the normal operation of business processes. Summary of the Invention
[0003] Aiming at the problems of the prior art, the present invention provides a dynamic distribution support method based on service consumption, which improves data distribution efficiency, ensures data security and integrity, realizes real-time data synchronization and processing, optimizes the error handling mechanism, supports flexible data processing requirements, and enhances resource management and maintenance capabilities.
[0004] The specific solution proposed by the present invention is as follows:
[0005] The present invention provides a dynamic distribution support method based on service consumption, including:
[0006] Step 1: Configure the database table structure of the service consumption end, and record the configuration information of service components through the database table.
[0007] Step 2: Perform data processing on the service consumption end: Parse the obtained consumption data, match the corresponding configuration information in the database table according to the parsing result, call the relevant beanId or API, and return the configuration information to each service component.
[0008] Step 3: Introduce the dependency information of relevant components in the configuration file of the service component for the function integration of the service component.
[0009] Step 4: Carry out the specific service development of the service component, providing data push service, data download service, data downlink service, data processing interface service, and interface information maintenance service.
[0010] Step 5: Provide a unified API for service components to call through the data push service for pushing data; download data through the data download service; provide a downlink service interface through the data downlink service, allowing service components to trigger the downlink service interface, receive response messages, and call the data processing API to backhaul the response messages; record the call situation of data processing classes through the data processing interface service, and provide retry support for problems occurring during the business data processing to ensure that the data can be correctly transmitted. Provide page configuration and maintain configuration information through the interface information maintenance service to ensure that the configuration information is initialized by developers and cannot be randomly added or deleted.
[0011] Further, in step 5 of the method for supporting dynamic distribution based on service consumption, the data processing interface path provided by the service component is maintained in interface_info.data_process_url. For paging interfaces, all paging data is automatically cyclically obtained and processed; for non-paging interfaces, the data returned by the industry interface is directly used as a parameter to call the data processing interface.
[0012] Further, when developing the specific service of the service component in step 4 of the method for supporting dynamic distribution based on service consumption, an MQ message real-time synchronization service is also provided. The consumption queue is monitored through the MQ message real-time synchronization service to obtain the consumption queue data in real time, and the consumption queue data is dynamically processed and processed.
[0013] Further, in step 5 of the method for supporting dynamic distribution based on service consumption, a paging download request is made according to the set field identifiers through the data download service to facilitate the effective transmission of a large amount of data. The field identifiers include the total row number field identifier, the number of rows per page field identifier, and the page number field identifier.
[0014] The present invention also provides a device for supporting dynamic distribution based on service consumption, including a configuration module, a data processing module, an integration module, a service development module, and an execution module.
[0015] The configuration module configures the database table structure of the service consumption end and records the configuration information of the service component through the database table.
[0016] The data processing module processes the data at the service consumption end: parses the obtained consumption data, matches the corresponding configuration information in the database table according to the parsing result, calls the relevant beanId or API, and returns the configuration information to each service component.
[0017] The integration module introduces the dependency information of relevant components in the configuration file of the service component for the function integration of the service component.
[0018] The service development module conducts the specific service development of the service component, providing a data push service, a data download service, a data downlink service, a data processing interface service, and an interface information maintenance service.
[0019] The execution module provides a unified API through the data push service for business components to call for data pushing; downloads data through the data download service; provides a downlink service interface through the data downlink service, allowing business components to trigger the downlink service interface, receive response messages, and call the data processing API to return the response messages; records the call status of data processing classes through the data processing interface service, and provides retry support for problems occurring during the business data processing to ensure correct data transmission. It provides page configuration and maintains configuration information through the interface information maintenance service to ensure that the configuration information is initialized by developers and cannot be randomly added or deleted.
[0020] Furthermore, the execution module of the dynamic distribution support device based on business consumption maintains the data processing interface path provided by business components in interface_info.data_process_url. For paging interfaces, it automatically loops to obtain all paging data and processes it; for non-paging interfaces, it directly uses the data returned by the industry interface as parameters to call the data processing interface.
[0021] Furthermore, when the service development module of the dynamic distribution support device based on business consumption conducts specific service development for business components, it also provides an MQ message real-time synchronization service. Through the MQ message real-time synchronization service, it listens to the consumption queue, obtains the consumption queue data in real time, and dynamically processes and processes the consumption queue data.
[0022] Furthermore, the execution module of the dynamic distribution support device based on business consumption makes paging download requests according to the set field identifiers through the data download service to facilitate the effective transmission of a large amount of data. The field identifiers include the total row number field identifier, the number of rows per page field identifier, and the page number field identifier.
[0023] The advantages of the present invention are as follows:
[0024] Improve data processing efficiency: Through unified data push and download services, the data interaction process between different systems is simplified, the need for manual intervention is reduced, and the data processing efficiency is improved.
[0025] Enhance data security: Encryption technology can be adopted during data transmission to ensure the security and integrity of data, and prevent data from being tampered with or leaked during transmission.
[0026] Achieve real-time data synchronization: The message queue technology can be further utilized to achieve real-time data synchronization and processing, enhancing the system's response speed and real-time performance, which is especially suitable for activities that need to quickly respond to market changes.
[0027] Enhance error handling capabilities: The design includes detailed interface call logging and an error retry mechanism, which can effectively trace the source of problems and automatically attempt to fix errors, greatly enhancing the stability and reliability of the system.
[0028] Support flexible data processing requirements: Allow business components to provide custom data processing interfaces and can dynamically call corresponding data processing logics according to configurations, meeting diverse business needs.
[0029] Optimize resource management: Through the effective management and maintenance of data interfaces, it can help enterprises better plan and utilize existing resources, reducing unnecessary expenses.
[0030] Facilitate monitoring and analysis: Provide a comprehensive logging function, including interface call logs and data processing call logs, facilitating subsequent performance evaluation, fault troubleshooting, and business analysis work. Description of the Drawings
[0031] Figure 1 It is a schematic diagram of the method flow of the present invention. Detailed Embodiments
[0032] The present invention will be further described below in conjunction with the drawings and specific embodiments, so that those skilled in the art can better understand the present invention and be able to implement it, but the embodiments cited are not intended to limit the present invention.
[0033] Embodiment 1
[0034] The present invention provides a dynamic distribution support method based on business consumption, including:
[0035] Step 1: Configure the database table structure of the business consumption end, and record the configuration information of business components through the database table. The database table structure in Table 1 can be referred to.
[0036] Table 1
[0037]
[0038] Step 2: Perform data processing at the business consumption end: Parse the obtained consumption data, match the corresponding configuration information in the database table according to the parsing results, call the relevant beanId or API, and return the configuration information to each business component.
[0039] Step 3: Introduce the dependency information of relevant components in the pom.xml or application.xml configuration file of the business component for the function integration of the business component.
[0040] Among them, for the data push service: developers inject the API of the push service, such as HyDataPushAPI, then assemble parameters, such as HyDataPushRequest, and obtain and process the request results.
[0041] Data download service: Similarly, inject the API of the download service, such as HyDataDownloadAPI, assemble the request parameters, call the API, and process the response results.
[0042] Data processing interface service: The business component provides a data processing interface and maintains its path in interface_info.data_process_url. For paged interfaces, automatically loop to obtain all paged data and process it; for non-paged interfaces, directly use the data returned by the industry interface as parameters to call the data processing interface.
[0043] Step 4: Conduct the specific service development of the business component, providing data push service, data download service, data downstream service, data processing interface service, MQ message real-time synchronization service, and interface information maintenance service.
[0044] Step 5: Provide a unified API through the data push service for the business component to call for pushing data.
[0045] Download data through the data download service, and conduct paged download requests according to the set field identifiers for the effective transmission of large amounts of data. The field identifiers include the total row number field identifier, the number of rows per page field identifier, and the page number field identifier.
[0046] Provide a downstream service interface through the data downstream service, allowing the business component to trigger the downstream service interface, receive the response message, and call the data processing API to backhaul the response message.
[0047] Listen to the consumption queue through the MQ message real-time synchronization service, obtain the consumption queue data in real time, and conduct dynamic processing and processing on the consumption queue data. Different priority levels can be further set so that high-priority messages can be processed first.
[0048] Record the call situation of data processing classes through the data processing interface service, and provide retry support for problems occurring during the business data processing process to ensure the correct transmission of data.
[0049] Provide page configuration and maintain configuration information through the interface information maintenance service to ensure that the configuration information is initialized by developers and cannot be added or deleted casually.
[0050] Interface call log management can also be performed: record interface call situations for subsequent query and analysis. It includes an error retry mechanism. When an interface call fails, relevant information is automatically recorded, and the operation is retried subsequently until it succeeds or reaches the preset maximum number of attempts.
[0051] Embodiment 2
[0052] The present invention also provides a dynamic distribution support device based on service consumption, including a configuration module, a data processing module, an integration module, a service development module, and an execution module.
[0053] The configuration module configures the database table structure of the service consumption end, and records the configuration information of service components through the database table.
[0054] The data processing module performs data processing on the service consumption end: parses the obtained consumption data, matches the corresponding configuration information in the database table according to the parsing result, calls the relevant beanId or API, and returns the configuration information to each service component.
[0055] The integration module introduces the dependency information of relevant components in the configuration file of the service component for the function integration of the service component.
[0056] The service development module conducts specific service development of the service component, providing data push service, data download service, data downlink service, data processing interface service, and interface information maintenance service.
[0057] The execution module provides a unified API for service components to call through the data push service for pushing data; downloads data through the data download service; provides a downlink service interface through the data downlink service, allowing service components to trigger the downlink service interface, receive response messages, and call the data processing API to return the response messages; records the data processing class call situations through the data processing interface service, and provides retry support for problems occurring during the business data processing to ensure that data can be correctly transmitted. Through the interface information maintenance service, it provides page configuration and maintains configuration information to ensure that the configuration information is initialized by developers and cannot be randomly added or deleted.
[0058] Regarding the information interaction and execution process among the above-mentioned modules in the device, since they are based on the same concept as the method embodiment of the present invention, the specific content can be referred to the description in the method embodiment of the present invention, and will not be elaborated here.
[0059] Similarly, the advantages of the device of the present invention are:
[0060] Improve data processing efficiency: Through unified data push and download services, the data interaction process between different systems is simplified, the need for manual intervention is reduced, and the data processing efficiency is improved.
[0061] Enhance data security: Encryption technology can be adopted during data transmission to ensure the security and integrity of data, preventing data from being tampered with or leaked during transmission.
[0062] Achieve real-time data synchronization: Message queue technology can be further utilized to achieve real-time data synchronization and processing, enhancing the system's response speed and real-time performance, which is especially suitable for activities that require rapid response to market changes.
[0063] Improve error handling capabilities: The design includes detailed interface call logging and an error retry mechanism, which can effectively trace the source of problems and automatically attempt to repair errors, greatly enhancing the stability and reliability of the system.
[0064] Support flexible data processing requirements: Allow business components to provide custom data processing interfaces and dynamically call corresponding data processing logics according to configurations, meeting diverse business needs.
[0065] Optimize resource management: Through effective management and maintenance of data interfaces, it can help enterprises better plan and utilize existing resources, reducing unnecessary expenses.
[0066] Facilitate monitoring and analysis: Provide comprehensive logging functions, including interface call logs and data processing call logs, which are convenient for subsequent performance evaluation, fault troubleshooting, and business analysis.
[0067] It should be noted that not all steps and modules in the above processes and device structures are necessary. Some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structures described in the above embodiments can be physical structures or logical structures. That is, some modules may be implemented by the same physical entity, or some modules may be implemented separately by multiple physical entities, or some components in multiple independent devices may jointly implement them.
[0068] The above embodiments are only preferred embodiments given to fully illustrate the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or transformations made by those skilled in the art on the basis of the present invention are all within the protection scope of the present invention. The protection scope of the present invention is subject to the claims.
Claims
1. A dynamic distribution support method based on business consumption, characterized by include: Step 1: Configure the database table structure of the business consumer end, and record the configuration information of the business components through the database table. Step 2: Process the data on the business consumer side: parse the acquired consumption data, match the corresponding configuration information in the database table according to the parsing results, call the relevant beanId or API, and return the configuration information to each business component. Step 3: Introduce dependency information of related components into the configuration file of the business component for functional integration of the business component. Step 4: Develop specific services for business components, provide data push services, data download services, data downlink services, data processing interface services, and interface information maintenance services. Step 5: Provide a unified API for business components to call and push data through the data push service; download data through the data download service; provide a downlink service interface through the data downlink service, allowing business components to trigger the downlink service interface, receive response messages, and call the data processing API to return response messages; record data processing class calls through the data processing interface service, provide retry support for problems that arise during business data processing to ensure that data can be transmitted correctly, provide page configuration and maintain configuration information through the interface information maintenance service, and ensure that the configuration information is initialized by the developer and cannot be added or deleted at will.
2. A method for supporting dynamic distribution based on business consumption according to claim 1, characterized in that In step 5, the data processing interface path provided by the business component is maintained in interface_info.data_process_url. For the paging interface, all paging data is automatically obtained and processed in a loop; for the non-paging interface, the data returned by the industry interface is directly used as a parameter to call the data processing interface.
3. According to the dynamic distribution support method based on business consumption described in claim 1, it is characterized in that when the specific service development of the business component is carried out in step 4, an MQ message real-time synchronization service is also provided, and the consumption queue is monitored through the MQ message real-time synchronization service, the consumption queue data is obtained in real time, and the consumption queue data is dynamically processed.
4. A method for supporting dynamic distribution based on business consumption according to claim 1, characterized in that In step 5, a page download request is made through the data download service according to the set field identifiers to facilitate the effective transmission of large amounts of data. The field identifiers include the total number of rows field identifier, the number of rows per page field identifier, and the page number field identifier.
5. A dynamic distribution support device based on business consumption, characterized in that It includes configuration module, data processing module, integration module, service development module and execution module. The configuration module configures the database table structure of the business consumer end and records the configuration information of the business components through the database table. The data processing module processes the data on the business consumer side: it parses the acquired consumption data, matches the corresponding configuration information in the database table according to the parsing results, calls the relevant beanId or API, and returns the configuration information to each business component. The integration module introduces dependency information of related components into the configuration files of business components for functional integration of business components. The service development module develops specific services for business components, providing data push services, data download services, data downlink services, data processing interface services, and interface information maintenance services. The execution module provides a unified API for business components to call through the data push service for pushing data; downloads data through the data download service; provides a downstream service interface through the data downstream service, allowing business components to trigger the downstream service interface, receive response messages, and call the data processing API to return response messages; records data processing class calls through the data processing interface service, provides retry support for problems that arise during business data processing to ensure that data can be transmitted correctly, provides page configuration and maintains configuration information through the interface information maintenance service, and ensures that the configuration information is initialized by the developer and cannot be added or deleted at will.
6. A dynamic distribution support device based on business consumption according to claim 5, characterized in that The execution module maintains the data processing interface path provided by the business component in interface_info.data_process_url. For the paging interface, it automatically loops to obtain all paging data and processes it; for the non-paging interface, it directly uses the data returned by the industry interface as a parameter to call the data processing interface.
7. According to claim 5, a dynamic distribution support device based on business consumption is characterized in that when the service development module performs specific service development of business components, it also provides MQ message real-time synchronization service, monitors the consumption queue through the MQ message real-time synchronization service, obtains the consumption queue data in real time, and dynamically processes the consumption queue data.
8. A dynamic distribution support device based on service consumption according to claim 5, characterized in that The execution module makes paging download requests according to the set field identifiers through the data download service to facilitate the effective transmission of large amounts of data. The field identifiers include the total number of rows field identifier, the number of rows per page field identifier, and the page number field identifier.
