CN115914358A - Message pushing method and device, electronic equipment and computer storage medium - Google Patents

Message pushing method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN115914358A
CN115914358A CN202110902110.7A CN202110902110A CN115914358A CN 115914358 A CN115914358 A CN 115914358A CN 202110902110 A CN202110902110 A CN 202110902110A CN 115914358 A CN115914358 A CN 115914358A
Authority
CN
China
Prior art keywords
message
theme
client
authorization information
subscription
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110902110.7A
Other languages
Chinese (zh)
Inventor
王珂伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110902110.7A priority Critical patent/CN115914358A/en
Publication of CN115914358A publication Critical patent/CN115914358A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a message pushing method, a message pushing device, electronic equipment and a computer storage medium, wherein subscription authorization information of a client side synchronized by a network side is obtained; filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner; acquiring a subscription request sent by a client; and searching a second topic message matched with the subscription request in the first topic message based on the subscription request, and pushing the second topic message to the client. In the scheme, unmatched theme messages are filtered through subscription authorization information of the client, matched first theme messages and the subscription authorization information are combined and stored, and when a subscription request sent by the client is obtained, second theme messages matched with the subscription request in the first theme messages are searched based on the subscription request and are pushed to the client, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.

Description

Message pushing method and device, electronic equipment and computer storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a message pushing method and apparatus, an electronic device, and a computer storage medium.
Background
In the prior art, when a client subscribes to a message, a large number of useless messages are received, which results in resource waste and increases processing pressure, and therefore, a message push method is urgently needed to reduce the push of the useless messages.
Disclosure of Invention
In view of this, embodiments of the present invention provide a message pushing method and apparatus, an electronic device, and a computer storage medium, so as to achieve the purposes of reducing pushing of useless messages, reducing processing pressure, and saving resources.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
the first aspect of the embodiment of the invention discloses a message pushing method, which is applied to a server and comprises the following steps:
acquiring subscription authorization information of a client side synchronized by a network side;
filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner, wherein the theme message is generated by a message production end according to different theme types;
acquiring a subscription request sent by a client;
searching for a first topic message in the second message middleware based on the subscription request, and pushing a second topic message matched with the subscription request in the first topic message to the client.
Optionally, the subscription authorization information includes a client model, the filtering is performed on the topic messages stored in real time based on the subscription authorization information to obtain a first topic message matched with the subscription authorization information, and the combination of the subscription authorization information and the first topic message is stored in a second message middleware, including:
acquiring a client model in the subscription authorization information;
filtering the theme message stored in real time based on the client model, and acquiring a first theme message matched with the client model;
and combining the client model with the first theme message to obtain a combined theme, and storing the combined theme in a second message middleware.
Optionally, the subscribing request at least includes a client model and a topic type to be subscribed, and the searching for the first topic message in the second message middleware based on the subscribing request and pushing the second topic message matching with the subscribing request in the first topic message to the client includes:
searching a first theme message corresponding to the client model in the second message middleware according to the client model;
acquiring a second topic message matched with the topic type to be subscribed from the first topic message based on the topic type to be subscribed;
and pushing the second theme message to the client.
Optionally, the storing the combination of the subscription authorization information and the first topic message in a second message middleware includes:
and combining the subscription authorization information with the first theme message by taking the subscription authorization information as an index to obtain a combined theme, and storing the combined theme in the second message middleware.
The second aspect of the embodiments of the present invention discloses a message pushing device, which is applied to a server, and the device includes:
the acquisition module is used for acquiring the subscription authorization information of the client side synchronized by the network side and acquiring the subscription request sent by the client side;
the processing module is used for filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner, wherein the theme message is generated by a message production end according to different theme types;
and the pushing module is used for searching a first theme message in the second message middleware based on the subscription request and pushing a second theme message matched with the subscription request in the first theme message to the client.
Optionally, the subscription authorization information includes a client model, and the processing module is specifically configured to:
acquiring a client model in the subscription authorization information; filtering the theme message stored in real time based on the client model, and acquiring a first theme message matched with the client model; and combining the client model with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
Optionally, the subscription request at least includes a client model and a topic type to be subscribed, and the push module is specifically configured to:
searching a first theme message corresponding to the client model in the second message middleware according to the client model; acquiring a second topic message matched with the topic type to be subscribed from the first topic message based on the topic type to be subscribed; and pushing the second theme message to the client.
Optionally, the processing module, configured to store the combination of the subscription authorization information and the first topic message in a second message middleware, is specifically configured to:
and combining the subscription authorization information with the first theme message by taking the subscription authorization information as an index to obtain a combined theme, and storing the combined theme in the second message middleware.
The third aspect of the embodiments of the present invention discloses an electronic device, where the electronic device is configured to run a program, where the program executes a message pushing method according to any one of the first aspect of the embodiments of the present invention when running.
A fourth aspect of the embodiments of the present invention discloses a computer storage medium, where the computer storage medium includes a storage program, and when the program runs, a device in which the storage medium is located is controlled to execute the message pushing method according to any one of the first aspect of the embodiments of the present invention.
Based on the message pushing method, the message pushing device, the electronic equipment and the computer storage medium provided by the embodiment of the invention, the subscription authorization information of the client side synchronized by the network side is obtained; filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner, wherein the theme message is generated by a message production end according to different theme types; acquiring a subscription request sent by a client; and searching for a first topic message in the second message middleware based on the subscription request, and pushing a second topic message matched with the subscription request in the first topic message to the client. In the scheme, unmatched theme messages are filtered through subscription authorization information of the client side, matched first theme messages and the subscription authorization information are combined and stored, and when a subscription request sent by the client side is obtained, second theme messages matched with the subscription request in the first theme messages are searched based on the subscription request and are pushed to the client side, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a message pushing system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a message pushing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating filtering a topic message stored in real time according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another process for filtering a topic message stored in real time according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another process for filtering a topic message stored in real time according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of searching for a matched second topic message according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a message pushing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device 80 according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
As known from the background art, when a client subscribes to a message, a large number of useless messages are received, which causes resource waste and increases processing pressure.
Therefore, in the scheme, unmatched theme messages are filtered out through subscription authorization information of a client side, matched first theme messages and the subscription authorization information are combined and then stored, and when a subscription request sent by the client side is obtained, second theme messages matched with the subscription request in the first theme messages are searched based on the subscription request and are pushed to the client side, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.
As shown in fig. 1, which is a schematic diagram of an architecture of a message push system according to an embodiment of the present invention, the message push system includes: a message production end 11, a server 12, a client 13 and a network end 14.
The message producer 11 is provided with a production module 111 and a level one message middleware module 112.
The server 12 is provided with a rule service module 121 and a secondary message middleware module 122.
The message producer 11 is used to produce messages according to different themes.
The server 12 is used for processing message pushing.
The client 13 includes, but is not limited to, a cell phone for interacting with the server 12 and the network 14.
The network 14 is configured to synchronize the subscription authorization information of the client 13 based on the subscription authorization request sent by the client 13.
The process of implementing message pushing based on the message pushing system disclosed in fig. 1 is as follows:
the production module 111 produces messages according to different topic types and sends the produced messages to the primary message middleware 112.
The primary message middleware 112 determines to receive the message sent by the production module 111 and stores the received message in a classified manner according to different topic types.
The client 13 sends a subscription authorization request to the network 14 according to the service requirement.
The network 14 synchronizes the subscription authorization information of the client to the server 12 based on the subscription authorization request sent by the client 13, and sends the subscription authorization result to the client 13.
The rule service module 121 obtains the subscription authorization information of the client 13 synchronized by the network 14.
The subscription authorization information comprises a client model.
The rule service module 121 filters the topic messages stored in real time based on the subscription authorization information to obtain a first topic message matched with the subscription authorization information, and stores the combination of the subscription authorization information and the first topic message in the secondary message middleware 122.
Specifically, the rule service module 121 obtains a client model in the subscription authorization information, filters the theme message stored in real time based on the client model, obtains a first theme message matched with the client model, combines the client model and the first theme message to obtain a combined theme, and stores the combined theme in the secondary message middleware 122.
The secondary message middleware 122 obtains the subscription request sent by the client 13, searches for the first topic message based on the subscription request, and pushes the second topic message matched with the subscription request in the first topic message to the client 13.
The subscription request comprises a client model and a topic type to be subscribed.
Specifically, the secondary message middleware 122 searches for a first topic message corresponding to the client model according to the client model, acquires a second topic message matching with the topic type to be subscribed from the first topic message based on the topic type to be subscribed, and pushes the second topic message to the client 13.
Based on the message pushing system provided by the embodiment of the invention, the subscription authorization information of the client side synchronized by the network side is obtained; filtering the theme messages stored in real time based on the subscription authorization information to obtain first theme messages matched with the subscription authorization information, and storing the subscription authorization information and the first theme messages in a second message middleware in a combined manner, wherein the theme messages are messages generated by a message production end according to different theme types; acquiring a subscription request sent by a client; and searching the matched first topic message in the second message middleware based on the subscription request, and pushing the second topic message matched with the subscription request in the first topic message to the client. According to the scheme, unmatched theme messages are filtered through subscription authorization information of the client, the matched first theme messages and the subscription authorization information are combined and then stored, and when a subscription request sent by the client is obtained, second theme messages matched with the subscription request in the first theme messages are searched based on the subscription request and are pushed to the client, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.
Based on the message pushing system shown above, as shown in fig. 2, a schematic flow diagram of a message pushing method provided in an embodiment of the present invention is shown, where the message pushing method is applied to a server, and the server may be the server shown in fig. 1, and the message pushing method mainly includes the following steps:
step S201: and acquiring the subscription authorization information of the client synchronized by the network terminal.
In step S201, the subscription authorization information of the client is the subscription authorization information of the client synchronized to the server by the network based on the subscription authorization request sent by the client.
It should be noted that the network side and the client side may be the network side and the client side shown in fig. 1.
Optionally, the network end may be a website or a cloud end providing the topic subscription information, such as, but not limited to, a marine network.
The subscription authorization information includes at least one of a client model number and a client identification.
It should be noted that the client model may refer to a series to which the client belongs, for example, a handset model R2017, which indicates that the handset belongs to the OPPO series. The client identifier may refer to an identification code representing the uniqueness of the client, for example, the international mobile equipment identity IMEI of the mobile phone is the client identifier.
In the process of implementing step S201 specifically, the server may obtain the subscription authorization information of the synchronized client from the network side, or obtain the subscription authorization information of the corresponding client from the subscription authorization information stored in the server.
For example, if the client authorizes the network to subscribe to the theme message of the device information of a certain model, the client sends a subscription authorization request to the network, and the network synchronizes the subscription authorization information of the client to the server based on the subscription authorization request. That is to say, if the topic message of the device information of a certain model is synchronously subscribed, the server needs to obtain the subscription authorization information of the client synchronized by the network side to perform corresponding processing operation.
Step S202: and filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner.
In step S202, the theme message is a message generated by the message producer according to different theme types.
It should be noted that the second message middleware is a widget on the server, and may be the second level message middleware shown in fig. 1.
In the process of implementing step S202 specifically, the topic messages stored in real time are filtered based on the subscription authorization information, that is, the subscription authorization information is matched with the stored topic messages to obtain first topic messages matched with the subscription authorization information, the first topic messages are obtained, and the subscription authorization information and the first topic messages are stored in the second message middleware in a combined manner.
Optionally, the step S202 is executed to store the combination of the subscription authorization information and the first topic message in the second message middleware, where the process includes:
and combining the subscription authorization information with the first theme message by taking the subscription authorization information as an index to obtain a combined theme, and storing the combined theme in the second message middleware.
Optionally, the step S202 is executed to filter the theme messages stored in real time based on the subscription authorization information to obtain the first theme message matched with the subscription authorization information, and store the subscription authorization information and the first theme message in a second message middleware in a combined manner, as shown in fig. 3, which is a schematic flow diagram for filtering the theme messages stored in real time according to the embodiment of the present invention, and mainly includes the following steps:
step S301: and acquiring the device information which is used for indicating the type of the client in the subscription authorization information.
In the process of implementing step S301 specifically, after the server obtains the subscription authorization information of the client synchronized by the network side, it needs to obtain the specific relevant information of the client according to the subscription authorization information, and optionally, may obtain the device information used for indicating the type of the client in the subscription authorization information.
Step S302: and filtering the theme message stored in real time based on the equipment information, and acquiring the first theme message matched with the equipment information.
In the process of implementing step S302 specifically, the theme message stored in real time is filtered based on the device information indicating the client type in the subscription authorization information, that is, the device information is matched with the stored theme message to obtain a first theme message matched with the device information, and the first theme message matched with the device information is obtained.
Step S303: and combining the subscription authorization information with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
In the process of implementing the step S303 specifically, according to the acquired first theme message matched with the device information, the subscription authorization information is combined with the first theme message to obtain a combined theme, and the combined theme is stored in the second message middleware.
For example, in steps S301 to S303, if it is known that the subscription authorization information includes the client type Android, device information used for indicating the client type Android in the subscription authorization information is obtained, the theme messages stored in real time are filtered based on the device information, and a first theme message matched with the device information is obtained, where the first theme message includes theme messages such as paleo, silence, modern, and tea, the device information used for indicating the client type Android and the paleo theme message may be combined to obtain a combined theme a, the combined theme a is stored in the second message middleware, or the device information used for indicating the client type Android and the silence theme message may be combined to obtain a combined theme B, and the combined theme B is stored in the second message middleware.
Optionally, when the subscription authorization information includes the client model, a process of filtering the topic message stored in real time based on the subscription authorization information in step S202 to obtain a first topic message matched with the subscription authorization information, and storing the combination of the subscription authorization information and the first topic message in the second message middleware is executed, as shown in fig. 4, which is another schematic flow diagram for filtering the topic message stored in real time provided in the embodiment of the present invention, and mainly includes the following steps:
step S401: and acquiring the client model in the subscription authorization information.
It should be noted that the client model may refer to a series to which the client belongs.
For example, the handset model R2017 indicates that the handset belongs to the OPPO family.
In the process of implementing step S401 specifically, after the server obtains the subscription authorization information of the client synchronized with the network side, it needs to obtain the specific relevant information of the client according to the subscription authorization information, and optionally, the client model in the subscription authorization information may be obtained.
Step S402: and filtering the theme message stored in real time based on the client model to obtain a first theme message matched with the client model.
In the process of implementing step S402 specifically, the theme message stored in real time is filtered based on the client model, that is, the client model is matched with the stored theme message to obtain a first theme message matched with the client model, and the first theme message matched with the client model is obtained.
Step S403: and combining the client model with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
In the process of the specific implementation step S403, the client model and the first theme message are combined according to the acquired first theme message matched with the client model to obtain a combined theme, and the combined theme is stored in the second message middleware.
For example, in steps S401 to S403, if it is known that the subscription authorization information includes the client model TEL-AN20, acquiring the client model TEL-AN20 in the subscription authorization information, filtering the theme message stored in real time based on the client model TEL-AN20, and acquiring the first theme message matched with the client model TEL-AN20, where the first theme message includes theme messages such as antique, silence, modern, and matcha, the client model TEL-AN20 and the modern theme message may be combined to obtain a combined theme C, and the combined theme C is stored in the second message middleware, or the client model TEL-AN20 and the matcha theme message may be combined to obtain a combined theme D, and the combined theme D is stored in the second message middleware.
Optionally, when the subscription authorization information includes the client identifier, the process of filtering the topic message stored in real time based on the subscription authorization information in step S202 to obtain a first topic message matched with the subscription authorization information, and storing the combination of the subscription authorization information and the first topic message in the second message middleware is executed, as shown in fig. 5, which is a schematic flow diagram for filtering the topic message stored in real time provided in the embodiment of the present invention, and mainly includes the following steps:
step S501: and acquiring the client identifier in the subscription authorization information.
It should be noted that the client identifier may refer to an identification code indicating the uniqueness of the client.
For example, the international mobile equipment identity IMEI of a mobile phone is the client identity.
In the process of implementing step S501 specifically, after the server obtains the subscription authorization information of the client synchronized with the network, it needs to obtain the relevant information of the specific client according to the subscription authorization information, and optionally, the client identifier in the subscription authorization information may be obtained.
Step S502: and filtering the theme message stored in real time based on the client identification, and acquiring a first theme message matched with the client identification.
In the process of implementing step S502 specifically, the theme message stored in real time is filtered based on the client identifier, that is, the client identifier is matched with the stored theme message to obtain a first theme message matched with the client identifier, and the first theme message matched with the client identifier is obtained.
Step S503: and combining the client identification with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
In the process of the specific implementation step S503, according to the acquired first theme message matched with the client identifier, the client identifier is combined with the first theme message to obtain a combined theme, and the combined theme is stored in the second message middleware.
For example, in steps S501 to S503, if it is known that the subscription authorization information includes the client identifier 865674027029418, acquiring the client identifier 865674027029418 in the subscription authorization information, filtering the theme messages stored in real time based on the client identifier 865674027029418, acquiring the first theme message matched with the client identifier 865674027029418, where the first theme message includes theme messages such as loveliness, cartoon, and movie, the client identifier 865674027029418 may be combined with the loveliness theme message to obtain a combined theme E, and the combined theme E is stored in the second message middleware, or the client identifier 865674027029418 may be combined with the cartoon theme message to obtain a combined theme F, and the combined theme F is stored in the second message middleware.
Step S203: and acquiring a subscription request sent by a client.
In step S203, the subscription request includes the client model and the topic type to be subscribed.
In the process of implementing step S203 specifically, the server obtains a subscription request of a subscription message sent by the client.
Step S204: and searching a first topic message in the second message middleware based on the subscription request, and pushing a second topic message matched with the subscription request in the first topic message to the client.
In step S204, the subscription request includes the client model and the topic type to be subscribed.
In the process of the specific implementation step S204, when the subscription request includes the client model and the topic type to be subscribed, the first topic message in the second message middleware is searched based on the client model and the topic type to be subscribed, and the second topic message matched with the subscription request is pushed to the client.
Optionally, when the subscription request includes the client model and the topic type to be subscribed, a process of searching for the first topic message in the second message middleware based on the subscription request in step S204 and pushing the second topic message matched with the subscription request in the first topic message to the client is executed, as shown in fig. 6, which is a schematic flow diagram for searching for a matched second topic message provided in the embodiment of the present invention, and mainly includes the following steps:
step S601: and searching for the first theme message corresponding to the client model in the second message middleware according to the client model.
In the process of implementing step S601 specifically, after the subscription request sent by the client is obtained, the server may search, according to the client model in the subscription request, whether the first theme message corresponding to the client model exists in the second message middleware, and if so, it indicates that the first theme message corresponding to the client model is found.
Step S602: and acquiring a second topic message matched with the topic type to be subscribed from the first topic message based on the topic type to be subscribed.
In the process of implementing step S602 specifically, the server obtains, according to the topic type to be subscribed in the subscription request, the second topic message matched with the topic type to be subscribed from the searched first topic message.
Step S603: and pushing the second theme message to the client.
In the process of specifically implementing step S603, the server pushes the second topic message matched with the topic type to be subscribed to the client.
Based on the message pushing method provided by the embodiment of the invention, the subscription authorization information of the client side synchronized by the network side is obtained; filtering the theme messages stored in real time based on the subscription authorization information to obtain first theme messages matched with the subscription authorization information, and storing the subscription authorization information and the first theme messages in a second message middleware in a combined manner, wherein the theme messages are messages generated by a message production end according to different theme types; acquiring a subscription request sent by a client; and searching the first topic message in the second message middleware based on the subscription request, and pushing the second topic message matched with the subscription request in the first topic message to the client. According to the scheme, unmatched theme messages are filtered through subscription authorization information of the client, the matched first theme messages and the subscription authorization information are combined and then stored, and when a subscription request sent by the client is obtained, second theme messages matched with the subscription request in the first theme messages are searched based on the subscription request and are pushed to the client, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.
Corresponding to the message pushing method shown in the foregoing embodiment of the present invention, an embodiment of the present invention further provides a message pushing apparatus, where the message pushing apparatus is applied to a server, and the server may be the server shown in fig. 1, and as shown in fig. 7, the message pushing apparatus includes: an acquisition module 51, a processing module 72 and a push module 73.
An obtaining module 71, configured to obtain subscription authorization information of a client synchronized by a network and obtain a subscription request sent by the client;
the processing module 72 is configured to filter the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and store the subscription authorization information and the first theme message in a second message middleware in a combined manner, where the theme message is a message generated by the message production end according to different theme types;
the pushing module 73 is configured to search for a first topic message in the message middleware based on the subscription request, and push a second topic message matching the subscription request in the first topic message to the client.
It should be noted that, the specific principle and the execution process of each module in the message pushing apparatus disclosed in the above embodiment of the present invention are the same as the message pushing method implemented in the above embodiment of the present invention, and reference may be made to corresponding parts in the message pushing method disclosed in the above embodiment of the present invention, which are not described herein again.
Based on the message pushing device provided by the embodiment of the invention, the subscription authorization information of the client side synchronized by the network side is obtained; filtering the theme messages stored in real time based on the subscription authorization information to obtain first theme messages matched with the subscription authorization information, and storing the subscription authorization information and the first theme messages in a second message middleware in a combined manner, wherein the theme messages are messages generated by a message production end according to different theme types; acquiring a subscription request sent by a client; and searching a first topic message in the message middleware based on the subscription request, and pushing a second topic message matched with the subscription request in the first topic message to the client. According to the scheme, unmatched theme messages are filtered through subscription authorization information of the client, the matched first theme messages and the subscription authorization information are combined and then stored, and when a subscription request sent by the client is obtained, second theme messages matched with the subscription request in the first theme messages are searched based on the subscription request and are pushed to the client, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.
Optionally, based on the processing module 72 shown in fig. 7, the subscription authorization information includes a client model, and the processing module 72 is specifically configured to:
acquiring a client model in subscription authorization information; filtering the theme message stored in real time based on the client model to obtain a first theme message matched with the client model; and combining the client model with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
According to the message pushing device provided by the embodiment of the invention, unmatched theme messages are filtered through the subscription authorization information of the client, and the matched first theme message and the subscription authorization information are combined and then stored, so that pushing of useless messages is reduced, processing pressure is reduced, and resources are saved.
Optionally, based on the pushing module 73 shown in fig. 7, the subscription request at least includes a client model and a topic type to be subscribed, and the pushing module 73 is specifically configured to:
searching a first theme message corresponding to the client model in the second message middleware according to the client model; acquiring a second topic message matched with the topic type to be subscribed from the first topic message based on the topic type to be subscribed; and pushing the second theme message to the client.
According to the message pushing device provided by the embodiment of the invention, when the subscription request sent by the client is obtained, the second subject message matched with the subscription request of the client is searched based on the subscription request and is pushed to the client, so that the pushing of useless messages is reduced, the processing pressure is reduced, and resources are saved.
Optionally, based on the message pushing apparatus shown in fig. 7, the processing module 72 configured to store the combination of the subscription authorization information and the first topic message in the second message middleware is specifically configured to:
and combining the subscription authorization information with the first theme message by taking the subscription authorization information as an index to obtain a combined theme, and storing the combined theme in the second message middleware.
According to the message pushing device provided by the embodiment of the invention, unmatched theme messages are filtered through the subscription authorization information of the client, and the matched first theme message is combined with the subscription authorization information and then stored, so that the pushing of useless messages is reduced, the processing pressure is reduced, and resources are saved.
Based on the message pushing apparatus disclosed in the embodiment of the present invention, the modules may be implemented by a hardware device including a processor and a memory. Specifically, the modules are stored in a memory as program units, and a processor executes the program units stored in the memory to realize message pushing.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and message pushing is realized by adjusting kernel parameters.
An embodiment of the present invention provides a computer storage medium, where the storage medium includes a stored message pushing program, where the program, when executed by a processor, implements the message pushing method according to any one of claims 1 to 4.
An embodiment of the present invention provides a processor, where the processor is configured to execute a program, where the program executes the message pushing method disclosed in fig. 1 when running.
An electronic device 80 is provided in an embodiment of the present invention, and as shown in fig. 8, is a schematic structural diagram of the electronic device 80 provided in the embodiment of the present invention.
The electronic device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
The electronic device comprises at least one processor 801 and at least one memory 802 connected to the processor, and a bus 803.
The processor 801 and the memory 802 communicate with each other via a bus 803. A processor 801 for executing programs stored in the memory 802.
A memory 802 for storing a program for at least: acquiring subscription authorization information of a client side synchronized by a network side; filtering the theme messages stored in real time based on the subscription authorization information to obtain first theme messages matched with the subscription authorization information, and storing the subscription authorization information and the first theme messages in a second message middleware in a combined manner, wherein the theme messages are messages generated by a message production end according to different theme types; acquiring a subscription request sent by a client; and searching the first topic message in the second message middleware based on the subscription request, and pushing the second topic message matched with the subscription request in the first topic message to the client.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on an electronic device:
obtaining subscription authorization information of a client synchronized by a network terminal; filtering the theme messages stored in real time based on the subscription authorization information to obtain first theme messages matched with the subscription authorization information, and storing the subscription authorization information and the first theme messages in a second message middleware in a combined manner, wherein the theme messages are messages generated by a message production end according to different theme types; acquiring a subscription request sent by a client; and searching the first topic message in the second message middleware based on the subscription request, and pushing the second topic message matched with the subscription request in the first topic message to the client.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A message pushing method is applied to a server, and the method comprises the following steps:
obtaining subscription authorization information of a client synchronized by a network terminal;
filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner, wherein the theme message is generated by a message production end according to different theme types;
acquiring a subscription request sent by a client;
and searching for a first topic message in the second message middleware based on the subscription request, and pushing a second topic message matched with the subscription request in the first topic message to the client.
2. The method of claim 1, wherein the subscription authorization information comprises a client model number, wherein the filtering of the topic messages stored in real time based on the subscription authorization information results in a first topic message matching the subscription authorization information, and wherein the storing of the combination of the subscription authorization information and the first topic message in a second message middleware comprises:
acquiring a client model in the subscription authorization information;
filtering the theme message stored in real time based on the client model, and acquiring a first theme message matched with the client model;
and combining the client model with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
3. The method according to claim 1, wherein the subscription request at least includes a client model and a topic type to be subscribed, and the searching for a first topic message in the second message middleware based on the subscription request and pushing a second topic message matching the subscription request in the first topic message to the client comprises:
searching a first theme message corresponding to the client model in the second message middleware according to the client model;
acquiring a second topic message matched with the topic type to be subscribed from the first topic message based on the topic type to be subscribed;
and pushing the second theme message to the client.
4. The method of claim 1, wherein storing the subscription authorization information and the first subject message combination in second message middleware comprises:
and combining the subscription authorization information with the first theme message by taking the subscription authorization information as an index to obtain a combined theme, and storing the combined theme in the second message middleware.
5. A message pushing apparatus, applied to a server, the apparatus comprising:
the acquisition module is used for acquiring the subscription authorization information of the client side synchronized by the network side and acquiring the subscription request sent by the client side;
the processing module is used for filtering the theme messages stored in real time based on the subscription authorization information to obtain a first theme message matched with the subscription authorization information, and storing the subscription authorization information and the first theme message in a second message middleware in a combined manner, wherein the theme message is generated by a message production end according to different theme types;
and the pushing module is used for searching a first theme message in the second message middleware based on the subscription request and pushing a second theme message matched with the subscription request in the first theme message to the client.
6. The apparatus of claim 5, wherein the subscription authorization information includes a client model number, and wherein the processing module is specifically configured to:
acquiring a client model in the subscription authorization information; filtering the theme message stored in real time based on the client model, and acquiring a first theme message matched with the client model; and combining the client model with the first theme message to obtain a combined theme, and storing the combined theme in second message middleware.
7. The apparatus according to claim 5, wherein the subscription request includes at least a client model and a topic type to be subscribed, and the pushing module is specifically configured to:
searching a first theme message corresponding to the client model in the second message middleware according to the client model; acquiring a second topic message matched with the topic type to be subscribed from the first topic message based on the topic type to be subscribed; and pushing the second theme message to the client.
8. The apparatus of claim 5, wherein the processing module configured to store the subscription authorization information and the first topic message combination in second message middleware is specifically configured to:
and combining the subscription authorization information with the first theme message by taking the subscription authorization information as an index to obtain a combined theme, and storing the combined theme in the second message middleware.
9. An electronic device, wherein the electronic device is configured to run a program, wherein the program executes the message pushing method according to any one of claims 1 to 4.
10. A computer storage medium, characterized in that the storage medium comprises a storage program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the message pushing method according to any one of claims 1 to 4.
CN202110902110.7A 2021-08-06 2021-08-06 Message pushing method and device, electronic equipment and computer storage medium Pending CN115914358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110902110.7A CN115914358A (en) 2021-08-06 2021-08-06 Message pushing method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110902110.7A CN115914358A (en) 2021-08-06 2021-08-06 Message pushing method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115914358A true CN115914358A (en) 2023-04-04

