Nothing Special   »   [go: up one dir, main page]

CN112995266A - Information pushing method and related equipment - Google Patents

Information pushing method and related equipment Download PDF

Info

Publication number
CN112995266A
CN112995266A CN201911314102.XA CN201911314102A CN112995266A CN 112995266 A CN112995266 A CN 112995266A CN 201911314102 A CN201911314102 A CN 201911314102A CN 112995266 A CN112995266 A CN 112995266A
Authority
CN
China
Prior art keywords
information
management center
push server
subscription
security management
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.)
Granted
Application number
CN201911314102.XA
Other languages
Chinese (zh)
Other versions
CN112995266B (en
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.)
Shenzhen Intellifusion Technologies Co Ltd
Original Assignee
Shenzhen Intellifusion Technologies 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 Shenzhen Intellifusion Technologies Co Ltd filed Critical Shenzhen Intellifusion Technologies Co Ltd
Priority to CN201911314102.XA priority Critical patent/CN112995266B/en
Publication of CN112995266A publication Critical patent/CN112995266A/en
Application granted granted Critical
Publication of CN112995266B publication Critical patent/CN112995266B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses an information pushing method and related equipment, wherein a data security management center detects whether a pushing server is alive or not, when the state of the pushing server is not the survival state, the data security management center can reestablish the connection with the pushing server so as to recover the communication connection between the pushing server and the pushing server, and the pushing server can recover the survival state to ensure that an information subscription pushing process is normally carried out; when the push server is in a survival state, the data security management center sends subscription request information to the push server after obtaining the subscription request information sent by a subscriber, obtains subscription information returned by the push server according to the subscription request information, and pushes the subscription information to the subscriber; the data security management center is used as an intermediary, so that the information subscription and pushing are realized, and the smooth proceeding of the information subscription and pushing process can be effectively guaranteed.

Description

