Real-time pushing method and device, equipment and medium

By combining Apache Flink and Paimon data lake technologies, the problem of slow push speed in subscription services was solved, enabling real-time voice saturation reminders for online SMS subscribers and improving data processing efficiency and consistency.

CN118869795AActive Publication Date: 2024-10-29CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410808853.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-29
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Existing subscription push methods suffer from slow operation, especially in mobile phone voice saturation reminders, particularly in real-time voice saturation reminders for online SMS subscriptions, where current technology is inadequate.

Method used

By combining Apache Flink and Paimon data lake technologies, real-time voice saturation reminders are pushed to subscribers. The Paimon data lake's integrated stream and batch read/write capabilities enable efficient real-time updates, multi-table joins, and data filtering to ensure data consistency.

Benefits of technology

It enables real-time push notifications of voice saturation alerts for online SMS subscribers, improving data processing efficiency and ensuring data consistency and multiple data service capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869795A_ABST
    Figure CN118869795A_ABST
Patent Text Reader

Abstract

The invention provides a real-time pushing method and device, equipment and a medium. Comprising the following steps: determining a subscription user, and storing user data corresponding to the subscription user into a data lake to obtain a user data storage table; determining subscription data of a subscription user according to a preset kafka processing platform, and performing data association on the user data storage table and the subscription data according to a preset flink program interface to obtain a data association table; determining a pushing time period and a pushing threshold value of the subscription data according to a preset mysql rule table, and filtering the subscription data according to the pushing time period and the pushing threshold value to obtain target subscription data; determining target user data corresponding to the target subscription data and a target user thereof according to the data association table; and according to the target user data, determining corresponding data push information, and pushing the data push information to the target user. In this way, real-time data reminding is carried out on the subscribing user, the pushing function is more perfect, and the flexibility is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of push of subscription services, and in particular to a real-time push method, apparatus, device and medium. Background Art

[0002] Voice reminders are the result of the application of intelligent technology. The use of voice reminders in Internet devices, public facilities, etc. is more intuitive and universal than text and picture reminders.

[0003] The industry has done a lot of work on the push of voice reminders, including call duration reminders, missed call reminders, etc.

[0004] However, the existing subscription service push method has the problem of slow operation of the push service. Summary of the invention

[0005] The present application provides a real-time push method, device, equipment and medium, which are used to solve the problem that the existing subscription service push method has a slow push service operation.

[0006] In a first aspect, the present application provides a real-time push method, the method comprising:

[0007] Determine the subscribed user, and store the user data corresponding to the subscribed user in the data lake to obtain the user data storage table;

[0008] According to the preset Kafka processing platform, the subscription data of the subscriber is determined, and according to the preset Flink program interface, the user data storage table and the subscription data are associated to obtain a data association table;

[0009] According to the preset MySQL rule table, determine the push period and push threshold of subscription data, and filter the subscription data according to the push period and push threshold to obtain the target subscription data;

[0010] According to the data association table, determine the target user data and target users corresponding to the target subscription data;

[0011] According to the target user data, the corresponding data push information is determined, and the data push information is pushed to the target user.

[0012] In this embodiment, the subscribed user is determined, and the user data corresponding to the subscribed user is stored in the data lake, and a user data storage table is obtained, including:

[0013] Determine the preset hive data table, and determine the historical subscription users and their corresponding user data based on the hive data table;

[0014] Store user data in the data lake to obtain the initial user data storage table;

[0015] Obtain the platform users and their platform user data sent by the preset Kafka processing platform, and match the platform user data with the user data in the initial user data storage table to obtain the matching result;

[0016] According to the matching results, the user data storage table is determined.

[0017] In this embodiment, the user data is stored in the data lake to obtain an initial user data storage table, including:

[0018] Determine the preset Flink programming statements and the data storage table corresponding to the data lake;

[0019] According to the Flink programming statements, the user data is stored in the data lake and written into the data storage table to obtain the initial user data storage table.

[0020] In this embodiment, according to the matching result, the user data storage table is determined, including:

[0021] Determine the matching result;

[0022] If the matching result is that the initial user data storage table does not store the platform user data, the platform user data is determined as new user data;

[0023] The new user data is stored in the initial user data storage table to obtain a user data storage table.