Family

ID=86480069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110902110.7A Pending CN115914358A (en) 2021-08-06 2021-08-06 Message pushing method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115914358A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086066A (en) * 2022-07-14 2022-09-20 中国联合网络通信集团有限公司 Message subscription method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium
US20200195740A1 (en) * 2017-08-29 2020-06-18 Huawei Technologies Co., Ltd. Subscribe and publish method and server
CN111654555A (en) * 2020-08-10 2020-09-11 南京云联数科科技有限公司 Method, electronic device and storage medium for message distribution
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200195740A1 (en) * 2017-08-29 2020-06-18 Huawei Technologies Co., Ltd. Subscribe and publish method and server
CN112039942A (en) * 2017-08-29 2020-12-04 华为技术有限公司 Subscription and publishing method and server
CN110086636A (en) * 2019-04-17 2019-08-02 平安科技(深圳)有限公司 A kind of message distributing method based on mqtt, server and storage medium
CN111654555A (en) * 2020-08-10 2020-09-11 南京云联数科科技有限公司 Method, electronic device and storage medium for message distribution
CN112422544A (en) * 2020-11-09 2021-02-26 深圳市华昊软件有限公司 Machine room equipment information monitoring system based on MQTT communication protocol

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086066A (en) * 2022-07-14 2022-09-20 中国联合网络通信集团有限公司 Message subscription method, device, equipment and storage medium
CN115086066B (en) * 2022-07-14 2023-07-18 中国联合网络通信集团有限公司 Message subscription method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106897205B (en) Test data generation method and device
CN106375360B (en) Graph data updating method, device and system
CN107846321B (en) Interface monitoring method and device and electronic equipment
CN107066519B (en) Task detection method and device
CN110798490B (en) Method and device for accessing third-party system based on data center and data center
CN110543512B (en) Information synchronization method, device and system
CN111784468B (en) Account association method and device and electronic equipment
CN115914358A (en) Message pushing method and device, electronic equipment and computer storage medium
CN109495350B (en) Office data checking method, office data checking device and storage medium
CN112148972A (en) Method and device for screening information to be recommended
CN110809051B (en) Service data processing method and system
CN114640657A (en) Multi-registration center fusion method and device
CN112559642A (en) Data classification storage method and device and related products
CN108023920B (en) Data packet transmission method, equipment and application interface
CN112491943A (en) Data request method, device, storage medium and electronic equipment
CN115221242A (en) Data synchronization method and device and computer readable storage medium
CN113869989B (en) Information processing method and device
CN115098525A (en) Index updating method and device, electronic equipment and storage medium
CN112668287A (en) Data table determination method, system and device
CN110909071A (en) Data synchronization method, device and system
CN111913789A (en) Program tracking method, device and medium supporting micro-service architecture
CN110019494B (en) Media data processing method and device, storage medium and processor
CN110753070A (en) Data communication method, client, server and data communication system
CN111464411B (en) Configuration method and device for data collected by vehicle-mounted terminal
CN111694611B (en) Data processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination