CN116708550A - Message pushing method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN116708550A
CN116708550A CN202310903800.3A CN202310903800A CN116708550A CN 116708550 A CN116708550 A CN 116708550A CN 202310903800 A CN202310903800 A CN 202310903800A CN 116708550 A CN116708550 A CN 116708550A
Authority
CN
China
Prior art keywords
resource
message
resource message
target
sent
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
CN202310903800.3A
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.)
China Electronics Technology Network Security Technology Co ltd
Original Assignee
China Electronics Technology Network Security Technology 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 China Electronics Technology Network Security Technology Co ltd filed Critical China Electronics Technology Network Security Technology Co ltd
Priority to CN202310903800.3A priority Critical patent/CN116708550A/en
Publication of CN116708550A publication Critical patent/CN116708550A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a message pushing method, a device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: acquiring a subscription strategy aiming at a target resource subscription system, and determining a corresponding target resource message according to the subscription strategy; determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message; and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system. It can be seen that the superior resource message corresponding to the target resource message is automatically determined according to the resource dependency relationship of the target resource message, and both the superior resource message and the target resource message are stored in the queue to be sent, so that the problem that related resources with the dependency relationship need to be manually subscribed in the resource message creation process is solved.

Description

Message pushing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for pushing a message.
Background
At present, with the vigorous development of information network platforms, resources among business systems in the information network platforms need to be mutually subscribed, so that the stability of resource message transmission and message integrity need to be ensured. In the prior art, the interaction method of the resource message in each service system has a larger limitation, when a user needs to subscribe a certain resource, the user needs to subscribe the upper resource of the resource and the resource in sequence, and the whole process needs to subscribe operations for a plurality of times, so that the efficiency of loading and sending the resource message is reduced, and the subscription is easily missed by manually searching.
Disclosure of Invention
In view of the above, the present application aims to provide a message pushing method, device, equipment and medium, which can realize subscription of all relevant resources with dependency relationship through one subscription. The specific scheme is as follows:
in a first aspect, the present application discloses a message pushing method, including:
acquiring a subscription strategy aiming at a target resource subscription system, and determining a corresponding target resource message according to the subscription strategy;
determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message;
and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system.
Optionally, the adding the target resource message and the upper resource message to the corresponding queue to be sent includes:
inquiring whether screening conditions aiming at the superior resource information exist in the subscription strategy;
if yes, screening the superior resource message according to the screening condition to obtain a target superior resource message;
and adding the target resource message and the target superior resource message into a queue to be sent.
Optionally, the determining, according to the resource dependency relationship of the target resource message, the upper resource message corresponding to the target resource message includes:
and determining a first superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message, and determining the superior resource message corresponding to the first superior resource message according to the resource dependency relationship of the first superior resource message until all the superior resource messages corresponding to the target resource message are obtained by inquiry.
Optionally, the sending the resource message in the queue to be sent to the target resource subscription system includes:
and sequentially sending the resource messages in the queue to be sent to the target resource subscription system according to the sequence from the upper level to the lower level of the resource, and judging whether the resource messages meet the sending condition before sending each resource message.
Optionally, the sending condition includes that the resource message is the uppermost resource message, or that the resource message is directly sent successfully by the upper resource message.
Optionally, the sending the resource message in the queue to be sent to the target resource subscription system includes:
the resource information in the queue to be sent is sent to an information registration sending service, so that the information registration sending service sends the resource information to the target resource subscription system after channel checking and translation encryption;
the message registration sending service is also used for displaying the resource message to be sent, the successful resource message and the abnormal resource message.
Optionally, after the sending the resource message in the queue to be sent to the target resource subscription system, the method further includes:
and receiving a message receipt fed back by the target resource subscription system, and modifying the state of the corresponding resource message according to the message receipt so as to resend the resource message which is not successfully received after restarting.
In a second aspect, the present application discloses a message pushing device, including:
the strategy acquisition module is used for acquiring a subscription strategy aiming at a target resource subscription system, and determining a corresponding target resource message according to the subscription strategy;
the upper resource determining module is used for determining an upper resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message;
and the resource message sending module is used for adding the target resource message and the upper resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the message pushing method.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by the processor implements the message pushing method described above.
In the application, a subscription strategy aiming at a target resource subscription system is obtained, and a corresponding target resource message is determined according to the subscription strategy; determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message; and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system. It can be seen that the superior resource message corresponding to the target resource message is automatically determined according to the resource dependency relationship of the target resource message, and the superior resource message and the target resource message are both stored in the queue to be sent, so that the problem that related resources with dependency relationship need to be manually subscribed in the resource message creation process is solved, namely, subscription strategies of all the resources with dependency relationship are automatically created by one subscription, and discrete message pushing aiming at the resources with dependency relationship is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a message pushing method provided by the application;
FIG. 2 is a flowchart of a specific message pushing method provided by the present application;
fig. 3 is a schematic structural diagram of a message pushing device provided by the present application;
fig. 4 is a block diagram of an electronic device according to the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the prior art, the interaction method of the resource message in each service system has a larger limitation, when a user needs to subscribe a certain resource, the user needs to subscribe the upper resource of the resource and the resource in sequence, and the whole process needs to subscribe operations for a plurality of times, so that the efficiency of loading and sending the resource message is reduced.
The embodiment of the application discloses a message pushing method, which is shown in fig. 1, and can comprise the following steps:
step S11: and acquiring a subscription strategy aiming at a target resource subscription system, and determining a corresponding target resource message according to the subscription strategy.
In this embodiment, first, a subscription policy of a user for a target resource subscription system is obtained, and then a corresponding target resource message is determined according to the subscription policy, where the subscription policy may be a single-choice subscription policy, for example, subscription for a certain class of learning.
Step S12: and determining the superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message.
In this embodiment, after determining the target resource message, determining the upper resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message, it can be understood that the resource is an indispensable important content, and does not exist alone in the service system, and has a dependency relationship with other resources, so that the upper resource message of the target resource message is determined through the dependency relationship. Typically the target resource message is the lowest level resource message and then the upper level resource message is looked up accordingly.
In this embodiment, the determining, according to the resource dependency relationship of the target resource message, the upper resource message corresponding to the target resource message may include: and determining a first superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message, and determining the superior resource message corresponding to the first superior resource message according to the resource dependency relationship of the first superior resource message until all the superior resource messages corresponding to the target resource message are obtained by inquiry. That is, the upper level resource message may include a direct upper level resource message of the target resource message as well as a further upper level resource message of the direct upper level resource message up to the highest level resource type message. For example, the target resource message is a user resource message, a higher-level resource message of the user resource message is an organization resource message, and a higher-level resource message of the organization resource message is an organization resource message.
Step S13: and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system.
In this embodiment, the determined target resource message and the upper resource message are added into the corresponding queue to be sent, and then the resource message in the queue to be sent is sent to the target resource subscription system, that is, by creating a corresponding queue to be sent for each target resource message, where the queue stores the target resource message and the related upper resource message with the dependency relationship. Therefore, when the resource sending message is abnormal, the subsequent resource message without the dependency relationship can be pushed continuously, and the timeliness of the resource message is ensured. And simultaneously, concurrent operation is carried out according to the existing content in the queue to be transmitted, so that the resource message transmission efficiency is improved.
In this embodiment, the adding the target resource message and the upper resource message to the corresponding queue to be sent may include: inquiring whether screening conditions aiming at the superior resource information exist in the subscription strategy; if yes, screening the superior resource message according to the screening condition to obtain a target superior resource message; and adding the target resource message and the target superior resource message into a queue to be sent. That is, the upper resource messages of the target resource messages may be massive, and the user can select part of the upper resource messages through screening conditions, and add the part of the upper resource messages as the target upper resource messages to the to-be-sent queue, so that the accuracy of the resource messages is improved, and the transmission bandwidth is saved. Specifically, the subscription strategy for organizing the resources can be automatically constructed according to the screening conditions on the basis of the original subscription strategy, and the screening is realized by the subscription strategy for organizing the resources, so that the resource message construction strategy is more efficient and stable.
In this embodiment, the sending the resource message in the queue to be sent to the target resource subscription system may include: and sequentially sending the resource messages in the queue to be sent to the target resource subscription system according to the sequence from the upper level to the lower level of the resource, and judging whether the resource messages meet the sending condition before sending each resource message. Namely, the resource synchronization is sequentially and orderly stored when the message interaction storage is sequentially carried out according to the level of the dependency relationship, and whether the transmission condition is met or not needs to be judged before transmission.
In this embodiment, the sending condition includes that the resource message is the uppermost resource message, or that the resource message is directly sent successfully by the upper resource message. The method comprises the steps of sequentially taking out queue head resources from a to-be-transmitted queue, checking whether the resources meet transmission conditions, namely judging whether the upper-level dependent resources of the resources are successfully transmitted, if so, the resources can be transmitted, for example, the organization resources are successfully transmitted, and the current organization resources can be transmitted; if the resource does not have a higher level dependent resource, such as an organization resource, the transmission condition is satisfied.
In this embodiment, the sending the resource message in the queue to be sent to the target resource subscription system may include: the resource information in the queue to be sent is sent to an information registration sending service, so that the information registration sending service sends the resource information to the target resource subscription system after channel checking and translation encryption; the message registration sending service is also used for displaying the resource message to be sent, the successful resource message and the abnormal resource message.
The method comprises the steps that in the embodiment, the method can be applied to a pre-established synchronous resource algorithm core service, resource information is specifically sent to a message registration sending service, after channel inspection, translation and encryption are carried out by the message registration sending service, the message is forwarded to a target resource subscription system, the message registration sending service specifically loads relevant information of a corresponding target resource subscription system according to a subscription strategy of a resource to be sent, and the message interaction channel of the resource subscription system is inspected; then translating the resource to be transmitted according to the communication protocol, encrypting and protecting the translation result, and constructing a transmission message; and finally, according to the message exchange address of the resource subscription system, sending the resource message to the target resource subscription system. Meanwhile, the message registration sending service is also used for displaying the resource message to be sent, the successful resource message and the abnormal resource message; that is, the user can check the resource message to be sent, the successful resource message to be sent, the abnormal resource message to be sent and the specific abnormal reason in the message registration sending service resource message monitoring list. Therefore, a more perfect resource message sending monitoring system is realized through the message registration sending service, the life cycle of resource message sending can be monitored, the resource messages in each state can be conveniently and uniformly managed, and the operation and maintenance cost of the resource message sending service is reduced.
In this embodiment, after the sending the resource message in the queue to be sent to the target resource subscription system, the method may further include: and receiving a message receipt fed back by the target resource subscription system, and modifying the state of the corresponding resource message according to the message receipt so as to resend the resource message which is not successfully received after restarting. The target resource subscription system feeds back a message receipt to the message registration sending service after receiving the resource message, and the message registration sending service forwards the message receipt to the synchronous resource algorithm core service so as to modify the state of the corresponding resource message according to the message receipt, if the message receipt is successful or not, the message is successful, and the unreceived resource message is retransmitted after restarting. Therefore, aiming at the message with failed transmission, the use of other service functions of the system is not affected through a reasonable message retransmission mechanism. Therefore, aiming at the problem that the prior art cannot continue the interaction of the prior unfinished resource messages after the system is down and restarted, the embodiment can well solve the problem that the resources in the system are loaded efficiently, and ensure that the resource messages can be sent successively according to a certain dependency relationship and succeed in a certain degree; meanwhile, the system is restarted after downtime, and the message interaction of the unsuccessfully transmitted resources with other systems can be continued.
From the above, in this embodiment, a subscription policy for a target resource subscription system is obtained, and a corresponding target resource message is determined according to the subscription policy; determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message; and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system. It can be seen that the superior resource message corresponding to the target resource message is automatically determined according to the resource dependency relationship of the target resource message, and the superior resource message and the target resource message are both stored in the queue to be transmitted, so that the problem that related resources with the dependency relationship need to be manually subscribed in the resource message creation process is solved, namely, subscription strategies of all resources with the dependency relationship are automatically created by one subscription, discrete message pushing aiming at the resources is realized, and the use efficiency of the server resources in the resource message construction process and the message transmission process is remarkably improved.
The embodiment of the application also discloses a specific message pushing method, which is shown in fig. 2 and comprises the following steps:
1. the user (i.e., administrator) creates a desired subscription policy, such as a radio subscription policy, for a particular resource subscription system based on business needs.
2. The created policy is injected into the synchronous resource algorithm core service.
3. The synchronous resource algorithm core service finds out all user/application/gateway resources meeting the subscription policy according to the subscription policy. It can be understood that, besides determining the user resources, the corresponding application resources and gateway resources can also be determined according to the authority owned by the user.
4. The synchronous resource algorithm core service automatically loads organization resources with a dependency relationship with user/application/gateway resources meeting the subscription policy according to the algorithm.
5. The synchronous resource algorithm core service automatically loads the mechanism resources with the dependency relationship with the organization resources in the last step according to the algorithm.
6. The synchronous resource algorithm core service automatically creates subscription policies belonging to institutions of the same resource subscription system.
7. And pre-marking subscription parameters related to the mechanism resources of the resource cache center, and using the subscription parameters to characterize subscription.
8. And placing the mechanism resources into a queue to be transmitted.
9. The synchronous resource algorithm core service will automatically create the subscription policies belonging to the organization for the same resource subscription system.
10. And pre-marking subscription parameters related to organization resources of the resource cache center, wherein the subscription parameters are used for representing subscription.
11. And placing the organization resources into a queue to be transmitted.
12. And pre-marking subscription parameters related to the user/application/gateway resources of the resource cache center for representing subscription.
13. And placing the user/application/gateway resources into a queue to be transmitted.
14. And the synchronous resource algorithm core service takes out the queue head resource from the queue to be transmitted and checks whether the resource meets the transmission condition. Such as: the upper level of the resource depends on whether the resource was successfully transmitted, and if so, the resource can be transmitted. If the resource does not have a higher level dependent resource, such as an organization resource, the transmission condition is satisfied.
15. The synchronous resource algorithm core service notifies the to-be-transmitted resource meeting the transmission condition to the message registration transmission service.
16. And the message registration sending service loads relevant information of the resource subscription system according to the subscription policy of the resource to be sent, and checks a message interaction channel of the resource subscription system.
17. And translating the resource to be transmitted according to the communication protocol, and encrypting and protecting the translation result to construct a transmission message.
18. And sending the resource message to the resource subscription system according to the message exchange address of the resource subscription system.
19. The user checks the resource message to be transmitted, the successful resource message, the abnormal resource message and the specific abnormal reason in the message registration transmission service resource message monitoring list.
20. The message registration sending service receives the message receipt result of the resource subscription system and analyzes and translates the message according to the communication protocol.
21. And the message registration sending service feeds back the translated and parsed resource sending message receipt result to the synchronous resource algorithm core service.
22. And the synchronous algorithm core service modifies and stores the value of the relevant subscription parameter of the subscription resource stored in the resource cache center according to the receipt result sent by the message.
As can be seen, in this embodiment, a subscription policy for a target resource subscription system is obtained, and a corresponding target resource message is determined according to the subscription policy; determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message; and adding the target resource message and the superior resource message into a queue to be sent, adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system. It can be seen that the superior resource message corresponding to the target resource message is automatically determined according to the resource dependency relationship of the target resource message, and the superior resource message and the target resource message are both stored in the queue to be sent, so that the problem that related resources with dependency relationship need to be manually subscribed in the resource message creation process is solved, namely, subscription strategies of all resources with dependency relationship are automatically created by one subscription, and discrete message pushing aiming at the resources with dependency relationship is realized.
Correspondingly, the embodiment of the application also discloses a message pushing device, which is shown in fig. 3, and comprises the following components:
the policy acquisition module 11 is configured to acquire a subscription policy for a target resource subscription system, and determine a corresponding target resource message according to the subscription policy;
the superior resource determining module 12 is configured to determine a superior resource message corresponding to the target resource message according to a resource dependency relationship of the target resource message;
and the resource message sending module 13 is configured to add the target resource message and the upper resource message to a corresponding queue to be sent, and send the resource message in the queue to be sent to the target resource subscription system.
From the above, in this embodiment, a subscription policy for a target resource subscription system is obtained, and a corresponding target resource message is determined according to the subscription policy; determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message; and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system. It can be seen that the superior resource message corresponding to the target resource message is automatically determined according to the resource dependency relationship of the target resource message, and the superior resource message and the target resource message are both stored in the queue to be sent, so that the problem that related resources with dependency relationship need to be manually subscribed in the resource message creation process is solved, namely, subscription strategies of all resources with dependency relationship are automatically created by one subscription, and discrete message pushing aiming at the resources with dependency relationship is realized.
In some specific embodiments, the resource message sending module 13 may specifically include:
a screening condition query unit, configured to query whether a screening condition for the superior resource message exists in the subscription policy;
the screening unit is used for screening the superior resource message according to the screening condition if the target superior resource message exists;
and adding the target resource message and the target superior resource message into a queue to be sent.
In some specific embodiments, the superior resource determining module 12 may specifically include:
the upper resource determining unit is configured to determine, according to the resource dependency relationship of the target resource message, a first upper resource message corresponding to the target resource message, and determine, according to the resource dependency relationship of the first upper resource message, an upper resource message corresponding to the first upper resource message until all upper resource messages corresponding to the target resource message are obtained by querying.
In some specific embodiments, the resource message sending module 13 may specifically include:
and the resource message sending unit is used for sequentially sending the resource messages in the queue to be sent to the target resource subscription system according to the sequence from the upper level to the lower level of the resource, and judging whether the resource message meets the sending condition before sending each resource message.
In some embodiments, the sending condition may specifically include that the resource message is an uppermost resource message, or that the resource message is directly sent successfully by an upper resource message.
In some specific embodiments, the resource message sending module 13 may specifically include:
a forwarding unit, configured to send the resource message in the queue to be sent to a message registration sending service, so that after the message registration sending service performs channel inspection and translation encryption, the resource message is sent to the target resource subscription system;
the message registration sending service is also used for displaying the resource message to be sent, the successful resource message and the abnormal resource message.
In some specific embodiments, the message pushing device may specifically include:
and the state updating unit is used for receiving a message receipt fed back by the target resource subscription system after the resource message in the queue to be sent is sent to the target resource subscription system, and modifying the state of the corresponding resource message according to the message receipt so as to resend the resource message which is not successfully received after restarting.
Further, the embodiment of the application also discloses an electronic device, and referring to fig. 4, the content in the drawing should not be considered as any limitation on the application scope of the application.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is configured to store a computer program that is loaded and executed by the processor 21 to implement relevant steps in the message pushing method disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223 including a subscription policy, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the processor 21 on the mass data 223 in the memory 22, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further comprise a computer program capable of performing other specific tasks in addition to the computer program capable of performing the message pushing method performed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, the embodiment of the application also discloses a computer storage medium, wherein the computer storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by a processor, the steps of the message pushing method disclosed in any embodiment are realized.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing describes in detail a message pushing method, device, apparatus and medium provided by the present application, and specific examples are applied herein to illustrate the principles and embodiments of the present application, where the foregoing examples are only for helping to understand the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A message pushing method, comprising:
acquiring a subscription strategy aiming at a target resource subscription system, and determining a corresponding target resource message according to the subscription strategy;
determining a superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message;
and adding the target resource message and the superior resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system.
2. The message pushing method according to claim 1, wherein the adding the target resource message and the upper resource message to the corresponding queues to be sent includes:
inquiring whether screening conditions aiming at the superior resource information exist in the subscription strategy;
if yes, screening the superior resource message according to the screening condition to obtain a target superior resource message;
and adding the target resource message and the target superior resource message into a queue to be sent.
3. The message pushing method according to claim 1, wherein the determining, according to the resource dependency relationship of the target resource message, the upper resource message corresponding to the target resource message includes:
and determining a first superior resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message, and determining the superior resource message corresponding to the first superior resource message according to the resource dependency relationship of the first superior resource message until all the superior resource messages corresponding to the target resource message are obtained by inquiry.
4. The method for pushing a message according to claim 1, wherein the sending the resource message in the queue to be sent to the target resource subscription system includes:
and sequentially sending the resource messages in the queue to be sent to the target resource subscription system according to the sequence from the upper level to the lower level of the resource, and judging whether the resource messages meet the sending condition before sending each resource message.
5. The message pushing method according to claim 4, wherein the transmission condition includes that the resource message is an uppermost resource message or that the resource message is successfully transmitted as a direct upper resource message.
6. The method for pushing a message according to claim 1, wherein the sending the resource message in the queue to be sent to the target resource subscription system includes:
the resource information in the queue to be sent is sent to an information registration sending service, so that the information registration sending service sends the resource information to the target resource subscription system after channel checking and translation encryption;
the message registration sending service is also used for displaying the resource message to be sent, the successful resource message and the abnormal resource message.
7. The method for pushing a message according to claim 1, wherein after the sending the resource message in the queue to be sent to the target resource subscription system, the method further comprises:
and receiving a message receipt fed back by the target resource subscription system, and modifying the state of the corresponding resource message according to the message receipt so as to resend the resource message which is not successfully received after restarting.
8. A message pushing device, comprising:
the strategy acquisition module is used for acquiring a subscription strategy aiming at a target resource subscription system, and determining a corresponding target resource message according to the subscription strategy;
the upper resource determining module is used for determining an upper resource message corresponding to the target resource message according to the resource dependency relationship of the target resource message;
and the resource message sending module is used for adding the target resource message and the upper resource message into a corresponding queue to be sent, and sending the resource message in the queue to be sent to the target resource subscription system.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the message pushing method of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the message pushing method according to any of claims 1 to 7.
CN202310903800.3A 2023-07-21 2023-07-21 Message pushing method, device, equipment and storage medium Pending CN116708550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310903800.3A CN116708550A (en) 2023-07-21 2023-07-21 Message pushing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310903800.3A CN116708550A (en) 2023-07-21 2023-07-21 Message pushing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116708550A true CN116708550A (en) 2023-09-05

Family

ID=87831309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310903800.3A Pending CN116708550A (en) 2023-07-21 2023-07-21 Message pushing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116708550A (en)

Similar Documents

Publication Publication Date Title
EP1750469B1 (en) Automatic mobile device capability management
US8738770B2 (en) Sending synchronous responses to requests from frontend applications
US11902130B2 (en) Data packet loss detection
CN113556359B (en) Communication protocol conversion method, device, system and gateway device
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN112039710A (en) Service fault processing method, terminal device and readable storage medium
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN110768818B (en) Network management method and device
US8671180B2 (en) Method and system for generic application liveliness monitoring for business resiliency
US10904327B2 (en) Method, electronic device and computer program product for searching for node
US7689648B2 (en) Dynamic peer network extension bridge
CN116708550A (en) Message pushing method, device, equipment and storage medium
CN115567388A (en) Method, system, device and storage medium for automatically updating network slice configuration
CN114339637A (en) Short message splicing method, device, equipment and storage medium
CN114422576A (en) Session cleaning method and device, computer equipment and readable storage medium
CN108880994B (en) Method and device for retransmitting mails
CN114025005A (en) Data communication method, system, electronic equipment and storage medium
US9401837B2 (en) Network management method and network management system
JP4532238B2 (en) On-demand service provision system
CN110971535A (en) Communication congestion control method, device, equipment and storage medium
CN104753826A (en) Bandwidth allocation method and device
CN116151903B (en) Service processing method and device based on sales promotion management system
CN112187816B (en) RPC request processing method, equipment and storage medium
CN117768467B (en) Data transmission method, device, computer equipment and computer readable storage medium
CN105577793A (en) Method and device for acquiring message

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