Data broadcasting method and device, storage medium and computer program product
By separating data sources and broadcast styles in the data broadcast system, personalized customization and flexibility of data broadcasts are achieved, and the existing system's shortcomings in flexibility and personalization are solved, maintenance costs are reduced, and data is met by enterprises. High requirements for timeliness and accuracy.
Patent Information
- Application Number
- CN202411402899.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-02-07
AI Technical Summary
The existing data broadcasting system has shortcomings in flexibility and personalized customization, which is difficult to meet the high requirements of enterprises for data timeliness and accuracy, and is also expensive to maintain.
By separating the data source and the broadcast style in the data broadcast method, the target data source is determined from the data source according to the data source configuration information and the broadcast style configuration information in the received broadcast task, and the target data is retrieved, and the broadcast style and target are merged. Data generates target broadcast content.
It realizes personalized customization of data broadcasts, improves the flexibility and maintainability of the system, reduces maintenance costs, and meets the high requirements of enterprises for data timeliness and accuracy.
Smart Images

Figure CN119397068A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent data services, and in particular to a data broadcasting method, device, storage medium and computer program product. Background Art
[0002] With the rapid development of information technology, performance data reporting, as an important tool for enterprise management and operation, has undergone a significant transformation from manual statistics to automated and intelligent processing.
[0003] Early data broadcasting relied entirely on manual collection, organization and reporting, which was not only inefficient but also prone to errors, making it difficult to meet the high requirements of enterprises for data timeliness and accuracy. Subsequently, with the popularization of computer technology, data broadcasting began to be assisted by simple software tools, which achieved partial automation, but the cost of customized development for specific scenarios was high. When adding or adjusting data sources, broadcast styles and other content, redevelopment was often required, resulting in high system maintenance costs and insufficient flexibility, making it difficult to achieve personalized data broadcasting.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a data broadcasting method, device, storage medium and computer program product, aiming to solve the technical problem of how to improve the flexibility of data broadcasting.
[0006] To achieve the above purpose, the present application proposes a data broadcasting method, which includes:
[0007] Determine a target data source from the data sources according to the data source configuration information in the received broadcast task;
[0008] Retrieving target data from the target data source according to the configuration information of the broadcast style in the broadcast task;
[0009] The broadcast style in the broadcast task and the target data are combined to generate target broadcast content, and the target broadcast content is broadcast.
[0010] In one embodiment, before the step of merging the report style in the report task and the target data, the method further includes:
[0011] Generate corresponding scene components according to the scene configuration information in the broadcast task;
[0012] The step of combining the broadcast style in the broadcast task and the target data to generate target broadcast content includes:
[0013] Determine the target scene component according to the configuration information of the broadcast style;
[0014] The target scene component is called from the scene component, the broadcast style, the target scene component and the target data are merged to generate the target broadcast content.
[0015] In one embodiment, the data source includes a real-time data source, and the step of determining a target data source from the data source according to the data source configuration information in the received broadcast task includes:
[0016] Determine a trigger condition according to the broadcast task;
[0017] Determining a candidate data source from the real-time data source according to the data source configuration information;
[0018] The data that meets the trigger condition in the candidate data sources is determined as the target data source.
[0019] In one embodiment, before the step of merging the report style in the report task and the target data, the method further includes:
[0020] Determining the computing task of the broadcast task according to the configuration information of the broadcast style;
[0021] Execute the calculation operation corresponding to the calculation task on the target data to obtain the data calculation result;
[0022] The target data is updated according to the data calculation result.
[0023] In one embodiment, the step of combining the broadcast style in the broadcast task and the target data to generate target broadcast content includes:
[0024] Determining a data processing function according to the configuration information of the broadcast style;
[0025] The target data is processed by applying the data processing function, and the processed target data and the broadcast style are combined to generate the target broadcast content.
[0026] In one embodiment, before the step of broadcasting the target broadcast content, the method further includes:
[0027] Determining the target sending object of the target broadcast content according to the sending strategy of the broadcast task;
[0028] Checking whether the number of times the broadcast content is sent to the target sending object exceeds the preset sending frequency;
[0029] Check whether the target broadcast content is repeated with the historical broadcast content sent to the target sending object;
[0030] When the number of times the broadcast content is sent to the target sending object does not exceed the preset sending frequency and the target broadcast content does not overlap with the historical broadcast content, the target broadcast content is sent to the target sending object according to the sending strategy.
[0031] In one embodiment, the task configuration information includes configuration information of a data source, and the data broadcasting method includes:
[0032] Detecting the operating status of each of the data sources;
[0033] When the data source is in an enabled state and has not been added to a data execution queue, adding the data source to the data execution queue; or,
[0034] When the data source is in a disabled state and belongs to the data execution queue, the data source is removed from the data execution queue; or,
[0035] In the case where the data source is in an abnormal state, an alarm notification is sent, wherein, in the case where the data source joins the data execution queue and the final use time of the data source is earlier than the preset time, the operation state of the data source is an abnormal state.
[0036] In addition, to achieve the above purpose, the present application also proposes a data broadcasting device, the data broadcasting device comprising:
[0037] An access module, used to determine a target data source from the data sources according to the data source configuration information received in the broadcast task;
[0038] A retrieval module, used to retrieve target data from the target data source according to the configuration information of the broadcast style in the broadcast task;
[0039] The broadcast module is used to merge the broadcast style in the broadcast task and the target data, generate target broadcast content, and broadcast the target broadcast content.
[0040] In addition, to achieve the above purpose, the present application also proposes a data broadcasting device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data broadcasting method described above.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data broadcasting method described above are implemented.
[0042] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the data broadcasting method described above are implemented.
[0043] One or more technical solutions proposed in this application have at least the following technical effects: according to the configuration information of the data source in the received broadcast task, the target data source is determined from the data source, so that the data source that meets the user's needs can be obtained based on the broadcast task, which can be used for the generation of subsequent broadcast content; and then according to the configuration information of the broadcast style in the broadcast task, it is determined which fields of data in the target data source need to be obtained to complete the broadcast task, so as to determine the target data, and then the target data is merged with the broadcast style to generate the target broadcast content. The embodiment of the present application separates the broadcast content from the data source, so that when the user has the need to modify the broadcast style and / or modify the target data source, only the configuration information of the broadcast style and / or the data source configuration information needs to be modified to obtain the data broadcast content required by the user, thereby realizing the personalized customization of the data broadcast; finally, the target broadcast content is sent to complete a complete data broadcast process. By separating the data source and the broadcast style, the embodiment of the present application allows the user to personalize the broadcast style and generate more differentiated target broadcast content, thereby improving the flexibility of data broadcast. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 A flowchart of the first embodiment of the data broadcasting method of this application is provided;
[0047] Figure 2 The overall flow chart provided for the data broadcasting method of this application;
[0048] Figure 3 A schematic diagram of the generation and analysis process of the data broadcast task provided for the data broadcast method of this application;
[0049] Figure 4 This is a schematic diagram of the module structure of the data broadcasting device according to an embodiment of the present application;
[0050] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the data broadcasting method in the embodiment of the present application. DETAILED DESCRIPTION
[0051] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0052] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0053] In conventional technologies, data broadcasting technologies are mainly divided into two categories: one is the traditional method based on manual processing, which collects, organizes and analyzes performance data through manpower, and then notifies through emails, meetings, etc.; the other is customized functions developed for specific scenarios. These systems are usually designed for specific needs and can automatically capture data from business systems and generate various forms of performance reports and notifications. The customized functions of conventional data broadcasting technologies have played an important role in improving data processing efficiency and accuracy, but at the same time, they have also put forward higher requirements for the flexibility and scalability of the system.
[0054] The present application provides a solution, which determines the target data source from all data sources according to the data source configuration information in the broadcast task, thereby ensuring the accuracy and efficiency of data acquisition; and retrieves the target data required to complete the broadcast task from the target data source according to the configuration information of the broadcast style, thereby realizing the separation of the data source and the broadcast style. When modifying the data source, there is no need to worry about any interference with the existing broadcast style, thereby ensuring the stability and maintainability of the system; the independent adjustability of the broadcast style enables users to easily customize a variety of broadcast styles according to changes in demand, thereby improving the flexibility of data broadcasting; thereafter, the target data and the broadcast style are merged to obtain the target broadcast content, wherein, if there are complex scenes in the broadcast style, the relevant scene components can be directly called to implement the relevant functions, thereby saving the time for configuring the relevant broadcast style, and through the combination of different scene components, the customized expansion of the broadcast content can also be realized; finally, according to the sending strategy, the integrated target broadcast content is accurately pushed to the target audience to complete the entire target broadcast task. The embodiments of the present application can configure different data sources, broadcast styles, sending strategies and trigger conditions for different broadcast scenarios, which is convenient for personalized customization of broadcast tasks, promotes the modularization of the system architecture, and facilitates future functional expansion and optimization and upgrading, thereby improving the flexibility of data broadcasting.
[0055] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the terminal as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0056] Based on this, the embodiment of the present application provides a data broadcast method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the data broadcasting method of this application.
[0057] In this embodiment, the data broadcasting method includes steps S10 to S30:
[0058] Step S10, determining a target data source from data sources according to the data source configuration information in the received broadcast task;
[0059] It should be noted that a broadcast task refers to a request initiated by a user or other system, requiring the system to perform a data broadcast action, including all information required to perform the broadcast task, including data source configuration information; data source configuration information refers to parameters used to describe detailed information about the data source, such as the type, location, access method, etc. of the data source, which is used to guide how to select a suitable data source from a number of available data sources to perform the broadcast task.
[0060] In addition, it is necessary to explain the identification that the data source refers to the source from which the system or application obtains data. It can be a variety of storage or transmission media such as databases, files or network interfaces, such as Easticsearch, ClickHouse and Gauss, which can provide the basic data required for task execution. The target data source refers to the specific data source determined according to the data source configuration information and used to execute the broadcast task.
[0061] Exemplarily, based on a broadcast task that includes information such as a data source, graphic rendering strategy, and data processing rules specified by a user through a task configuration interface, the data source required to execute the broadcast task is automatically pulled and designated as the target data source. Subsequently, the data required for operations such as graphic rendering and data processing can be obtained from the data source, processed according to the task requirements, and ultimately a report or result is generated.
[0062] It is understandable that through the automated acquisition of target data sources, human intervention is reduced, thereby reducing labor costs, while improving the efficiency and accuracy of data processing; and dynamically adjusting task configurations and data sources according to demand can adapt to different business scenarios and data requirements, thereby achieving personalized data reporting.
[0063] Step S20, retrieving target data from a target data source according to the configuration information of the broadcast style in the broadcast task;
[0064] It should be noted that the broadcast style refers to a pre-configured template or framework, including the structure and format of the broadcast content, but does not contain specific data. For example, the preset broadcast style configuration can be a series of placeholders waiting to be filled with specific data. The target data refers to the data retrieved from the target data source that meets the requirements of the broadcast task. The target data can be processed and broadcast according to the configuration information of the broadcast style.
[0065] Step S30, merging the broadcast style and target data in the broadcast task, generating target broadcast content, and broadcasting the target broadcast content.
[0066] It should be noted that merging refers to combining the parsed broadcast style configuration with the data in the data source to generate complete broadcast content; the target broadcast content is an information entity generated by combining the preset broadcast configuration format and the actual data, which can be data in various forms such as text, pictures, audio, and video. The form of the broadcast can be text or voice broadcasting, or the generated target broadcast content can be pushed to a specified object, which is not specifically limited in this embodiment.
[0067] For example, for the generation of a sales good news, the preset broadcast style configuration of the good news generation task is parsed, and the content that needs to be filled in includes the object of congratulation and sales performance. The object of congratulation and sales performance in the data source are read, such as "Guangzhou Region" and "10 million". The final generated target broadcast content is the title "Good News" plus the congratulatory text "Warm congratulations to the Guangzhou Region for breaking through 10 million in total sales". According to the sending strategy of the good news, the generated good news (target broadcast content) is sent to all company employees through the chat tool at the top of the hour.
[0068] It is understandable that the preset broadcast style configuration can be adjusted as needed to support broadcast requirements in different scenarios, reduce repeated development for different scenarios, thereby reducing development costs and enhancing the scalability of data broadcasting.
[0069] This embodiment provides a data broadcasting method, which obtains the required data source according to the data source configuration information of the broadcasting task, can reduce human intervention errors and ensure that the acquired data is accurate; by merging the target data with the broadcasting style to generate complete broadcasting content, the final generated broadcasting content can be modified based on the broadcasting style to achieve personalized customization; finally, the target broadcasting content is broadcasted to complete the entire data broadcasting task.
[0070] In a feasible implementation manner, before step S10, the method further includes:
[0071] Step S01, receiving task configuration information to obtain a broadcast task, wherein the task configuration information includes data source configuration information, broadcast style configuration information and scene configuration information;
[0072] It should be noted that task configuration information refers to a data set used to define various parameters and rules required for task execution in a data processing or automated task system, including but not limited to data source configuration, broadcast style configuration, and sending strategy configuration; scenario configuration information refers to a set of parameters or settings used to define the environment, functional requirements, user behavior patterns, etc. in a specific application scenario.
[0073] After the broadcast task is triggered, the data collection, processing and push process will be automatically completed according to the predetermined rules.
[0074] Exemplarily, the configuration information submitted by the user is received through an interface or API (Application Programming Interface), the data source received from the user configuration is an API interface of a news website, the broadcast style is a combination of text and pictures, and the sending strategy is set to push to the local machine at 8 am every day. Based on these configuration information, the corresponding broadcast task is generated.
[0075] It is understandable that the flexibility of data broadcasting can be improved by flexibly configuring data sources, broadcasting styles, and sending strategies to meet the personalized needs of different users.
[0076] In this implementation, through flexible broadcast task configuration, it is convenient for users to adjust the broadcast tasks according to different scenarios, meet the usage requirements of different application scenarios, and achieve personalized expansion.
[0077] In a feasible implementation manner, before the step of merging the broadcast style and target data in the broadcast task in step S30, the method further includes:
[0078] Step S21, generating corresponding scene components according to the scene configuration information in the broadcast task;
[0079] It should be noted that scene components refer to software modules, interface elements, service instances, etc. that are dynamically generated or configured according to the scene configuration. They work together to achieve the functions or effects defined by the scene configuration.
[0080] In addition, it should be noted that generation refers to automatically creating or configuring corresponding scene components through programming logic or algorithms based on the information in the scene configuration, including parsing configuration parameters, calling corresponding services or APIs, creating object instances, setting properties, and other steps.
[0081] Exemplarily, the scenario information configured by the user is received - the list automatic generation scenario, which defines the display style and data ranking method of the list. According to the specific configuration of the scenario, the list automatic generation component is constructed. When the user wants to generate the list again, the component can be directly called without repeated configuration.
[0082] It can be understood that by converting complex scene configurations into corresponding components, when the user implements the same function again, there is no need to manually set parameters, which simplifies the user's operation process; in addition, in the face of new application scenarios, the scene components can be flexibly configured and expanded, which improves the maintainability and scalability of data broadcasting.
[0083] The step of combining the broadcast style and the target data to generate the target broadcast content in step S30 includes:
[0084] Step S31, determining the target scene component according to the configuration information of the broadcast style;
[0085] It should be noted that the target scene component is a component that needs to be called to complete a specific broadcast task.
[0086] Parsing refers to interpreting the configuration information of the broadcast style, understanding its structure, field requirements and other information, and preparing for subsequent merging operations.
[0087] Exemplarily, the broadcast style configuration data is parsed to identify the required component identifiers, and then the corresponding scene components are retrieved from the storage medium or resource library according to the component identifiers.
[0088] Step S32, calling the target scene component from the scene component, merging the broadcast style, the target scene component and the target data, and generating the target broadcast content.
[0089] It should be noted that calling refers to the process of using or activating a function, method or component.
[0090] For example, the total sales of the day and the current employee sales ranking list are displayed in real time on the daily performance data display screen. The report task is parsed, the list automatic ranking component is obtained, the data required for ranking is passed in, the ranking list is displayed on the report content, and the required total sales data is filled in the placeholder to generate the final target report content.
[0091] In this implementation, by parsing the broadcast style configuration, appropriate scene components are automatically called, and the components and required data are merged into the broadcast template according to the format to generate broadcast content that meets user needs, thereby improving the personalization and automation level of broadcast content generation and thus improving the flexibility of data broadcasting.
[0092] In a feasible implementation manner, the data source includes a real-time data source, and step S10 may include:
[0093] Step S11, determining a trigger condition according to the broadcast task;
[0094] It should be noted that the trigger condition refers to the specific condition for the execution of the broadcast task, which can be time, event, user interaction or other logical conditions, which are used to determine when or under what circumstances the broadcast task is activated. Data sources can include real-time data sources and batch data sources. Real-time data sources refer to information sources that can provide the latest data instantly, usually with low latency characteristics; batch data sources refer to information sources that provide data in batches or periodically, and are mainly used in broadcast tasks triggered by timing.
[0095] When the set trigger conditions are met, the corresponding tasks or operations are automatically executed.
[0096] Exemplarily, the trigger condition is set to a timed trigger, and the performance reporting system updates the total sales data for the day at 12:00 a.m. every day, that is, the total sales data reporting task for the day is configured to be triggered at 24:00 every day (trigger condition), accessing the batch data source storing the day's sales data, adding up the sales of the day's sales data, and obtaining the total sales data for the day.
[0097] It is understandable that automated timing triggering reduces manual operations and enables data update tasks to be executed during periods of low system load, thereby avoiding excessive occupation of system resources during peak hours and improving data processing efficiency; moreover, the frequency and method of data broadcasting can be adjusted according to one's own needs, thereby achieving personalized customization and adapting to different work scenarios.
[0098] Step S12, determining a candidate data source from the real-time data source according to the data source configuration information;
[0099] Step S13: Data that meets the trigger condition in the candidate data sources is determined as the target data source.
[0100] It should be noted that the candidate data source refers to a candidate data source that meets the data source configuration information; the target data source refers to a data source that is ultimately selected to perform a specific task (such as data broadcasting).
[0101] Exemplarily, the trigger condition is set to generate a good news when the software sales in a certain region exceeds 10 million. The accessible data sources provided in the data source configuration information include the real-time sales data sources and sales data sources of previous years in each region. The sales data sources (candidate data sources) in each region are accessed, and the software sales data (target data source) therein are filtered out. The rest of the data is discarded, and only the software sales data is retained for subsequent calculations and reporting.
[0102] In this implementation manner, trigger conditions are set according to needs, so that users can obtain more personalized services; at the same time, various trigger conditions are used to adapt to different data broadcasting scenarios, thereby improving the flexibility and application scope of data broadcasting.
[0103] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. On this basis, before step S30, the data broadcast method further includes steps A10 to A30:
[0104] Step A10, determining the computing task of the broadcast task according to the configuration information of the broadcast style;
[0105] It should be noted that a computing task refers to a data processing task that needs to be performed in order to complete a specific task, including computing logic and parameter settings.
[0106] For example, if the report style requires comparison between real-time sales and historical sales, the calculation tasks determined according to the report style may include sales unit conversion and calculation of sales difference.
[0107] Step A20, performing a calculation operation corresponding to the calculation task on the target data to obtain a data calculation result;
[0108] It should be noted that computing operations refer to specific computing processes or algorithms used to process target data to complete computing tasks, such as addition, subtraction, multiplication, and division.
[0109] Step A30, updating the target data according to the data calculation result.
[0110] Exemplarily, the received computing task is to calculate the sales data for one year. All sales data amounts (target data) generated within one year are directly added together to obtain the annual sales data. The annual sales data is determined as the new target data. The target data and the broadcast style are merged to generate a broadcast content for the annual sales data.
[0111] Exemplarily, the operating system allows a single program to run multiple threads at the same time. Each thread is an independent execution flow of the program, which can be executed concurrently to improve the efficiency of program operation. The received task requirement is to calculate the monthly sales of different types of goods respectively. It is divided into multiple subtasks according to the type of goods and the month. Multiple threads run each subtask separately. Although there is no merging calculation relationship between the subtasks, they still wait for the calculation of each subtask to be completed, and then package the data calculation results of each subtask together to execute the subsequent steps.
[0112] In this embodiment, the task processing efficiency is improved through task splitting and multi-threaded parallel processing; at the same time, by waiting for all calculation results, it is determined that the broadcast content is generated based on the latest and most complete data, which improves the efficiency of broadcast content generation and ensures the accuracy of the broadcast content.
[0113] In a feasible implementation manner, the step of merging the broadcast style and target data in the broadcast task in step S30 to generate the target broadcast content includes:
[0114] Step A40, applying a preset data processing function to process the target data according to the configuration information of the broadcast style;
[0115] It should be noted that the preset data processing function refers to a series of functions or algorithms pre-defined by the system, which are used to process the target data to meet the requirements of the broadcast style, such as unit conversion, four arithmetic operations and other text processing functions.
[0116] Step A50, merging the processed target data and the broadcast style to generate target broadcast content.
[0117] For example, according to the configuration information of the broadcast style, it is necessary to convert the unit of total sales from "yuan" to "10,000 yuan", use the unit conversion function to convert the total sales data, and fill the converted data into the placeholder of the broadcast style to generate the final broadcast content.
[0118] In this embodiment, by adding a data processing function to process the target data, the generated broadcast content can better meet user needs. At the same time, by setting different units or other data processing operations, it can be more suitable for different broadcast scenarios, thereby improving the flexibility of data broadcast.
[0119] In a feasible implementation manner, before the step of broadcasting the target broadcast content in step S30, the method further includes:
[0120] Step S401, determining the target sending object of the target broadcast content according to the sending strategy of the broadcast task;
[0121] It should be noted that the sending strategy refers to parameters such as the sending time, sending object and sending method that can guide the data broadcast format.
[0122] Step S402, checking whether the number of times the broadcast content is sent to the target object exceeds the preset sending frequency;
[0123] It should be noted that the number of sends refers to the number of attempts to send information or instructions to the target object (such as a user, server, etc.) within a specific time period; the preset sending frequency refers to the maximum number of sends allowed by the system or device within a set time period.
[0124] It is understandable that by limiting the frequency of information sending, excessive sending can be prevented from causing user distress or system burden.
[0125] Step S403, checking whether the target broadcast content is repeated with the historical broadcast content sent to the target recipient;
[0126] It should be noted that the historical broadcast content refers to the broadcast information that has been sent to the target recipient before. The inspection of the number of times of sending and the content of repeated broadcasts does not limit their order.
[0127] Step S403: When the number of times the broadcast content is sent to the target object does not exceed the preset sending frequency and the target broadcast content does not overlap with the historical broadcast content, the target broadcast content is sent to the target object according to the sending strategy.
[0128] Exemplarily, check whether the number of messages sent to user A on that day has reached the preset upper limit of the sending frequency. If not, further check whether the content to be sent is repeated with the content sent before. If the content is not repeated, send the prepared broadcast content to user A.
[0129] For example, if the number of transmissions to user A on that day exceeds the preset transmission frequency, or the target broadcast content to be transmitted overlaps with the previously transmitted broadcast content, the transmission is canceled, or the transmission is intercepted after transmission to prevent the broadcast information from being transmitted to the client.
[0130] In this embodiment, by controlling the sending frequency, excessive information sending is effectively avoided and users are protected from unnecessary interruptions. At the same time, by avoiding sending duplicate information, it is ensured that each piece of information received by the user is unique and valuable, thereby improving user satisfaction.
[0131] In a feasible implementation manner, the data broadcast method includes:
[0132] Step E10, detecting the operating status of each data source;
[0133] It should be noted that the operating status of a data source refers to the current working status of the data source, such as running, paused, or closed.
[0134] Step E20, when the data source is in an enabled state and has not been added to the data execution queue, add the data source to the data execution queue; or,
[0135] It should be noted that the enabled state refers to the state in which the data source is accessible and usable and can participate in the data processing process. The data execution queue refers to a queue of accessible data sources used to manage and schedule data broadcast tasks.
[0136] For example, in order to display the transaction data of each bank branch in real time, the operating status of the data sources of different branches is checked regularly. If the data source of a branch is enabled but has not been added to the data execution queue, the data source is added to the data execution queue and the transaction data of the branch is broadcast in real time.
[0137] Step E30, when the data source is in a disabled state and belongs to a data execution queue, the data source is removed from the data execution queue; or,
[0138] For example, if a branch's data source is temporarily closed for maintenance, the data source is in an inactive state, but its corresponding broadcast task is still accessing the data source in real time. Therefore, the data source needs to be removed from the data execution queue to avoid invalid access to it.
[0139] Step E40, when the data source is in an abnormal state, sending an alarm notification, wherein when the data source joins the data execution queue and the final use time of the data source is earlier than the preset time, the operation state of the data source is an abnormal state.
[0140] For example, a data source is in an enabled state and belongs to a data execution queue, but has not been consumed by a data broadcast task for a long time. The running state of the data source is determined to be abnormal, and an alarm notification is sent to the operation and maintenance team so that the problem can be promptly checked.
[0141] In this implementation, the data execution queue of the data broadcasting task is dynamically adjusted according to the status of the data source to ensure that the data source accessed by the broadcasting task is truly available, and when an abnormality is found, an alarm is issued in time, thereby ensuring that the data broadcasting task can be executed efficiently and stably, providing users with high-quality data services.
[0142] For example, to help understand the implementation process of the data broadcasting method obtained by combining this embodiment with the above embodiments, please refer to Figure 2 , Figure 2 A schematic diagram of the overall process of a data broadcasting method is provided, specifically:
[0143] First, perform task configuration, including data source configuration, broadcast style configuration, sending strategy configuration, scenario configuration, and trigger condition configuration;
[0144] Next, according to the preset rules, the task configurations are parsed and saved respectively. The broadcast task includes the data source, broadcast style, sending strategy and trigger conditions required for the broadcast. The scene component includes the encapsulation of each scene, which is convenient for direct calling when facing the same scene in the future. The calculation task includes the calculation and processing steps required to complete the broadcast task.
[0145] Finally, for task execution, on the one hand, real-time data sources such as KFK, MQ, and API can be dynamically consumed, that is, the latest data can be automatically pulled. After preliminary data screening, the screened data can be temporarily stored for easy calling in subsequent computing tasks, and access and reading of related data sources can be achieved through conditional triggering; on the other hand, real-time data sources or batch data sources can be accessed and subsequent operations can be performed by setting scheduled tasks; the target data source that meets the data source configuration information is placed in the RabbitMQ message queue, waiting for the next step; the task condition matching trigger module loads the configuration information such as the trigger conditions in the broadcast task, matches the trigger conditions, and submits the successfully matched broadcast task to the RabbitMQ message queue, waiting for the operator calculation module to process; the operator calculation module sequentially receives the broadcast tasks from R The broadcast task is called in RabbitMQ, and the specific data temporarily stored in data storage media such as ES, CK, GS, etc. is called according to the broadcast task, and calculation operations are performed on these specific data to obtain the target data that can be used to synthesize the broadcast content. In this process, the calculation tasks can be divided and multiple threads can execute different calculation operations at the same time, thereby improving the calculation efficiency; after the calculation is completed, the data calculation results are saved and the synthesis request is submitted. The data content synthesis module also calls the synthesis request in the RabbitMQ message queue in sequence, parses the preset broadcast style settings, replaces the placeholder according to the calculation results, generates the final broadcast content, including text, pictures, audio and video, etc., and generates a broadcast request; after the broadcast content arrives at the execution push module, the broadcast content is sent to the target object according to the sending strategy.
[0146] For example, to help understand the implementation process of the data broadcasting method obtained by combining this embodiment with the above embodiments, please refer to Figure 3 , Figure 3 A schematic diagram of the generation and analysis process of a data broadcast task is provided, specifically:
[0147] For data broadcast configuration, external dependency configuration is provided. Among them, the permission system mainly manages the configuration permissions of each user, implements permission constraints, and protects user data security; the report center provides files or data that can be directly called by data broadcast tasks.
[0148] The general editor is mainly responsible for editing and configuring data sources, broadcast styles, sending strategies, etc.; the scene editor mainly performs some editing and packaging work for general scenes, encapsulating specific functions and packaging them into components for users to call directly.
[0149] Get the configuration information edited by the user and perform unified JSON operations to facilitate subsequent parsing of the user configuration.
[0150] Provide broadcast content analysis services so that users can read the packaged data and obtain specific broadcast tasks.
[0151] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data broadcasting method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0152] The present application also provides a data broadcast device, please refer to Figure 4 , the data broadcasting device comprises:
[0153] The access module 10 is used to determine the target data source from the data sources according to the data source configuration information in the received broadcast task;
[0154] A retrieval module 20, used to retrieve target data from a target data source according to configuration information of a broadcast style in a broadcast task;
[0155] The broadcast module 30 is used to merge the broadcast style and target data in the broadcast task, generate target broadcast content, and broadcast the target broadcast content.
[0156] The data broadcast device provided in the embodiment of the present application adopts the data broadcast method in the above embodiment, which can solve the technical problem of how to improve the flexibility of data broadcast. Compared with the prior art, the beneficial effects of the data broadcast device provided in the present application are the same as the beneficial effects of the data broadcast method provided in the above embodiment, and other technical features in the data broadcast device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0157] An embodiment of the present application provides a data broadcasting device, the data broadcasting device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data broadcasting method in the above-mentioned embodiment 1.
[0158] Reference below Figure 5, which shows a schematic diagram of the structure of a data broadcast device suitable for implementing the embodiment of the present application. The data broadcast device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The data broadcasting device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0159] like Figure 5 As shown, the data broadcast device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data broadcast device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data broadcast device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a data broadcast device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0160] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0161] The data broadcast device provided in the embodiment of the present application adopts the data broadcast method in the above embodiment to solve the technical problem of how to improve the flexibility of data broadcast. Compared with the prior art, the beneficial effects of the data broadcast device provided in the present application are the same as the beneficial effects of the data broadcast method provided in the above embodiment, and other technical features in the data broadcast device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0162] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0163] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0164] An embodiment of the present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the data broadcasting method in the above embodiment.
[0165] The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0166] The computer-readable storage medium may be included in the data broadcast device; or may exist independently without being assembled into the data broadcast device.
[0167] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the data broadcasting device, the data broadcasting device: determines the target data source from the data sources according to the data source configuration information in the received broadcasting task; retrieves the target data from the target data source according to the configuration information of the broadcasting style in the broadcasting task; merges the broadcasting style and target data in the broadcasting task to generate the target broadcasting content, and broadcasts the target broadcasting content.
[0168] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0169] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0170] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0171] The readable storage medium provided in the embodiment of the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data broadcasting method, and can solve the technical problem of how to improve the flexibility of data broadcasting. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the data broadcasting method provided in the above-mentioned embodiment, and will not be repeated here.
[0172] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of the above-mentioned data broadcasting method when executed by a processor.
[0173] The computer program product provided in the embodiment of the present application can solve the technical problem of how to improve the flexibility of data broadcasting. Compared with the prior art, the beneficial effects of the computer program product provided in the present application are the same as the beneficial effects of the data broadcasting method provided in the above embodiment, which will not be repeated here.
[0174] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A data broadcasting method, characterized in that: The data broadcasting method comprises: Determine a target data source from the data sources according to the data source configuration information in the received broadcast task; Retrieving target data from the target data source according to the configuration information of the broadcast style in the broadcast task; The broadcast style in the broadcast task and the target data are combined to generate target broadcast content, and the target broadcast content is broadcast.
2. The data broadcasting method according to claim 1, characterized in that: Before the step of merging the report style in the report task and the target data, the method further includes: Generate corresponding scene components according to the scene configuration information in the broadcast task; The step of combining the broadcast style in the broadcast task and the target data to generate target broadcast content includes: Determine the target scene component according to the configuration information of the broadcast style; The target scene component is called from the scene component, the broadcast style, the target scene component and the target data are merged to generate the target broadcast content.
3. The data broadcasting method according to claim 1, characterized in that: The data source includes a real-time data source, and the step of determining a target data source from the data source according to the received data source configuration information in the broadcast task includes: Determine a trigger condition according to the broadcast task; Determining a candidate data source from the real-time data source according to the data source configuration information; The data that meets the trigger condition in the candidate data sources is determined as the target data source.
4. The data broadcasting method according to claim 1, characterized in that: Before the step of merging the report style in the report task and the target data, the method further includes: Determining the computing task of the broadcast task according to the configuration information of the broadcast style; Execute the calculation operation corresponding to the calculation task on the target data to obtain the data calculation result; The target data is updated according to the data calculation result.
5. The data broadcasting method according to claim 1, characterized in that: The step of combining the broadcast style in the broadcast task and the target data to generate target broadcast content includes: Determining a data processing function according to the configuration information of the broadcast style; The target data is processed by applying the data processing function, and the processed target data and the broadcast style are combined to generate the target broadcast content.
6. The data broadcasting method according to claim 1, characterized in that: Before the step of broadcasting the target broadcast content, the method further includes: Determining the target sending object of the target broadcast content according to the sending strategy of the broadcast task; Checking whether the number of times the broadcast content is sent to the target sending object exceeds the preset sending frequency; Check whether the target broadcast content is repeated with the historical broadcast content sent to the target sending object; When the number of times the broadcast content is sent to the target sending object does not exceed the preset sending frequency and the target broadcast content does not overlap with the historical broadcast content, the target broadcast content is sent to the target sending object according to the sending strategy.
7. The data broadcasting method according to claim 1, characterized in that: The task configuration information includes configuration information of a data source, and the data broadcast method includes: Detecting the operating status of each of the data sources; When the data source is in an enabled state and has not been added to a data execution queue, adding the data source to the data execution queue; or, When the data source is in a disabled state and belongs to the data execution queue, the data source is removed from the data execution queue; or, In the case where the data source is in an abnormal state, an alarm notification is sent, wherein, in the case where the data source joins the data execution queue and the final use time of the data source is earlier than the preset time, the operation state of the data source is an abnormal state.
8. A data broadcasting device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data broadcasting method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data broadcasting method according to any one of claims 1 to 7 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data broadcasting method according to any one of claims 1 to 7 are implemented.