Information pushing method and related equipment
Technical Field
The present invention relates to the field of information push technologies, and in particular, to an information push method and a related device.
Background
MQTT (Message Queuing Telemetry Transport) is a client-server based Message publish/subscribe Transport protocol.
With the development of science and technology, the application based on the face recognition technology has been applied to various fields of society, and the face recognition technology has made great progress in the fields of security, finance, education and commerce.
In the prior art, after a person is controlled by a control system based on person identification, if a controlled person appears under a certain camera, corresponding face alarm information is generated, the alarm information is pushed to an MQTT server, and a subscriber can automatically connect the MQTT server to automatically subscribe a message as long as knowing the address and the port of the MQTT server, so as to acquire the face alarm information.
However, when the MQTT server is not alive, it cannot provide a continuously effective service.
Disclosure of Invention
The embodiment of the invention provides an information pushing method and related equipment, which can provide stable information pushing service.
The invention provides an information pushing method, which is applied to an information pushing system, wherein the information pushing system comprises a data security management center and a pushing server connected with the data security management center, and the method comprises the following steps:
the data security management center detects whether the push server is alive or not;
if the push server is not in a survival state, the data security management center reestablishes the connection with the push server;
if the push server is in a survival state, the data security management center acquires subscription request information sent by a subscriber;
the data security management center sends the subscription request information to the push server;
the data security management center acquires subscription information returned by the push server according to the subscription request information;
and the data security management center pushes the subscription information to a subscriber.
The invention provides an information pushing system on the other hand, which comprises a data security management center and a pushing server connected with the data security management center; wherein:
the data security management center is used for detecting whether the push server is alive or not, and if the push server is not in a survival state, the data security management center reestablishes the connection with the push server; if the push server is in a survival state, acquiring subscription request information sent by a subscriber, sending the subscription request information to the push server, receiving subscription information returned by the push server, and pushing the subscription information to the subscriber;
and the push server is used for sending the subscription information to the data security management center according to the subscription request information.
Another aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the information pushing method.
Another aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the information pushing method when executing the program.
In the embodiment of the invention, the data security management center detects whether the push server is alive, when the state of the push server is not the alive state, the data security management center can reestablish the connection with the push server so as to recover the communication connection between the push server and the push server, and the push server can recover the alive state to ensure that the information subscription push process is normally carried out; when the push server is in a survival state, the data security management center sends subscription request information to the push server after obtaining the subscription request information sent by a subscriber, obtains subscription information returned by the push server according to the subscription request information, and pushes the subscription information to the subscriber; the data security management center is used as an intermediary, so that the information subscription and pushing are realized, the smooth progress of an information subscription and pushing process can be effectively guaranteed, and the stable information pushing service is provided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a and fig. 1b are schematic diagrams of an information push system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an information pushing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an information push system according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of step S202 in an information pushing method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an information pushing method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating an information pushing method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating an information pushing method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an information push system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a computer device 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.
Based on the technical problem proposed by the background art, an embodiment of the present invention provides an information pushing method, which is applied to an information pushing system, and is a schematic diagram of the information pushing system provided by the embodiment of the present invention with reference to fig. 1a and fig. 1b, in fig. 1a, the information pushing system includes a data security management center 12 and a pushing server connected to the data security management center 12, in the embodiment of the present invention, the pushing server takes an MQTT server 13 as an example, and is a schematic flow diagram of the information pushing method provided by the embodiment of the present invention with reference to fig. 2, and the information pushing method includes:
step S201, the data security management center detects whether the push server is alive;
specifically, whether the push server is alive is detected based on a heartbeat mechanism, the heartbeat detection mechanism is that the data security management center sends a heartbeat message to the push server at regular time, and after receiving the heartbeat message, the push server replies a heartbeat response message (such as a PINGRESP message) to the data security management center, which indicates that the data security management center and the push server are in a communicable state. In addition, when the MQTT server 13 does not push the subscription information, it indicates that the MQTT server 13 is not in a survival state, and therefore, the data security management center 12 may also determine the survival state of the MQTT server 13 by determining whether the MQTT server 13 pushes the information.
Step S202, if the push server is not in a survival state, the data security management center reestablishes the connection with the push server;
specifically, when the data security management center 12 determines that the MQTT server 13 is not in a survival state based on the heartbeat detection principle, it indicates that the MQTT server 13 is disconnected from the data security management center 12 at this time, an abnormal reminding message may be sent to a corresponding MQTT server operation and maintenance person, for example, a short message is sent to a mobile phone of the operation and maintenance person to remind the operation and maintenance person that the survival state of the MQTT server 13 is abnormal, and the operation and maintenance person may process according to different abnormal conditions to restart the MQTT server 13 to return to the survival state again, so as to ensure that the MQTT server is in a connectable state; the MQTT server may also be set to disconnect automatic reconnection, and when the data security management center 12 finds that the MQTT server 13 is not in a survival state, the data security management center may reestablish a connection with the MQTT server 13 based on an MQTT reconnection mechanism, thereby further ensuring a connectable state of the MQTT server 13. And after the connection is reestablished, continuously judging whether the push server is alive or not.
Step S203, if the push server is in a survival state, the data security management center acquires subscription request information sent by a subscriber;
specifically, when the MQTT server 13 is in a live state, the data security management center 12 receives subscription request information initiated by a subscriber using a client.
Step S204, the data security management center sends the subscription request information to a push server;
step S205, the data security management center acquires subscription information returned by the push server according to the subscription request information;
specifically, the information publisher uploads the subscription information to the MQTT server 13, and the MQTT server 13 receives and stores all the subscription information. After receiving the subscription request information sent by the data security management center 12, the MQTT server 13 finds out corresponding subscription information from the stored subscription information according to the subscription request information, and returns the subscription information to the data security management center 12.
Step S206, the data security management center pushes the subscription information to the subscriber;
specifically, the data security management center 12 pushes the received subscription information to the corresponding subscriber.
In the embodiment of the invention, the data security management center detects whether the push server is alive, when the state of the push server is not the alive state, the data security management center can reestablish the connection with the push server so as to recover the communication connection between the push server and the push server, the push server can recover the alive state to ensure the normal operation of an information subscription push process, and meanwhile, the data security management center can also send abnormal reminding information to corresponding server operation and maintenance personnel to remind the operation and maintenance personnel that the push server is abnormal, so that the abnormal problems can be conveniently positioned and processed in time; when the push server is in a survival state, the data security management center acquires subscription request information sent by a subscriber and acquires subscription information returned by the push server according to the subscription request information, and the data security management center pushes the subscription information to the subscriber; the data security management center is used as an intermediary, so that the information subscription and pushing are realized, the smooth progress of an information subscription and pushing process can be effectively guaranteed, and the stable information pushing service is provided.
Further, the data security management center establishes connection with the push server based on a connection pool mechanism; specifically, the connection pool stores the created connection in the pool, and when a request comes, the data security management center directly uses the created connection to access the push server, so that the memory resource of the push server is not occupied, and the performance of the push server is improved.
Further, referring to fig. 3, fig. 3 is a schematic structural diagram of an information push system according to an embodiment of the present invention, where the information push system further includes a standby push server 33 and a data backup server 34, a connection is established between the data backup server 34 and the data security management center 31, between the push server 32 and the standby push server 33, and the data security management center 31 is connected to the standby push server 34; referring to fig. 4, fig. 4 is a schematic flowchart of step S202 in an information pushing method provided in an embodiment of the present invention, where step S202 includes:
the data security management center reestablishes connection with the push server, if reconnection fails, the data security management center detects whether the push server is alive or not based on a heartbeat mechanism after waiting for first preset time, and if the push server is not in a survival state, a standby push server is activated; after waiting for a second preset time, detecting whether the push server is alive or not based on a heartbeat mechanism, if the push server is not in a survival state, sending abnormal reminding information to corresponding server operation and maintenance personnel, and controlling the data backup server to transmit real-time backup data of the push server to a standby push server to realize push service migration so as to realize information push between the data security management center and the standby push server; if the push server is in a survival state, information push is realized between the data security management center and the push server, the specific process is that the data security management center acquires subscription request information sent by a subscriber, and the data security management center acquires subscription information returned by the push server according to the subscription request information; and the data security management center pushes the subscription information to the subscriber.
Specifically, the first preset time and the second preset time may be set as required, for example, both set to 10 minutes; the data backup server backups all subscription information received and stored by the push server, and backups a publishing protocol between the push server and an information publisher, specific information (such as a user name and information publishing time) of the information publisher, and similarly, backups a communication protocol between the push server and the data security management center, and a push history of the push server, that is, information pushed each time by the push server and corresponding subscription request information, and the data backup server is equivalent to copy all data of the push server in real time, so that when the push server cannot work normally, backup data is transmitted to the standby push server, and service transfer is realized; when the service is transferred, the standby push server receives the real-time backup data and receives a control instruction sent by the data security management center, then the communication between the standby push server and the data security management center is established according to a communication protocol between the push server and the data security management center, meanwhile, according to a publishing protocol between the push server and an information publisher, the information publisher can continue to publish information to the standby push server, and then the data security management center can continue to acquire corresponding subscription information from the standby push server according to the subscription request information, and continue to realize information subscription and push services. It is easy to think that more than one backup push server can be provided, and when there are multiple backup push servers, the data backup server detects the sustainable concurrent connection quantity W of all the backup push servers, and selects the backup push server corresponding to the largest W as the next-to-last backup push server, where the sustainable concurrent connection quantity W is the number of information issuers who are simultaneously online communicating with the backup push servers. And selecting the standby push server corresponding to the largest W as the final standby push server at the current time, so that the information publishing process is smooth and efficient after the service migration.
Further, referring to fig. 1a and 1b, the information push system further includes a distributed application coordination service node, in this embodiment, the distributed application coordination service node takes a zookeeper cluster center 11 as an example, the push server takes an MQTT server 13 as an example, the zookeeper cluster center 11 is connected with the data security management center 12, please refer to fig. 5, which is a schematic flow diagram of the information push method provided in the embodiment of the present invention, and the data security management center obtains subscription request information sent by a subscriber; the data security management center sends the subscription request information to a push server; the data security management center acquires subscription information returned by the push server according to the subscription request information; the data security management center pushes the subscription information to the subscriber, and the method specifically includes:
step S501, the data security management center acquires subscription related information from the distributed application coordination service node, wherein the subscription related information comprises subscription request information, subscriber information of a subscriber and a subscription notification address;
the zookeeper is an efficient distributed coordination service, and can provide services such as configuration information management, naming, distributed synchronization, cluster management, database switching and the like. It can be used to store a small amount of information such as some configuration, publication and subscription. In addition, zookeeper is a distributed service management framework designed based on observer mode and is responsible for storing and managing related data and receiving the registration of an observer. The zookeeper cluster center 11 comprises more than 3 node servers, and when a client initiates a transaction request, the application condition of the transaction request on all machines in the zookeeper cluster center 11 is consistent. The situation that part of the machines in the cluster apply the transaction and the other part of the machines in the cluster do not apply the transaction does not occur. At any machine in the zookeeper cluster center 11, the data model of the server it sees is consistent. The zookeeper can ensure the sequence of client requests, and each request is allocated with a globally unique incremental number for reflecting the sequence of transaction operation.
Specifically, a subscriber actively registers subscription request information on the zookeeper cluster center 11, and establishes a connection with the zookeeper cluster center 11 to upload subscription related information. Subscription information can be divided into several categories, the category of subscription information includes news, video, entertainment, shopping, sports, commerce, games, face applications, etc., and the subscription information in the face applications includes face alarm information. Correspondingly, the subscription request information may also be classified into categories of news, video, shopping, sports, business, games, facial applications, and the like. The subscription request information may include subscription subject content, for example, the subscription subject content may be basketball information, entertainment news, etc., and the subscription subject content may also be basketball information about basketball stars or entertainment news about specific stars. Of course, when the MQTT server 13 stores the face alarm information published by the information publisher, the subscription subject content may also be the face alarm information accordingly, and here, the type and specific data format of the subscription request information are not particularly limited. The user information of the subscriber includes one or more of a user name, user identity information, and a communication number of the user, the user name may be a user number, a user nickname, etc., and the user identity information may be a unique identification number (e.g., an id card) of the subscriber, and the communication number of the user may be a mobile phone number, etc. The subscription notification address is also an address according to which information is subsequently pushed, and when the subscriber is a common user, the subscription notification address may be a communication address of the mobile terminal of the user, for example, a unique identification code of the mobile terminal, such as an IME code of a mobile phone, or a communication mailbox of the user, such as a 163 mailbox; when the subscriber is a third-party server, that is, after the third-party server acquires the relevant subscription information through the subscription information service, the subscription information is processed for the second time, and the subscription notification address at this time may be a communication interface address (such as an IP address) of the third-party server.
Step S502, the data security management center carries out user verification on the subscriber according to preset allowable user information and user information;
specifically, the preset permission user information is a user allowed to perform information subscription, and may be preset, when a subscriber performs information subscription, the data security management center 12 communicates with the zookeeper cluster center 11 to acquire subscription related information, and then the data security management center 12 may compare the user information of the subscriber with the preset permission user information to determine whether the subscriber is a user allowed to subscribe, so as to effectively improve the security performance of the information subscription. A preset permitted user table may be established in advance, and when the user checks, the data security management center 12 may determine whether the subscriber is a permitted user by looking up the table.
Further, in order to improve the security of information subscription, after the data security management center 12 determines that the subscriber is an allowed user through table lookup, the data security management center 12 then determines whether the subscriber is a first subscription, and if the subscriber is determined to be the first subscription, the data security management center 12 may request the subscriber to input a mobile phone number (when the subscriber is a third-party server, the mobile phone number at this time may be a mobile phone number of a worker of the third-party server), and after the data security management center 12 obtains the mobile phone number of the subscriber, the data security management center sends a mobile phone verification code to the subscriber according to the mobile phone number, and performs secondary verification on the subscriber by using the mobile phone verification code. And when the subscriber is judged not to subscribe for the first time, the next step is carried out to acquire subscription information. Conceivably, the data security management center 12 may also randomly perform secondary verification on the mobile phone verification code of the subscriber who is verified as an authorized user through table lookup, so as to ensure both the security of information subscription and the high efficiency of information subscription and pushing.
Step S503, when the verification is passed, the data security management center sends the subscription request information to the push server, and receives the subscription information returned by the push server according to the subscription request information;
specifically, when the user passes the verification, which indicates that the subscriber is allowed to subscribe to information, the data security management center 12 communicates with the MQTT server 13, and retrieves the corresponding subscription information from the MQTT server according to the subscription request information. For example, information related to basketball information is retrieved.
Step S504, the data security management center pushes subscription information to the subscriber according to the subscription notification address.
Specifically, the data security management center 12 pushes the taken out subscription information to the subscriber according to a callback address provided by the subscriber, that is, a subscription notification address, and completes the processes of information subscription and information pushing.
In the embodiment of the invention, after a distributed application coordination service node acquires subscription request information, user information of a subscriber and a subscription notification address, a data security management center performs user verification on the subscriber according to preset allowable user information and user information, and when the verification is passed, acquires corresponding subscription information from a push server according to the subscription request information, and pushes the subscription information according to the subscription notification address to realize information push; due to the fact that the user verification link is set, the safety of information subscription and pushing processes can be improved.
Referring to fig. 1b, when a subscriber gets offline from the zookeeper cluster center 11, the subscription-related information in the zookeeper cluster center 11 will be deleted, and the data security management center 12 no longer pushes the subscription information to the subscriber. Meanwhile, the zookeeper cluster center 11 will send an offline notification to inform the subscriber that the offline is successful.
Further, please refer to fig. 1b and fig. 6, where fig. 6 is a schematic flow chart of an information pushing method according to an embodiment of the present invention, and the information pushing method includes:
step S601, the data security management center acquires subscription related information from the distributed application coordination service node, wherein the subscription related information comprises subscription request information, subscriber information of a subscriber and a subscription notification address;
step S602, the data security management center performs user verification on the subscriber according to the preset allowable user information and the user information;
step S603, when the verification is passed, the data security management center acquires corresponding subscription information from the push server according to the subscription request information and the preset data filtering condition;
specifically, in one aspect, the preset data filtering condition may be data for limiting open push, so as to improve the security of information subscription. When the subscription information is acquired, the data security management center filters information which is not allowed to be pushed according to the subscription request information and preset data filtering conditions, and takes out the corresponding subscription information from the pushing server. Taking the face alarm information as an example, the preset data filtering condition may be to limit some important persons, for example, the face alarm information of a national leader and the like is not allowed to be pushed, so that when a subscriber subscribes the face alarm information, and acquires subscription information from a push server, the face alarm information limited in the preset data filtering condition needs to be filtered, and then the acquired face alarm information is pushed to the subscriber.
On the other hand, the preset data filtering condition may include:
step A: obtaining interest information of a subscriber corresponding to the subscription request information;
specifically, the interest information includes one or more of user historical query information and application program use information, the user historical query information includes a historical search record of a user in a browser, a search record in navigation software, and the like, the application program use information includes application program use frequency, and the like, and the data security management center can access a third-party server according to the user information, for example, browser servers such as dog search, hundredth and google, or map software servers such as a hundredth map and a high-grade map, and can also be servers corresponding to applications such as a Xinlang microblog, a Taobao and a whole-people Karaoke; then, the information such as the historical search record, the navigation search record, the application program use frequency and the like of the user can be obtained from the third-party server according to the user information (such as the identification number, the mobile phone number and the like of the user) of the subscriber, the interest information of the subscriber can be obtained according to the information such as the historical search record, the navigation search record, the application program use frequency and the like of the user, for example, if the historical search record of the month of the user has more than 3 times of occurrence of 'somebody in Wu', the interest of the subscriber in Wu Fa can be obtained, and the certain in Wu belongs to the entertainment star; the records of 5 times of travel to the gymnasium can be found through the navigation search records in the current month, so that the subscriber can like sports; in addition, the times that the user uses the treasure panning software in the month is 8 times can be known by accessing the treasure panning server, so that the user can know that the user likes shopping, and the interest information of the user comprises entertainment, sports and shopping, and the shopping, sports and entertainment are ranked according to the interest level.
And B: determining the acquisition sequence of the subscription information categories according to the interest information of the subscriber, wherein the subscription information categories comprise news, videos, entertainment, shopping, sports, businesses, games and face applications;
specifically, the obtaining order of multiple subscription information categories may be determined according to the interest information of the subscriber, for example, if the interest information of the subscriber includes shopping, sports, and entertainment, the obtaining order of the subscription information categories is shopping, sports, and entertainment, the remaining subscription information categories are obtained according to an originally preset order, for example, if the originally set obtaining order of the subscription information categories by the data security management center is news, video, entertainment, shopping, sports, business, games, and face applications, the final obtaining order of the subscription information categories is shopping, sports, entertainment, news, video, business, games, and face applications.
And C, acquiring corresponding subscription information from the push server according to the acquisition sequence of the subscription information categories and the subscription request information.
Specifically, when the subscriber only has one subscription request message, the data security management center directly acquires the corresponding subscription information from the push server according to the subscription request message to push the subscription information; and when the subscriber has more than two pieces of subscription request information, the data security management center sequentially acquires the corresponding subscription information according to the finally determined acquisition sequence of the subscription information types for pushing, for example, when the subscription request information of the subscriber includes shopping and news, the subscription information in the aspect of shopping is firstly acquired for pushing, and then the subscription information in the aspect of news is acquired for pushing.
On the other hand, the preset data filtering condition may further include performing data filtering according to the subscription request information and the user information of the subscriber to obtain subscription information.
Specifically, the preset data filtering condition limits the data amount of the subscription information that the subscriber can acquire according to the user information, and may be that attribute information of the user, such as location information, is acquired according to the user information, and push information that needs to be pushed to the subscriber is selected according to the attribute information of the user; taking the face alarm information as an example, the face alarm information is subscribed by the police server a1 in the area a and the police server B1 in the area B, when the face alarm information is pushed, the face alarm information issued in the area a (i.e., the face is monitored and controlled) is pushed to the police server a1, while the face alarm information issued in the area B is only pushed to the police server B1, the specific data filtering process is to acquire the face shooting position information according to the face alarm information, when the data is pushed, the position information of the user (e.g., the real geographic address of the police server B1) is acquired according to the user information (e.g., the IP address of the police server B1), then the face alarm information with matched position is selected according to the position information of the user, and the matched face alarm information is pushed to the corresponding police server. In addition, user priorities can also be preset, different priorities are set for different users, the different priorities specify the total amount of subscription information that can be obtained by a subscriber, the users include personal users and enterprise users, if the total amount of the preset subscription information of the personal users is 10000, and the total amount of the preset subscription information of the enterprise users is 100000, when information push is performed, after corresponding subscription information is obtained according to subscription request information, the user category is judged according to the user information, if the user is a personal user, whether the preset value is exceeded or not is judged according to the pushed total amount of the subscription information and the preset total amount of the subscription information (for example, 10000), and if the preset value is not exceeded, the information push is performed; otherwise, stopping pushing the information. The judgment of the user category can be carried out according to identity information or a user name in the user information, the user information including an identity card number or a mobile phone number is an individual user, and the user with the enterprise name in the user name is an enterprise user.
Step S604, the data security management center pushes subscription information to the subscriber according to the subscription notification address.
In this embodiment, by setting the preset data filtering rule, the security of information push is further improved, and some data related to information security are not allowed to be pushed. In the embodiment, the acquisition sequence of the subscription information is determined according to the interest information of the subscriber, and the information with higher interest is pushed according to the interest of the subscriber, so that the subscription experience of the user is improved.
Further, please refer to fig. 1b and fig. 7, fig. 7 is a schematic flow chart of an information pushing method according to an embodiment of the present invention, where the information pushing method includes:
step S701, the data security management center acquires subscription related information from the distributed application coordination service node, wherein the subscription related information comprises subscription request information, subscriber information of a subscriber and a subscription notification address;
step S702, the data security management center carries out user verification on a subscriber according to preset allowable user information and user information;
step S703, when the verification is passed, the data security management center acquires corresponding subscription information from the push server according to the subscription request information and the preset data filtering condition;
step S704, the data security management center pushes subscription information to the subscriber according to the subscription notification address;
step S705, the data security management center counts and stores at least one of the total number of the subscription request information, the total number of the subscription request information of each subscriber and the total number of the subscription information of each subscriber so as to call when responding to the total number inquiry request;
specifically, in the information pushing method provided in the embodiment of the present invention, the data security management center may count the total number of the subscription request information and the pushed subscription information generated in the whole information pushing process, or may count the total number of the subscription request information and the received subscription information generated by each subscriber correspondingly, so as to provide statistical data, which is convenient for the user to obtain.
In actual operation, after the data security management center acquires the subscription related information from the distributed application coordination service node, the total number of the subscription request information is increased by one every time the subscription request information is processed. Similarly, before the data security management center pushes information to the subscriber, the total number of pushed information is counted, and the total number of pushed subscription information is accumulated, so that the total number of subscription information can be obtained.
And for the information statistics of each subscriber, the statistics is carried out according to the user information of the subscriber, and after the data security management center acquires the subscription related information from the distributed application coordination service node, the total number of the subscription request information of the corresponding user information is increased by one every time the subscription request information is processed. Similarly, because the user information, the subscription notification address and the subscription information have a corresponding relationship, before pushing the information, according to the corresponding relationship between the subscription information and the subscription notification address and the corresponding relationship between the subscription notification address and the user information, after counting the total number of the subscription information each time, accumulating the total number of the subscription information corresponding to the user information.
By the above, the total subscription request information, the total subscription request information amount corresponding to different users, and the total subscription information amount can be obtained, a corresponding table can be established according to the total subscription request information, the table can be stored in a memory of the data security management center, and when a total inquiry request initiated by a subscriber or the like is received, the data security management center can read the table from the memory according to the total inquiry request to obtain the value therein.
In addition, in the information pushing method of the embodiment of the invention, the data security management center can also realize subscription-push log tracking, perform log tracking on all subscription and push processes, and record the user information, subscription time, information push time and subscription notification address of the subscriber; and establishing a table according to the corresponding relation of the four kinds of information, and storing the table in a memory of the data security management center for subsequent query. It is worth pointing out that the data security management center provides various total numbers (such as total subscription request information and total subscription information) and log tracking data, enriches the types of subscription data, and provides a research channel; for example, whether the two numbers are equal or not is judged according to the total subscription request information and the total subscription information, when the total subscription request information is more than the total subscription information, the subscription request information is not processed, the data security management center can verify through consulting the log, and confirm whether abnormal pushing or statistical value error occurs or not, the two are mutually verified, so that the consistency and the accuracy of the subscription data are improved, when the information pushing time of the subscription request information exists in the log, the subscription request information is processed, and at the moment, the statistical value error occurs; otherwise, the data security management center does not push information, and whether the data security management center is abnormal or not can be mainly checked at the moment.
In addition, in the information pushing method of the embodiment of the invention, the data security management center can also perform operations of increasing, deleting, modifying and checking subscription related information so as to improve the subscription flexibility. Specifically, after the subscription related information is deleted, the corresponding subscription request is no longer responded, that is, the subscriber can be managed, and for some specific users, the subscription of the user can be disabled by deleting the subscription related information; and the information can be pushed according to the priority by setting the priority of the user, so that the efficiency of information pushing is improved to a certain extent. For some preset users, the subscription related information of the user can be automatically added, so that the subscriber is prevented from needing to perform complicated information subscription operation, and the automatic subscription and pushing of the subscription information are realized. It is easy to think, it is also able to search for and modify the subscription-related information to improve the operability on the subscription-related information.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an information push system according to an embodiment of the present invention; the information push system of the embodiment of the invention comprises a data security management center 12 and a push server 82 connected with the data security management center 12; wherein:
the data security management center 12 is configured to detect whether the push server is alive, and reestablish a connection with the push server if the push server is not alive; if the push server is in a survival state, acquiring subscription request information sent by a subscriber, sending the subscription request information to the push server, receiving subscription information returned by the push server, and pushing the subscription information to the subscriber;
and the push server 82 is used for sending the subscription information to the data security management center according to the subscription request information.
Specifically, the specific functions of the data security management center 12 and the push server 82 are implemented with reference to the description of the embodiment corresponding to fig. 2, and are not described again.
Further, referring to fig. 3, the system further includes a backup push server 33 and a data backup server 34, where the data backup server 34 is connected to the data security management center 31, the push server 32, and the backup push server 33, and the data security management center 31 is connected to the backup push server 33; wherein:
the data security management center 31 is further configured to reestablish a connection with the push server 32, and if the reconnection fails, detect whether the push server 32 is alive based on a heartbeat mechanism after waiting for a first preset time, and if the push server 32 is not in a alive state, activate the standby push server 33; after waiting for a second preset time, detecting whether the push server 32 is alive based on a heartbeat mechanism, if the push server 32 is not in a survival state, sending abnormal reminding information to corresponding server operation and maintenance personnel, and controlling the data backup server 34 to transmit real-time backup data of the push server 32 to the standby push server 33 to realize push service migration, so that information push is realized between the data security management center 31 and the standby push server 33;
and the data backup server 34 is used for receiving a control instruction of the data security management center 31 so as to transmit the real-time backup data of the push server 32 to the standby push server 33.
Specifically, the specific functions of the data security management center 31, the push server 32, the standby push server 33, and the data backup server 34 are implemented with reference to the description of the corresponding embodiment in fig. 4, and are not described again.
Further, referring to fig. 8, the system further includes a distributed application coordination service node 81, where the distributed application coordination service node 81 is connected to the data security management center 12;
the distributed application coordination service node 81 is configured to obtain subscription request information, user information of a subscriber, and a subscription notification address;
the data security management center 12 is further configured to perform user verification on the subscriber according to the preset permitted user information and the user information; when the verification is passed, sending the subscription request information to the push server, and receiving the subscription information returned by the push server 82 according to the subscription request information; pushing subscription information to a subscriber according to the subscription notification address;
and the push server 82 is used for storing the subscription information.
Specifically, the specific functions of the distributed application coordination service node 81, the data security management center 12, and the push server 82 are implemented with reference to the description of the corresponding embodiments in fig. 5 and fig. 6, and are not described again.
Further, the data security management center is further configured to count and store at least one of the total number of the subscription request information, the total number of the subscription request information of each subscriber, and the total number of the subscription information of each subscriber, so as to invoke in response to the total number query request.
Specifically, the specific function of the data security management center is described with reference to the corresponding embodiment in fig. 7, and is not described again.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present invention. The computer device 900 comprises at least one processor 901, at least one memory 902 and at least one communication interface 903. The processor 901, the memory 902 and the communication interface 903 are connected via a communication bus and communicate with each other.
The processor 901 may be a general purpose Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs according to the above schemes.
A communication interface 903 for communicating with other devices or communication Networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
The Memory 902 may be, but is not limited to, a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 902 is used for storing application program codes for executing the above scheme, and the processor 901 controls the execution. The processor 901 is configured to execute application program code stored in the memory 902.
The memory 902 stores code that can perform the information push method based on the information push system provided above, including:
detecting whether the push server is alive or not;
if the push server is not in a survival state, reestablishing the connection with the push server;
if the push server is in a survival state, acquiring subscription request information sent by a subscriber;
sending the subscription request information to a push server;
receiving subscription information returned by the push server according to the subscription request information;
and pushing the subscription information to the subscriber.
Further, when the processor 901 re-establishes the connection with the push server, the following steps are specifically performed:
reestablishing connection with the push server, if reconnection fails, after waiting for a first preset time, detecting whether the push server is alive or not based on a heartbeat mechanism, and if the push server is not in a alive state, activating a standby push server; and after waiting for a second preset time, detecting whether the push server is alive or not based on a heartbeat mechanism, if the push server is not in a survival state, sending abnormal reminding information to corresponding server operation and maintenance personnel, and controlling the data backup server to transmit real-time backup data of the push server to a standby push server to realize push service migration so as to realize information push between the computer equipment and the standby push server.
Further, the processor 901 performs acquiring the subscription request information sent by the subscriber; sending the subscription request information to a push server; receiving subscription information returned by the push server according to the subscription request information; when the subscription information is pushed to the subscriber, the following steps are specifically executed:
obtaining subscription request information, user information of a subscriber and a subscription notification address from a distributed application coordination service node;
performing user verification on a subscriber according to preset permission user information and user information;
when the verification is passed, sending the subscription request information to the push server, and receiving the subscription information returned by the push server according to the subscription request information;
and pushing subscription information to the subscriber according to the subscription notification address.
Further, the processor 901 performs the following steps:
and counting and storing at least one of the total number of the subscription request information, the total number of the subscription request information of each subscriber and the total number of the subscription information of each subscriber so as to call when responding to the total number inquiry request.
For a specific execution process of the processor 901, reference may be made to the description of the embodiments corresponding to fig. 1 to fig. 7, which is not described again.
The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the information pushing method according to the embodiment corresponding to fig. 1 to 7. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer storage medium to which the present invention relates, reference is made to the description of the method embodiments of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. An information push method is applied to an information push system, the information push system comprises a data security management center and a push server connected with the data security management center, and the method comprises the following steps:
the data security management center detects whether the push server is alive or not;
if the push server is not in a survival state, the data security management center reestablishes the connection with the push server;
if the push server is in a survival state, the data security management center acquires subscription request information sent by a subscriber;
the data security management center sends the subscription request information to the push server;
the data security management center acquires subscription information returned by the push server according to the subscription request information;
and the data security management center pushes the subscription information to a subscriber.
2. The method according to claim 1, wherein the information push system further includes a backup push server and a data backup server, the data backup server is connected to the data security management center, the push server, and the backup push server, and the data security management center is connected to the backup push server;
the data security management center reestablishes the connection with the push server, and the data security management center includes:
the data security management center reestablishes connection with the push server, if reconnection fails, the data security management center detects whether the push server is alive or not based on a heartbeat mechanism after waiting for first preset time, and if the push server is not in a survival state, the standby push server is activated; and after waiting for a second preset time, detecting whether the push server is alive based on a heartbeat mechanism, if the push server is not in a survival state, sending abnormal reminding information to corresponding server operation and maintenance personnel, and controlling the data backup server to transmit real-time backup data of the push server to the standby push server to realize push service migration, so that information push is realized between the data security management center and the standby push server.
3. The method of claim 1, wherein the information push system further comprises a distributed application coordination service node, and the distributed application coordination service node is connected with the data security management center;
the data security management center acquires subscription request information sent by a subscriber; the data security management center sends the subscription request information to the push server; the data security management center acquires subscription information returned by the push server according to the subscription request information; the data security management center pushes the subscription information to subscribers, and the steps comprise:
the data security management center acquires the subscription request information, the user information of a subscriber and a subscription notification address from the distributed application coordination service node;
the data security management center carries out user verification on the subscriber according to preset permitted user information and the user information;
when the verification is passed, the data security management center sends the subscription request information to the push server and receives the subscription information returned by the push server according to the subscription request information;
and the data security management center pushes the subscription information to a subscriber according to the subscription notification address.
4. The method of claim 3, further comprising:
and the data security management center counts and stores at least one of the total number of the subscription request information, the total number of the subscription request information of each subscriber and the total number of the subscription information of each subscriber so as to call when responding to a total number inquiry request.
5. An information push system is characterized by comprising a data security management center and a push server connected with the data security management center; wherein:
the data security management center is used for detecting whether the push server is alive or not, and if the push server is not in a survival state, the data security management center reestablishes the connection with the push server; if the push server is in a survival state, acquiring subscription request information sent by a subscriber, sending the subscription request information to the push server, receiving subscription information returned by the push server, and pushing the subscription information to the subscriber;
and the push server is used for sending the subscription information to the data security management center according to the subscription request information.
6. The system according to claim 5, further comprising a backup push server and a data backup server, wherein the data backup server is connected to the data security management center, the push server and the backup push server, and the data security management center is connected to the backup push server; wherein:
the data security management center is further configured to reestablish a connection with the push server, detect whether the push server is alive based on a heartbeat mechanism after waiting for a first preset time if the reconnection fails, and activate the standby push server if the push server is not in a alive state; after waiting for a second preset time, detecting whether the push server is alive or not based on a heartbeat mechanism, if the push server is not in a survival state, sending abnormal reminding information to corresponding server operation and maintenance personnel, and controlling the data backup server to transmit real-time backup data of the push server to the standby push server to realize push service migration so as to realize information push between the data security management center and the standby push server;
and the data backup server is used for receiving a control instruction of the data security management center so as to transmit the real-time backup data of the push server to the standby push server.
7. The system of claim 5, further comprising a distributed application coordination service node, the distributed application coordination service node being connected to the data security management center;
the distributed application coordination service node is used for acquiring the subscription request information, the user information of the subscriber and the subscription notification address;
the data security management center is also used for carrying out user verification on the subscriber according to preset permission user information and the user information; when the verification is passed, sending the subscription request information to the push server, and receiving subscription information returned by the push server according to the subscription request information; pushing the subscription information to a subscriber according to the subscription notification address;
the push server is used for storing the subscription information.
8. The system of claim 7, wherein the data security management center is further configured to count and store at least one of the total number of the subscription request information, the total number of the subscription request information of each subscriber, and the total number of the subscription information of each subscriber, so as to be invoked in response to a total number query request.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the information push method according to any one of claims 1 to 4.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the information pushing method according to any one of claims 1 to 4 when executing the program.
CN201911314102.XA 2019-12-18 2019-12-18 Information pushing method and related equipment Active CN112995266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911314102.XA CN112995266B (en) 2019-12-18 2019-12-18 Information pushing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911314102.XA CN112995266B (en) 2019-12-18 2019-12-18 Information pushing method and related equipment

Publications (2)

Publication Number Publication Date
CN112995266A true CN112995266A (en) 2021-06-18
CN112995266B CN112995266B (en) 2022-07-26

Family

ID=76344102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911314102.XA Active CN112995266B (en) 2019-12-18 2019-12-18 Information pushing method and related equipment

Country Status (1)

Country Link
CN (1) CN112995266B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656683A (en) * 2021-07-12 2021-11-16 北京旷视科技有限公司 Subscription data pushing method, device and system, electronic equipment and storage medium
CN114584617A (en) * 2022-05-06 2022-06-03 南京维数软件股份有限公司 Snapshot data distribution method and device based on convergence processing platform
WO2023077845A1 (en) * 2021-11-03 2023-05-11 中国电信股份有限公司 Subscription message sending method and apparatus, and electronic device and storage medium
CN118368332A (en) * 2024-06-14 2024-07-19 深圳市睿创科数码有限公司 Intelligent park security warning information pushing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944924A (en) * 2014-05-15 2014-07-23 重庆邮电大学 Ubiquitous network publish-subscribe middleware model based on RESTful
CN105516221A (en) * 2014-09-24 2016-04-20 阿里巴巴集团控股有限公司 Information push system and method
CN107302551A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 A kind of service data dissemination method and device
CN109309704A (en) * 2017-07-28 2019-02-05 阿里巴巴集团控股有限公司 Realize commodity purchasing and corresponding communication means, equipment and system
CN110266810A (en) * 2019-07-03 2019-09-20 Oppo广东移动通信有限公司 Message receival method, equipment and storage medium based on MQTT agreement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944924A (en) * 2014-05-15 2014-07-23 重庆邮电大学 Ubiquitous network publish-subscribe middleware model based on RESTful
CN105516221A (en) * 2014-09-24 2016-04-20 阿里巴巴集团控股有限公司 Information push system and method
CN107302551A (en) * 2016-04-14 2017-10-27 阿里巴巴集团控股有限公司 A kind of service data dissemination method and device
CN109309704A (en) * 2017-07-28 2019-02-05 阿里巴巴集团控股有限公司 Realize commodity purchasing and corresponding communication means, equipment and system
CN110266810A (en) * 2019-07-03 2019-09-20 Oppo广东移动通信有限公司 Message receival method, equipment and storage medium based on MQTT agreement

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656683A (en) * 2021-07-12 2021-11-16 北京旷视科技有限公司 Subscription data pushing method, device and system, electronic equipment and storage medium
WO2023077845A1 (en) * 2021-11-03 2023-05-11 中国电信股份有限公司 Subscription message sending method and apparatus, and electronic device and storage medium
CN114584617A (en) * 2022-05-06 2022-06-03 南京维数软件股份有限公司 Snapshot data distribution method and device based on convergence processing platform
CN114584617B (en) * 2022-05-06 2022-08-02 南京维数软件股份有限公司 Snapshot data distribution method and device based on convergence processing platform
CN118368332A (en) * 2024-06-14 2024-07-19 深圳市睿创科数码有限公司 Intelligent park security warning information pushing method and system
CN118368332B (en) * 2024-06-14 2024-08-23 深圳市睿创科数码有限公司 Intelligent park security warning information pushing method and system

Also Published As

Publication number Publication date
CN112995266B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
CN112995266B (en) Information pushing method and related equipment
US20180359200A1 (en) System and method for facilitating the growth of a mobile community
CN101291330B (en) Communications system
US8804573B2 (en) Method and system for inferring presence of a principal based on past presence information
CN113704354B (en) Data synchronization method and device, computer equipment and storage medium
CN107528766B (en) Information pushing method, device and system
CN107943841A (en) Stream data processing method, system and computer-readable recording medium
WO2010027394A1 (en) Method and system for message processing
WO2016127884A1 (en) Message pushing method and device
TWI454917B (en) Access control method, access control device and access control program
CN112600693B (en) Service request processing method, system, electronic equipment and computer storage medium
US9813496B2 (en) Method and apparatus for collaborating in a work environment
EP3011528B1 (en) Wireless network and mac address device detection system and methods
US20200314632A1 (en) Policy enhancement for mixed capability devices
EP3570169B1 (en) Method and system for processing device failure
CN110708309A (en) Anti-crawler system and method
CN116347467B (en) Method and system for managing user data by UDR in 5G network
US8850035B1 (en) Geographically distributed real time communications platform
US20160330151A1 (en) Method and system for managing an informational site using a social networking application
CN111953580B (en) Method, device and storage medium for sending and acquiring session
CN112104888B (en) Method and system for grouping live broadcast users
CN114338794A (en) Service message pushing method and device, electronic equipment and storage medium
JP6484737B2 (en) A broker suitable for location-based secondary social networking
EP1941356B1 (en) Electronic apparatus with server device for managing setting data
CN110677417A (en) Anti-crawler system and method

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
GR01 Patent grant
GR01 Patent grant