[0024] In this embodiment, the subscription data of the subscriber is determined according to the preset Kafka processing platform, and the user data storage table and the subscription data are data-associated according to the preset Flink program interface to obtain a data association table, including:

[0025] Get the subscription data sent by the Kafka processing platform and determine the identification information of the subscriber in the subscription data;

[0026] Determine identification information in the user data storage table;

[0027] According to the identification information, data association is performed to obtain a data association table.

[0028] In this embodiment, according to the preset MySQL rule table, the push period and push threshold of the subscription data are determined, and according to the push period and push threshold, the subscription data is filtered to obtain the target subscription data, including:

[0029] Determine the MySQL rule table, and determine the push period and push threshold based on the table structure of the MySQL rule table;

[0030] Compare the acquisition period and push period of subscription data to obtain the comparison result;

[0031] If the comparison result is that the acquisition period is within the push period, the subscription data is determined to be subscription data to be filtered;

[0032] If the comparison result is that the acquisition period is not within the push period, the subscription data is determined to be non-filtered subscription data;

[0033] According to the push threshold, the subscription data to be filtered is filtered to obtain the target subscription data.

[0034] In this embodiment, the subscription data to be filtered is filtered according to the push threshold to obtain the target subscription data, including:

[0035] Determine the data value of the subscription data to be filtered, and compare the data value with the push threshold to obtain a comparison result;

[0036] If the comparison result is that the data value does not exceed the push threshold, the subscription data to be filtered is determined to be the target subscription data;

[0037] If the comparison result is that the data value exceeds the push threshold, it is determined that the subscription data to be filtered is non-target subscription data.

[0038] In a second aspect, the present application provides a real-time push device, the device comprising:

[0039] The data storage module is used to determine the subscribed users and store the user data corresponding to the subscribed users in the data lake to obtain the user data storage table;

[0040] The data association module is used to determine the subscription data of the subscriber according to the preset Kafka processing platform, and to associate the user data storage table with the subscription data according to the preset Flink program interface to obtain a data association table;

[0041] The filtering module is used to determine the push period and push threshold of subscription data according to the preset MySQL rule table, and filter the subscription data according to the push period and push threshold to obtain the target subscription data;

[0042] A data determination module, used to determine the target user data and the target user corresponding to the target subscription data according to the data association table;

[0043] The information push module is used to determine the corresponding data push information according to the target user data, and push the data push information to the target user.

[0044] In a third aspect, the present application provides a computer device, comprising: a processor, and a memory communicatively connected to the processor;

[0045] Memory stores computer-executable instructions;

[0046] The processor executes the computer-executable instructions stored in the memory to implement the method of the present application.

[0047] In a fourth aspect, the present application provides a computer-readable storage medium, in which program code is stored, and when the program code is executed by a processor, it is used to implement the method of the present application.

[0048] The real-time push method, apparatus, device and medium provided by the present application determine the subscribed user and store the user data corresponding to the subscribed user in the data lake to obtain a user data storage table; determine the subscription data of the subscribed user according to the preset kafka processing platform, and associate the user data storage table with the subscription data according to the preset flink program interface to obtain a data association table; determine the push period and push threshold of the subscription data according to the preset mysql rule table, and filter the subscription data according to the push period and push threshold to obtain target subscription data; determine the target user data and its target user corresponding to the target subscription data according to the data association table; determine the corresponding data push information according to the target user data, and push the data push information to the target user.

[0049] In this way, the voice saturation reminder push can be implemented for online SMS subscribers through the combination of Flink and StreamPark technology, and the stream-batch integrated reading and writing of the data lake Paimon can be used to store data in a stream-batch integrated manner with efficient real-time updates. It can realize multi-table association of tens of billions of single-table data, and the intermediate results can be checked and reused in real time. At the same time, it can well ensure data consistency and realize various forms of data service capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] 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.

[0051] Figure 1 A flowchart of a real-time push method provided in an embodiment of the present application;

[0052] Figure 2 A flowchart of another real-time push method provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of the structure of a real-time push device provided in an embodiment of the present application;

[0054] Figure 4 This is a structural block diagram of a device for executing a real-time push method according to an embodiment of the present application.

[0055] The above-mentioned drawings have shown clear embodiments of the present application, which will be described in more detail below; these drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0057] Apache Flink is an open source stream processing framework developed by the Apache Software Foundation. Its core is a distributed streaming data flow engine used for stateful computing on unbounded and bounded data streams. Flink can run in all common cluster environments and can perform calculations at memory speed and at any scale. The Flink runtime consists of two types of processes: a JobManager and one or more TaskManagers.

[0058] Flink job stateful computing can be simple based on event-based rule matching data correlation. When multiple tables are associated in the business scenario, it is difficult, the intermediate results cannot be checked in real time in a simple way, and data consistency cannot be guaranteed. Based on this, the data lake solution and Paimon data lake technology are used to solve the above problems.

[0059] Apache Paimon is a streaming data lake storage technology that can provide users with high-throughput, low-latency data ingestion, streaming subscription, and real-time query capabilities. Paimon uses open data formats and technical concepts, and can be connected with many mainstream computing engines in the industry, such as Apache Flink / Spark / Trino, to jointly promote the popularization and development of the Streaming Lakehouse architecture.

[0060] Paimon manages metadata based on a distributed file system in a lake storage manner and adopts open ORC, Parquet, and Avro file formats. It supports major mainstream computing engines, including Flink, Spark, Hive, Trino, and Presto. More engines will be connected in the future, including Doris and Starrocks.

[0061] In the prior art, the current subscription service push method has done a lot of work on voice reminders, including call duration reminders, missed call reminders, etc. However, for mobile phone voice saturation reminders, especially in online SMS subscriptions to this function and real-time voice saturation reminders, the work is still imperfect.

[0062] In order to solve the above problems, the embodiment of the present application provides a real-time push method, which can realize the real-time voice saturation reminder push of subscribed users through the combination of flink and Paimon. At the same time, by writing independent flink tasks to complete the topic drop to disk such as hive table, the subsequent data delivery monitoring and troubleshooting can be realized.

[0063] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0064] Figure 1 A flowchart of a real-time push method provided in an embodiment of the present application. Figure 1 As shown, the real-time push method may include the following steps:

[0065] S110: Determine the subscribed user, and store the user data corresponding to the subscribed user in the data lake to obtain a user data storage table.

[0066] The subscribed users are users who have subscribed to the real-time push service, and may be users who have subscribed to the service on an online SMS platform.

[0067] User data can be understood as the user's basic data, such as the user's phone number and other basic information.

[0068] A data lake can be understood as a system or storage that stores data in its natural or original format, usually as object blocks or files; a data lake is usually a single storage for all the data in an enterprise, and the full data includes copies of the original data generated by the original system and converted data generated for various tasks.

[0069] The user data storage table is a storage table that stores basic user data in the data lake, which can be a Paimon table.

[0070] Based on this, by determining the users who have subscribed to the real-time push service, the corresponding user data is stored in the data lake, and the corresponding user data storage table is obtained, so that the user data and subscription data can be associated according to the user data in the user data storage table, thereby determining the subscribed users who need real-time reminders.

[0071] S120. According to the preset Kafka processing platform, the subscription data of the subscriber is determined, and according to the preset Flink program interface, the user data storage table and the subscription data are associated with each other to obtain a data association table.

[0072] Among them, the preset Kafka processing platform is a pre-set Kafka platform; Kafka is a high-throughput distributed publish-subscribe message system that can process all action stream data of consumers on the website. Kafka can be used to process real-time subscription data of subscribed users, where the subscription data is the business data of the user's subscription service. For example, if the user subscribes to a real-time reminder service for voice saturation, the subscription data is the user's voice saturation value.

[0073] The preset flink program interface is the pre-set flink Data Stream API. In the entire flink system architecture, support for stream computing is one of its most important functions. The Data Stream API is defined in flink to allow users to flexibly and efficiently write flink streaming applications. In this way, the preset Data Stream API can be used to associate the user voice saturation data pushed by Kafka with the Paimon table.

[0074] The data association table may be a user-level real-time wide table for storing data.

[0075] Based on this, by obtaining the subscription data of the subscribed users pushed by the Kafka platform, the user data storage table and the subscription data in the data lake are connected according to the Flink DataStream API, so that the user corresponding to the subscription data to be pushed can be determined according to the associated data association table.

[0076] S130. Determine a push period and a push threshold for subscription data according to a preset MySQL rule table, and filter the subscription data according to the push period and the push threshold to obtain target subscription data.

[0077] Among them, the preset MySQL rule table is a pre-set MySQL data table. MySQL is a relational database management system that increases speed and flexibility by storing data in different tables instead of putting all data in a large warehouse. The rule table is a special table in MySQL used to define and manage database rules and constraints. It contains a set of rules for constraining data in the database. These rules can be data type restrictions, uniqueness constraints, integrity constraints, etc.

[0078] The push period is the execution period of the table rules corresponding to the MySQL rule table, that is, if the acquisition period of the subscription data is within the push period, the rules of the MySQL rule table will take effect on the subscription data; the push threshold is the push limit value of the user's subscription data. For example, if a user subscribes to a voice saturation push reminder, a voice saturation threshold can be set. If the user's voice saturation value obtained in real time exceeds the threshold, it indicates that the subscribed user needs to be reminded.

[0079] The target subscription data is the subscription data that meets the push period and push threshold in the MySQL rule table. It can be understood as the subscription data that needs to be pushed for reminders, such as user voice saturation data that exceeds the push threshold within the push period.

[0080] Based on this, the corresponding push period and push threshold are determined through the MySQL rule table, so as to filter the subscription data obtained in real time and obtain the target subscription data, so as to subsequently determine the user corresponding to the target subscription data and push reminders to the user.

[0081] S140. Determine the target user data and the target user corresponding to the target subscription data according to the data association table.

[0082] The target user is the subscribed user corresponding to the target subscription data, and the target user data is the user data of the subscribed user.

[0083] Based on this, the user information corresponding to the target subscription data is determined through the data association table, so that the subscription data and reminder information can be pushed to the subscribed users later.

[0084] S150: Determine corresponding data push information according to the target user data, and push the data push information to the target user.

[0085] Among them, the data push information is information determined based on the target user data and used to push reminders to the user. For example, it may include key data such as mobile phone number, user province, user city, voice rate type, and voice saturation value.

[0086] Based on this, by determining the data push information including the target user data, the data push information is pushed to the corresponding subscribed users, thereby realizing a push reminder of the subscription service to the subscribed users.

[0087] Based on the feasible implementation method of S110 above, the present application further provides a process of determining historical subscribers through a hive data table and determining new subscribers through subscription data sent by a kafka processing platform, thereby storing user data of historical subscribers and new subscribers in a data lake:

[0088] Determine the preset hive data table, and determine the historical subscription users and their corresponding user data based on the hive data table;

[0089] Store user data in the data lake to obtain the initial user data storage table;

[0090] Obtain the platform users and their platform user data sent by the preset Kafka processing platform, and match the platform user data with the user data in the initial user data storage table to obtain the matching result;

[0091] According to the matching results, the user data storage table is determined.

[0092] Among them, the preset hive data table is a pre-set hive table. Hive is a data warehouse tool based on Hadoop, which is used for data extraction, transformation, and loading. It is a mechanism for storing, querying, and analyzing large-scale data stored in Hadoop. The hive data warehouse tool can map structured data files to a database table and provide SQL query functions, which can convert SQL statements into MapReduce tasks for execution.

[0093] Historical subscribers are users stored in the Hive data table. They can be understood as users who have subscribed to related services in the past and whose corresponding user data is stored. They can also be understood as historical data of initialized subscribers stored in Hive. New users are subscribers obtained in real time by the Kafka platform and not stored in the Hive data table. They can also be understood as subscriber data pushed in real time by the upstream stored in Kafka.

[0094] Data matching can be understood as matching the platform user data with the user data in the initial user data storage table, so as to determine the data in the platform user data that is not stored in the initial user data storage table, that is, the user data of the new user; the matching result is that there is data in the platform user data that is not stored in the initial user data storage table, and there is no data in the platform user data that is not stored in the initial user data storage table.

[0095] Based on this, the historical subscribed users and their corresponding user data are determined through the user data stored in the hive data table, and stored in the data lake to obtain the initial user data table. At the same time, the subscribed user data pushed upstream in real time is read from Kafka, so that the newly acquired user data is stored in the initial user data storage table to obtain the user data storage table. In this way, the speed and convenience of user data entering the lake are improved, so as to realize real-time push reminders of user subscription services.

[0096] Based on the feasible implementation of S110 above, the present application further provides a process of storing user data in the hive data table into the data lake through flink programming statements:

[0097] Determine the preset filnk programming statements and the data storage table corresponding to the data lake;

[0098] According to the Flink programming statements, the user data is stored in the data lake and written into the data storage table to obtain the initial user data storage table.

[0099] Among them, the preset filnk programming statement is a pre-set flink sql. Flink sql is an upper-level library based on flinkcore, which uses SQL semantics for structured data processing.

[0100] The initial user data storage table is a data table storing user data, for example, it may be a Paimon table.

[0101] Based on this, by determining the preset flink sql, data parsing and data entry will be performed, and the paimon table will be generated, so that user data can be stored in the paimon table and user data can be entered into the lake.

[0102] Based on the feasible implementation of S110 above, the present application further provides a matching result based on data matching, thereby determining new user data, and storing the new user data in the initial user data storage table, thereby realizing the process of entering new user data into the lake:

[0103] Determine the matching result;

[0104] If the matching result is that the initial user data storage table does not store the platform user data, the platform user data is determined as new user data;

[0105] The new user data is stored in the initial user data storage table to obtain a user data storage table.

[0106] Based on this, by determining the matching result of data matching, the subscription data sent by the Kafka platform that is not stored in the initial user data storage table is determined as new user data, and the new user data is stored in the initial user data storage table to obtain a user data storage table.

[0107] Based on the feasible implementation of S120 above, the present application further provides a process of associating the user data storage table with the subscription data through the user's identification information:

[0108] Get the subscription data sent by the Kafka processing platform and determine the identification information of the subscriber in the subscription data;

[0109] Determine identification information in the user data storage table;

[0110] According to the identification information, data association is performed to obtain a data association table.

[0111] The identification information may be understood as identification information, which is used to determine the subscribed user corresponding to the user data, for example, it may be the user's mobile phone number.

[0112] Based on this, by determining the identification information in the user data storage table and the subscription data, data association is performed according to the identification information.

[0113] In this embodiment, in order to store the user data of the subscribed users into the lake, and thus realize the purpose of real-time subscription data reminder push of the subscribed users according to the combination of Flink and Paimon, the historical data of the initialized online SMS subscribers stored in Hive and the real-time subscription data pushed by Kafka can be used to realize the entry of user data into the lake, and the data association between user data and subscription data is realized according to Flink SQL to obtain the data association table. At the same time, the subscription data is filtered through the preset MySQL rule table to obtain the target subscription data that meets the push threshold within the push period, and the corresponding target subscription users are determined according to the data association table, so as to push the target subscription data to the target subscription users.

[0114] In this way, a real-time reminder method for voice saturation of online SMS subscribers based on streaming computing is implemented, using Paimon as the data lake technology, replacing the original Flink usage status or using Hbase technology, so that the push of intermediate results can be checked and tracked.

[0115] Figure 2 A flowchart of another real-time push method provided in an embodiment of the present application. Figure 2 As shown, the real-time push method may include the following steps:

[0116] S210: Determine the subscribed user, and store the user data corresponding to the subscribed user in the data lake to obtain a user data storage table.

[0117] S220. According to the preset Kafka processing platform, the subscription data of the subscriber is determined, and according to the preset Flink program interface, the user data storage table and the subscription data are data associated to obtain a data association table.

[0118] In this embodiment, the specific implementation of step S210 to step S220 can refer to the content of the above-mentioned embodiment, which will not be repeated here.

[0119] S230, determine the MySQL rule table, and determine the push period and push threshold according to the table structure of the MySQL rule table.

[0120] Among them, the table structure of the MySQL rule table is the header structure. By setting rules for the header structure of the rule table in advance, data filtering can be achieved through the MySQL rule table. For example, a specific push period and push threshold can be set in the table structure of the MySQL rule table. After obtaining the subscription data, the target subscription data that meets the push threshold within the push period in the subscription data can be determined according to the table structure of the MySQL rule table.

[0121] Based on this, the table structure of the MySQL rule table is determined to determine the push period and push threshold so that the subscription data can be filtered later.

[0122] S240 : Compare the acquisition period and the push period of the subscription data to obtain a comparison result.

[0123] Based on this, by comparing the acquisition period of the subscription data sent by the Kafka platform with the preset push period in the MySQL rule table, the data in the subscription data within the push period can be determined based on the comparison results.

[0124] S250: If the comparison result is that the acquisition period is within the push period, the subscription data is determined to be subscription data to be filtered.

[0125] Based on this, by determining the subscription data to be filtered within the push period, the subscription data to be filtered is subsequently filtered according to the push threshold to obtain the target subscription data that needs to be pushed to the user.

[0126] S260: If the comparison result is that the acquisition period is not within the push period, it is determined that the subscription data is non-filtered subscription data.

[0127] Based on this, by determining the non-filtered subscription data that is not within the push period, there is no need to filter the non-filtered subscription data according to the push threshold, thereby improving the speed and real-time performance of data filtering and reducing unnecessary waste of resources.

[0128] S270: Filter the subscription data to be filtered according to the push threshold to obtain target subscription data.

[0129] Based on this, the preset push threshold in the MySQL rule table is used to filter the subscription data to obtain the target subscription data so that reminders can be pushed to the corresponding subscribers later.

[0130] S280. Determine the target user data and the target user corresponding to the target subscription data according to the data association table.

[0131] S290: Determine corresponding data push information according to the target user data, and push the data push information to the target user.

[0132] In this embodiment, the specific implementation of steps S280 to S290 can refer to the contents of the aforementioned embodiments and will not be repeated here.

[0133] Based on the feasible implementation of S270 above, the present application further provides a process of determining target subscription data according to the comparison result by comparing the data value and the push threshold:

[0134] Determine the data value of the subscription data to be filtered, and compare the data value with the push threshold to obtain a comparison result;

[0135] If the comparison result is that the data value does not exceed the push threshold, the subscription data to be filtered is determined to be the target subscription data;

[0136] If the comparison result is that the data value exceeds the push threshold, it is determined that the subscription data to be filtered is non-target subscription data.

[0137] Among them, the data value is the service data value corresponding to the service subscribed by the user. For example, if the user subscribes to the voice saturation push reminder service, the data value is the user's voice saturation value. If the voice saturation value exceeds the preset push threshold, it indicates that a push reminder is currently required for the subscribed user.

[0138] Based on this, by comparing the data value of the subscription data to be filtered with the preset push threshold, the target subscription data that exceeds the push threshold is determined according to the comparison result, so that the corresponding subscribed user can be determined based on the target subscription data and reminder information including the target subscription data can be pushed to the user.

[0139] In actual applications, you can also set a whitelist of subscribers through the MySQL table, and then use FlinkCDC technology to dynamically read the whitelist data from MySQL in real time to implement the screening of subscribers.

[0140] Furthermore, after determining the target subscription data and pushing it to the corresponding subscribers, you can also use fuzzy matching to store all Topic data corresponding to the Topic name with the voice saturation identifier into the Hive table. Set the expiration time to one month based on the time and province partition to facilitate subsequent data tracking and troubleshooting.

[0141] In this embodiment, in order to achieve the purpose of filtering subscription data according to the push period and push threshold preset in the table structure of the MySQL rule table and obtaining the target subscription data, the subscription data obtained within the push period can be determined by comparing the acquisition period and the push period of the subscription data, and the data value of the subscription data and the push threshold are compared, so as to determine the target subscription data that exceeds the push threshold based on the comparison result.

[0142] In this way, a real-time voice saturation reminder method for online SMS subscribers based on streaming computing is implemented. Through the combination of flink and Paimon, real-time voice saturation reminder push is implemented for subscribed users. At the same time, the real-time user voice saturation reminder for subscribed users sets a user whitelist. The real-time push of user voice saturation is combined with FlinkCDC technology. Database updates are real-time updates to the user range, and the push function is more complete and more flexible. By writing independent flink tasks to complete the topic drop to disk, such as hive tables, subsequent data delivery monitoring and troubleshooting can be achieved.

[0143] Figure 3 Schematic diagram of a real-time push device 300 provided in an embodiment of the present application. Figure 3 As shown, the real-time push device 300 includes: a data storage module 310 , a data association module 320 , a filtering module 330 , a data determination module 340 , and an information push module 350 .

[0144] The data storage module 310 is used to determine the subscribed user and store the user data corresponding to the subscribed user in the data lake to obtain a user data storage table;

[0145] The data association module 320 is used to determine the subscription data of the subscriber according to the preset Kafka processing platform, and to associate the user data storage table with the subscription data according to the preset Flink program interface to obtain a data association table;

[0146] The filtering module 330 is used to determine the push period and push threshold of the subscription data according to the preset MySQL rule table, and filter the subscription data according to the push period and push threshold to obtain the target subscription data;

[0147] A data determination module 340 is used to determine the target user data and the target user corresponding to the target subscription data according to the data association table;

[0148] The information push module 350 is used to determine corresponding data push information according to the target user data, and push the data push information to the target user.

[0149] In the embodiment of the present application, the data storage module 310 may also be specifically used for:

[0150] Determine the preset hive data table, and determine the historical subscription users and their corresponding user data based on the hive data table;

[0151] Store user data in the data lake to obtain the initial user data storage table;

[0152] Obtain the platform users and their platform user data sent by the preset Kafka processing platform, and match the platform user data with the user data in the initial user data storage table to obtain the matching result;

[0153] According to the matching results, the user data storage table is determined.

[0154] In the embodiment of the present application, the data storage module 310 may also be specifically used for:

[0155] Determine the preset filnk programming statements and the data storage table corresponding to the data lake;

[0156] According to the Flink programming statements, the user data is stored in the data lake and written into the data storage table to obtain the initial user data storage table.

[0157] In the embodiment of the present application, the data storage module 310 may also be specifically used for:

[0158] Determine the matching result;

[0159] If the matching result is that the initial user data storage table does not store the platform user data, the platform user data is determined as new user data;

[0160] The new user data is stored in the initial user data storage table to obtain a user data storage table.

[0161] In the embodiment of the present application, the data association module 320 may also be specifically used for:

[0162] Get the subscription data sent by the Kafka processing platform and determine the identification information of the subscriber in the subscription data;

[0163] Determine identification information in the user data storage table;

[0164] According to the identification information, data association is performed to obtain a data association table.

[0165] In the embodiment of the present application, the filtering module 330 may also be specifically used for:

[0166] Determine the MySQL rule table, and determine the push period and push threshold based on the table structure of the MySQL rule table;

[0167] Compare the acquisition period and push period of subscription data to obtain the comparison result;

[0168] If the comparison result is that the acquisition period is within the push period, the subscription data is determined to be subscription data to be filtered;

[0169] If the comparison result is that the acquisition period is not within the push period, the subscription data is determined to be non-filtered subscription data;

[0170] According to the push threshold, the subscription data to be filtered is filtered to obtain the target subscription data.

[0171] In the embodiment of the present application, the filtering module 330 may also be specifically used for:

[0172] Determine the data value of the subscription data to be filtered, and compare the data value with the push threshold to obtain a comparison result;

[0173] If the comparison result is that the data value does not exceed the push threshold, the subscription data to be filtered is determined to be the target subscription data;

[0174] If the comparison result is that the data value exceeds the push threshold, it is determined that the subscription data to be filtered is non-target subscription data.

[0175] Figure 4 This is a schematic diagram of the structure of the device provided in the embodiment of the present application. Figure 4 As shown, the device 400 includes:

[0176] The device 400 may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a communication component 403 and other components. The processor 401 , the memory 402 and the communication component 403 are connected via a bus 404 .

[0177] In a specific implementation process, at least one processor 401 executes the computer execution instructions stored in the memory 402, so that at least one processor 401 executes the above real-time push method.

[0178] The specific implementation process of the processor 401 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0179] In the above Figure 4In the illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present application may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0180] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0181] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0182] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the steps in any of the above-mentioned real-time push methods when executed by a processor.

[0183] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0184] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0185] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple program codes are stored. The program codes can be loaded by a processor to execute the steps in any real-time push method provided in the embodiment of the present application.

[0186] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0187] According to one aspect of the present application, a computer program product or a computer program is provided. The computer program product or the computer program comprises computer instructions stored in a computer-readable storage medium.

[0188] Since the instructions stored in the storage medium can execute the steps in any real-time push method provided in the embodiments of the present application, the beneficial effects that can be achieved by any real-time push method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0189] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0190] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A real-time push method, characterized in that: The method comprises: Determine the subscribed user, and store the user data corresponding to the subscribed user in the data lake to obtain a user data storage table; According to a preset kafka processing platform, the subscription data of the subscriber is determined, and according to a preset flink program interface, the user data storage table and the subscription data are data associated to obtain a data association table; According to a preset MySQL rule table, determine the push period and push threshold of the subscription data, and filter the subscription data according to the push period and push threshold to obtain target subscription data; Determining target user data and target users corresponding to the target subscription data according to the data association table; According to the target user data, corresponding data push information is determined, and the data push information is pushed to the target user.

2. The method according to claim 1, characterized in that The determining of the subscribed user and storing the user data corresponding to the subscribed user in the data lake to obtain a user data storage table includes: Determine a preset hive data table, and determine historical subscription users and their corresponding user data based on the hive data table; Storing the user data in the data lake to obtain an initial user data storage table; Obtaining the platform users and their platform user data sent by the preset Kafka processing platform, and matching the platform user data with the user data in the initial user data storage table to obtain a matching result; The user data storage table is determined according to the matching result.

3. The method according to claim 2, characterized in that The storing the user data in the data lake to obtain an initial user data storage table includes: Determine a preset filnk programming statement and a data storage table corresponding to the data lake; According to the flink programming statement, the user data is stored in the data lake, and the user data is written into the data storage table to obtain an initial user data storage table.

4. The method according to claim 2, characterized in that: Determining the user data storage table according to the matching result includes: Determining the matching result; If the matching result is that the platform user data is not stored in the initial user data storage table, determining the platform user data as new user data; The new user data is stored in the initial user data storage table to obtain the user data storage table.

5. The method according to claim 1, characterized in that The method determines the subscription data of the subscriber according to the preset kafka processing platform, and associates the user data storage table with the subscription data according to the preset flink program interface to obtain a data association table, including: Obtain the subscription data sent by the kafka processing platform, and determine the identification information of the subscribing user in the subscription data; Determine the identification information in the user data storage table; The data association is performed according to the identification information to obtain the data association table.

6. The method according to claim 1, characterized in that The method of determining a push period and a push threshold of the subscription data according to a preset MySQL rule table, and filtering the subscription data according to the push period and the push threshold to obtain target subscription data includes: Determine the MySQL rule table, and determine the push period and the push threshold according to the table structure of the MySQL rule table; Comparing the acquisition period of the subscription data with the push period to obtain a comparison result; If the comparison result is that the acquisition period is within the push period, determining that the subscription data is subscription data to be filtered; If the comparison result is that the acquisition period is not within the push period, determining that the subscription data is non-filtered subscription data; The subscription data to be filtered is filtered according to the push threshold to obtain the target subscription data.

7. The method according to claim 6, characterized in that The filtering the subscription data to be filtered according to the push threshold to obtain the target subscription data includes: Determine the data value of the subscription data to be filtered, and compare the data value with the push threshold to obtain a comparison result; If the comparison result is that the data value does not exceed the push threshold, determining that the subscription data to be filtered is the target subscription data; If the comparison result is that the data value exceeds the push threshold, it is determined that the subscription data to be filtered is non-target subscription data.

8. A real-time push device, characterized in that: The device comprises: A data storage module is used to determine a subscribed user and store the user data corresponding to the subscribed user in a data lake to obtain a user data storage table; A data association module is used to determine the subscription data of the subscriber according to a preset kafka processing platform, and to associate the user data storage table with the subscription data according to a preset flink program interface to obtain a data association table; A filtering module, used to determine the push period and push threshold of the subscription data according to a preset MySQL rule table, and filter the subscription data according to the push period and push threshold to obtain target subscription data; A data determination module, used to determine the target user data and the target user corresponding to the target subscription data according to the data association table; The information push module is used to determine corresponding data push information according to the target user data, and push the data push information to the target user.

9. A device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Flink-based real-time computation method, device, computer apparatus, and storage medium

    CA3150487A1

  • Information pushing method and device based on kafka, equipment and storage medium

    CN111666490A

  • Time series data pushing method and device, equipment and storage medium

    CN116431928A

  • Message pushing method and device, computer equipment and storage medium

    CN116881551A

  • Data processing method, platform, computer-readable storage medium and electronic device

    US20220398254A1