CN110324377B - Push interaction method and device, electronic equipment and medium - Google Patents

Push interaction method and device, electronic equipment and medium Download PDF

Info

Publication number
CN110324377B
CN110324377B CN201810276531.1A CN201810276531A CN110324377B CN 110324377 B CN110324377 B CN 110324377B CN 201810276531 A CN201810276531 A CN 201810276531A CN 110324377 B CN110324377 B CN 110324377B
Authority
CN
China
Prior art keywords
server
data
push
target
pull
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.)
Active
Application number
CN201810276531.1A
Other languages
Chinese (zh)
Other versions
CN110324377A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810276531.1A priority Critical patent/CN110324377B/en
Publication of CN110324377A publication Critical patent/CN110324377A/en
Application granted granted Critical
Publication of CN110324377B publication Critical patent/CN110324377B/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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Abstract

The invention discloses a push interaction method, a push interaction device, electronic equipment and a medium, wherein the push interaction method comprises the following steps: receiving a target identifier pushed by a push server through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment; sending an acquisition request carrying the target identifier to a pull server, wherein the pull server stores data sent by the push server and corresponding relation information of the data and the identifier; receiving target data corresponding to the target identifier, returned by the pull server based on the acquisition request and according to the corresponding relation information; and displaying the target data. The invention solves the technical problem of high cost of the existing PUSH interaction. The technical effect of saving cost is achieved.

Description

Push interaction method and device, electronic equipment and medium
Technical Field
The invention relates to the technical field of internet, in particular to a push interaction method, a push interaction device, electronic equipment and a push interaction medium.
Background
In the design of an internet Application (APP), a server has two information interaction modes with a user equipment terminal: one is pulling PULL, which is achieved by pulling the server, and one is pushing PUSH, which is achieved by pushing the server. For example, opening information seen by an APP, clicking a link to enter a website to see the information is content actively triggered and acquired by a user, such interaction is called PULL, and the method is mainly applied to interactive design of triggering response, such as browsing a webpage, viewing news and the like; for another example, the user may change the content display on the page from time to time when the user does not perform any action, such as mutual PUSH.
However, the basic architecture of PUSH is more complex than PULL, and the requirements for server resources and network resources are much larger than those of a simple PULL architecture. The cost of network bandwidth is also much more expensive than the network bandwidth solutions in existing PULL.
Therefore, the existing PUSH interaction has the technical problem of high cost.
Disclosure of Invention
The embodiment of the application provides a PUSH interaction method, a PUSH interaction device, an electronic device and a medium, and solves the technical problem that the existing PUSH interaction is expensive.
In a first aspect, a push interaction method is provided, where the method is applied to a user equipment, and the method includes:
receiving a target identifier pushed by a push server through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment;
sending an acquisition request carrying the target identifier to a pull server, wherein the pull server stores data sent by the push server and corresponding relation information of the data and the identifier;
receiving target data corresponding to the target identifier, returned by the pull server based on the acquisition request and according to the corresponding relation information;
and displaying the target data.
Optionally, the sending the acquisition request carrying the target identifier to the pull server includes: when the target identifier is received, triggering and sending an acquisition request carrying the target identifier to a pull server; and starting timing when the target identifier is received, and triggering and sending an acquisition request carrying the target identifier to a pull server after the timing reaches a preset time length.
In a second aspect, a push interaction method is provided, where the method is applied to a push server, and the method includes:
establishing a data synchronization protocol with a pull server, and sending data and corresponding relation information of the data and an identifier to the pull server through the data synchronization protocol so as to synchronize the pull server and the push server;
determining a target identifier corresponding to target data according to the target data needing to be pushed;
and pushing the target identifier to a user equipment end through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment end, so that the user equipment end can acquire the target data from the pull server according to the target identifier.
In a third aspect, a push interaction method is provided, where the method is applied to a pull server, and the method includes:
establishing a data synchronization protocol with a push server, and receiving data sent by the push server and corresponding relation information of the data and an identifier through the data synchronization protocol so as to synchronize the data of the pull server and the push server;
receiving an acquisition request carrying a target identifier sent by a user equipment terminal;
determining target data corresponding to the target identifier according to the corresponding relation information based on the acquisition request;
and sending the target data to the user equipment terminal.
Optionally, the receiving an acquisition request carrying a target identifier sent by a user equipment end includes: and receiving an acquisition request which is sent by a user equipment end through an Application Programming Interface (API) of the pull server and carries a target identifier.
In a fourth aspect, a push interaction device is provided, where the push interaction device is a user equipment, and the push interaction device includes:
a first receiving unit, configured to receive a target identifier pushed by a push server through a long connection protocol, where the long connection protocol is pre-established between the push server and the user equipment;
the first sending unit is used for sending an acquisition request carrying the target identifier to a pull server, and the pull server stores data sent by the push server and corresponding relation information of the data and the identifier;
a second receiving unit, configured to receive target data corresponding to the target identifier, which is returned by the pull server based on the acquisition request and according to the correspondence information;
and the display unit is used for displaying the target data.
In a fifth aspect, a push interaction device is provided, where the device is a push server, and the device includes:
the first synchronization unit is used for establishing a data synchronization protocol with a pull server, and sending data and corresponding relation information of the data and an identifier to the pull server through the data synchronization protocol so as to synchronize the pull server and the push server;
the first determining unit is used for determining a target identifier corresponding to target data according to the target data needing to be pushed;
and the pushing unit is used for pushing the target identifier to a user equipment end through a long connection protocol, and the long connection protocol is pre-established between the pushing server and the user equipment end so that the user equipment end can acquire the target data from the pulling server according to the target identifier.
In a sixth aspect, a push interaction device is provided, where the push interaction device is a pull server, and the push interaction device includes:
the second synchronization unit is used for establishing a data synchronization protocol with the push server, and receiving data sent by the push server and corresponding relation information of the data and the identifier through the data synchronization protocol so as to synchronize the pull server and the push server;
a third receiving unit, configured to receive an acquisition request carrying a target identifier sent by a user equipment end;
a second determining unit, configured to determine, based on the acquisition request, target data corresponding to the target identifier according to the correspondence information;
and the second sending unit is used for sending the target data to the user equipment terminal.
In a first aspect, an electronic device is provided, which comprises a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any one of the first, second or third aspects when executing the program.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the first, second or third aspects.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the push interaction method, the push interaction device, the electronic device and the medium provided by the embodiment of the application are characterized in that a data synchronization protocol is preset between a push server and a pull server, so that the push server can send data and corresponding relation information of the data and an identifier to the pull server, then the push server and a user device end are set to establish a long connection protocol, a target identifier is pushed to the user device end through the long connection protocol, the user device end sends an acquisition request carrying the target identifier to the pull server, and target data corresponding to the target identifier is obtained from the pull server for display according to the corresponding relation information, so that network broadband cost of the push server is reduced, and cost is effectively saved.
Drawings
In order to more clearly illustrate the technical solutions in 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 the drawings without creative efforts.
FIG. 1 is a schematic diagram of a system according to an embodiment of the present application;
fig. 2 is a flowchart of a push interaction method according to an embodiment of the present application;
fig. 3 is a flowchart of a push interaction method in the second embodiment of the present application;
fig. 4 is a flowchart of a push interaction method in the third embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device in a seventh embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer-readable storage medium 900 according to an eighth embodiment of the present application.
Detailed Description
The embodiment of the application provides a PUSH interaction method, a PUSH interaction device, an electronic device and a medium, and solves the technical problem that the existing PUSH interaction is expensive. The technical effect of saving cost is achieved.
In order to solve the technical problems, the general idea of the embodiment of the application is as follows:
receiving a target identifier pushed by a push server through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment; sending an acquisition request carrying the target identifier to a pull server, wherein the pull server stores data sent by the push server and corresponding relation information of the data and the identifier; receiving target data corresponding to the target identifier, returned by the pull server based on the acquisition request and according to the corresponding relation information; and displaying the target data.
Specifically, a data synchronization protocol is established between a preset push server and a pull server, so that the push server can send data and corresponding relation information of the data and an identifier to the pull server, a long connection protocol is established between the push server and a user equipment terminal, a target identifier is pushed to the user equipment terminal through the long connection protocol, the user equipment terminal sends an acquisition request carrying the target identifier to the pull server, and target data corresponding to the target identifier is pulled from the pull server to be displayed according to the corresponding relation information, so that the network broadband cost of the push server is reduced, and the cost is effectively saved.
Before introducing the specific embodiment, a system applied in the embodiment of the present application needs to be introduced with reference to fig. 1, and as shown in fig. 1, the system includes a push server 101, a pull server 102, and a user equipment terminal 103, where a long connection protocol is established between the push server 101 and the user equipment terminal 103, the push server 101 and the pull server 102 are connected through any network, and the pull server 102 and the user equipment terminal 103 are connected through any network. There may be a plurality of the user equipment terminals 103.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Example one
As shown in fig. 2, this embodiment provides a push interaction method, where the method is applied to a user equipment, and the method includes:
step S201, receiving a target identifier pushed by a push server through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment;
step S202, sending an acquisition request carrying the target identifier to a pull server, wherein the pull server stores data sent by the push server and corresponding relation information of the data and the identifier;
step S203, receiving target data corresponding to the target identifier returned by the pull server based on the acquisition request and according to the corresponding relation information;
and step S204, displaying the target data.
In this embodiment, the push server and the pull server may be a computer device, a cloud, or a computer device group, which is not limited herein. The target user equipment terminal may be a smart phone, a notebook, a desktop computer, and a tablet computer, which is not limited herein.
It should be noted that a long connection protocol is pre-established between the push server and each of the ue ends to actively push information and data to the ue ends, but considering that the traffic cost of the push server actively pushing through the long connection protocol is very high, and the push server needs to maintain the long connection protocol and also needs to transmit a large amount of data, which results in an excessive burden. Therefore, in the embodiment of the application, a data synchronization protocol is preset between the push server and the pull server, and the data synchronization protocol is used for sending data and corresponding relation information of the data and the identifier to the pull server, so that the pull server and the push server are in data synchronization, and further the user equipment end can obtain corresponding data to be pushed from the pull server, and the pull server and the user equipment end do not need to actively push, are not limited to long connection protocol transmission data, and can transmit data through any network, so that the cost is reduced while an active push effect (the user does not need to operate at the user equipment end, but initiates active push by the push server) is ensured.
The following describes in detail specific implementation steps of the push interaction method provided in this embodiment with reference to fig. 2:
firstly, step S201 is executed to receive a target identifier pushed by a push server through a long connection protocol, where the long connection protocol is pre-established between the push server and the user equipment.
Specifically, the push server is pre-established with correspondence information between data and identifiers, that is, a corresponding unique identifier is set for each data that needs to be actively pushed, so that the corresponding data can be found according to the unique identifier. The unique identifier may be a combination of letters, numbers, symbols, etc., and is not limited thereto.
In a specific implementation process, after the push server receives an instruction that target data needs to be pushed, a target identifier corresponding to the target data may be determined according to the target data that needs to be pushed, where the target identifier may be an identifier allocated only when the target data needs to be pushed, or an identifier allocated only when the push server receives the target data, and the present invention is not limited herein.
After determining the target identifier, the push server actively pushes the target identifier to the user equipment end through a long connection channel pre-established with the user equipment end.
Then, step S202 is executed, and an acquisition request carrying the target identifier is sent to a pull server, where the pull server stores data sent by the push server and correspondence information between the data and the identifier.
In this embodiment of the present application, there are various ways for triggering the user equipment to send the target identifier to the pull server, and two examples are listed below:
first, real-time triggering.
That is, when the target identifier is received, the acquisition request carrying the target identifier is triggered to be sent to the pull server.
Second, a time delay trigger.
Namely, when the target identifier is received, timing is started, and after the timing reaches a preset time, an acquisition request carrying the target identifier is triggered and sent to the pull server.
The delay triggering is adopted, the preset duration can be set at will and can be a default duration. However, in order to avoid transmission congestion caused by a large number of user equipment terminals sending acquisition requests to the pull server at the same time, it may be set that the push server sends a preset time to each user equipment terminal when pushing the target identifier, and the preset time sent to each user equipment terminal is divided into a plurality of different preset times, so that each user equipment terminal can send acquisition requests to the pull server in batches at different times, thereby reducing the probability of the pull server congestion.
Of course, in the specific implementation process, other manners of triggering the user equipment to send the target identifier may also be adopted, which are not limited herein and are not listed one by one.
Specifically, the user equipment may be an APP corresponding to an installed push server, and the target identifier is triggered and sent to a pull server through a custom protocol in the APP, and goes to the pull server to pull data. The custom protocol specifies a specific pull mode.
Specifically, after receiving the target identifier actively pushed by the push server, the user equipment automatically triggers sending of an acquisition request to the pull server to acquire pushed data, and the user does not need to operate on the user equipment, so that even if the data pulled from the pull server is displayed, the display effect of active pushing can be achieved.
Next, step S203 is executed to receive target data corresponding to the target identifier, which is returned by the pull server based on the obtaining request and according to the corresponding relationship information.
Specifically, since the pull server and the push server establish a data synchronization protocol, the pull server stores therein data including target data to be pushed by the push server, and stores therein correspondence information between the identifier and the data established by the push server. Therefore, after receiving an acquisition request carrying a target identifier sent by a user equipment terminal, the pull server can determine target data corresponding to the target identifier according to the corresponding relationship information based on the acquisition request and send the target data to the user equipment terminal.
In a specific implementation process, the pull server may receive, through an application programming interface API of the pull server, an acquisition request carrying a target identifier sent by a user equipment terminal.
Then, step S204 is executed to display the target data.
In a specific implementation process, the displaying of the target data may be displaying the target data on a screen, or playing the target data with a speaker, which is not limited herein and is not listed.
Specifically, the push interaction method provided by this embodiment, on one hand, does not require the user to operate on the user equipment side, so that the active push display effect can be achieved; on the other hand, the user equipment side acquires the displayed data from the pull server, the push server only needs to actively push the target identifier, the target identifier only occupies a small part of network traffic, and the pull server is used for bearing the main point data network traffic. The communication service between the pull server and the user equipment end is easy to deploy because active pushing is not needed, and the network flow solutions are numerous, so that the cost is saved.
For easy understanding, the push interaction method of the present embodiment is described as follows as a specific example:
firstly, a data synchronization protocol is established between a push server and a pull server to maintain a data source, so that data synchronization is kept between the push server and the pull server; and the push server creates a long connection protocol;
then, a client application program corresponding to the push server is installed at the user equipment end, and after the client application program is opened at the user equipment end, a long connecting channel is established with the push server;
then, when the data A needs to be actively pushed, the pushing server can send a data packet to the user equipment end, wherein the data packet comprises a target identifier A of the data A;
then, after the user equipment receives the target identifier ident A, a client program installed on the user equipment sends an acquisition request carrying the ident A to a pull server, and acquires the api of the data A provided by a pull interface deployed by the pull server according to an internet protocol based on the ident A;
after receiving the acquisition request, the pull server finds out the corresponding data content data A from the data source according to ident A and returns the data A to the user equipment terminal;
and the user equipment end displays the data A after receiving the data A.
Specifically, a data synchronization protocol is established between a preset push server and a pull server, so that the push server can send data and corresponding relation information of the data and an identifier to the pull server, a long connection protocol is established between the push server and a user equipment terminal, a target identifier is pushed to the user equipment terminal through the long connection protocol, the user equipment terminal sends an acquisition request carrying the target identifier to the pull server, and target data corresponding to the target identifier is pulled from the pull server to be displayed according to the corresponding relation information, so that the network broadband cost of the push server is reduced, and the cost is effectively saved.
Based on the same inventive concept, the present application provides an embodiment of a method for pushing a server side according to the embodiment, which is described in detail in embodiment two.
Example two
The present embodiment provides a push interaction method, as shown in fig. 3, where the method is applied to a push server, and the method includes:
step S301, establishing a data synchronization protocol with a pull server, and sending data and corresponding relation information of the data and an identifier to the pull server through the data synchronization protocol so as to synchronize the pull server and the push server;
step S302, according to target data needing to be pushed, determining a target identifier corresponding to the target data;
step S303, pushing the target identifier to a user equipment end through a long connection protocol, where the long connection protocol is pre-established between the push server and the user equipment end, so that the user equipment end can obtain the target data from the pull server according to the target identifier.
Since the method described in this embodiment is a method of pushing a server side corresponding to the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a person skilled in the art can understand a specific implementation manner of the method in this embodiment and various variations thereof, and therefore, for brevity of the description, detailed implementation steps of the method are not described in detail herein.
Based on the same inventive concept, the application provides a corresponding method embodiment of pulling the server side in the embodiment, which is detailed in the third embodiment.
EXAMPLE III
The present embodiment provides a push interaction method, as shown in fig. 4, where the method is applied to a pull server, and the method includes:
step S401, establishing a data synchronization protocol with a push server, and receiving data sent by the push server and corresponding relation information of the data and an identifier through the data synchronization protocol so as to synchronize the data of the pull server and the push server;
step S402, receiving an acquisition request carrying a target identifier sent by a user equipment terminal;
step S403, based on the obtaining request, determining target data corresponding to the target identifier according to the corresponding relation information;
step S404, sending the target data to the ue.
In this embodiment of the present application, the receiving an acquisition request with a target identifier sent by a user equipment end includes: and receiving an acquisition request which is sent by a user equipment end through an Application Programming Interface (API) of the pull server and carries a target identifier.
Since the method described in this embodiment is a method for pulling a server side corresponding to the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a person skilled in the art can understand a specific implementation manner of the method in this embodiment and various variations thereof, and therefore, for brevity of the description, detailed implementation steps of the method are not described in detail herein.
Based on the same inventive concept, the application provides an embodiment of the device corresponding to the first embodiment, and the details are shown in the fourth embodiment.
Example four
This embodiment provides a push interaction device, as shown in fig. 5, where the device is a user equipment side, and the device includes:
a first receiving unit 501, configured to receive a target identifier pushed by a push server through a long connection protocol, where the long connection protocol is pre-established between the push server and the user equipment;
a first sending unit 502, configured to send an acquisition request carrying the target identifier to a pull server, where data and information of a correspondence between the data and the identifier sent by the push server are stored in the pull server;
a second receiving unit 503, configured to receive target data corresponding to the target identifier, which is returned by the pull server according to the corresponding relationship information based on the obtaining request;
a display unit 504, configured to display the target data.
Since the apparatus described in this embodiment is an apparatus for implementing the method in the first embodiment of the present application, a person skilled in the art can understand the specific implementation manner of the apparatus in this embodiment and various variations thereof based on the method described in the first embodiment of the present application, and therefore, how to implement the method in the first embodiment of the present application by the apparatus is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides an embodiment of the device corresponding to the second embodiment, which is detailed in the fifth embodiment.
EXAMPLE five
This embodiment provides a push interaction device, as shown in fig. 6, where the device is a push server, and the device includes:
a first synchronization unit 601, configured to establish a data synchronization protocol with a pull server, and send data and information of correspondence between the data and an identifier to the pull server through the data synchronization protocol, so as to synchronize data between the pull server and the push server;
a first determining unit 602, configured to determine, according to target data that needs to be pushed, a target identifier corresponding to the target data;
a pushing unit 603, configured to push the target identifier to a ue end through a long connection protocol, where the long connection protocol is pre-established between the push server and the ue end, so that the ue end can obtain the target data from the pull server according to the target identifier.
Since the apparatus described in this embodiment is an apparatus for implementing the method in the third embodiment of the present application, a person skilled in the art can understand the specific implementation manner of the apparatus in this embodiment and various variations thereof based on the method described in the third embodiment of the present application, and therefore, how to implement the method in the third embodiment of the present application by the apparatus is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the application provides an embodiment of the device corresponding to the third embodiment, which is described in detail in the sixth embodiment.
EXAMPLE six
This embodiment provides a push interaction device, as shown in fig. 7, where the device is a pull server, and the device includes:
a second synchronization unit 701, configured to establish a data synchronization protocol with a push server, and receive data and information about correspondence between the data and an identifier sent by the push server through the data synchronization protocol, so as to synchronize data between the pull server and the push server;
a third receiving unit 702, configured to receive an obtaining request with a target identifier sent by a user equipment;
a second determining unit 703, configured to determine, based on the obtaining request, target data corresponding to the target identifier according to the correspondence information;
a second sending unit 704, configured to send the target data to the ue.
Since the apparatus described in this embodiment is an apparatus for implementing the method in the third embodiment of the present application, a person skilled in the art can understand the specific implementation manner of the apparatus in this embodiment and various variations thereof based on the method described in the third embodiment of the present application, and therefore, how to implement the method in the third embodiment of the present application by the apparatus is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the present application provides an embodiment of the electronic device corresponding to the first embodiment, the second embodiment, or the third embodiment, which is detailed in embodiment seven.
EXAMPLE seven
The present embodiment provides an electronic device, as shown in fig. 8, including a memory 810, a processor 820, and a computer program 811 stored on the memory 810 and being executable on the processor 820, where the processor 820 executes the computer program 811 to implement the method according to any one of the first embodiment, the second embodiment, or the third embodiment.
Since the electronic device described in this embodiment is a device used for implementing the method in the first, second, or third embodiment of this application, a person skilled in the art can understand the specific implementation manner of the electronic device of this embodiment and various variations thereof based on the method described in the first, second, or third embodiment of this application, and therefore, how to implement the method in this embodiment of this application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the present application provides a storage medium corresponding to embodiment one, embodiment two, or embodiment three, for details, see embodiment eight.
Example eight
The present embodiment provides a computer-readable storage medium 900, as shown in fig. 9, on which a computer program 911 is stored, and when the computer program 911 is executed by a processor, the method of any one of the first embodiment, the second embodiment, or the third embodiment is implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A push interaction method is applied to a user equipment, and comprises the following steps:
receiving a target identifier pushed by a push server through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment;
sending an acquisition request carrying the target identifier to a pull server, wherein the pull server stores data sent by the push server and corresponding relation information of the data and the identifier;
receiving target data corresponding to the target identifier, returned by the pull server based on the acquisition request and according to the corresponding relation information;
and displaying the target data.
2. The method of claim 1, wherein sending the acquisition request carrying the target identifier to a pull server comprises:
when the target identifier is received, triggering and sending an acquisition request carrying the target identifier to a pull server;
and starting timing when the target identifier is received, and triggering and sending an acquisition request carrying the target identifier to a pull server after the timing reaches a preset time length.
3. A push interaction method is applied to a push server, and comprises the following steps:
establishing a data synchronization protocol with a pull server, and sending data and corresponding relation information of the data and an identifier to the pull server through the data synchronization protocol so as to synchronize the pull server and the push server;
determining a target identifier corresponding to target data according to the target data needing to be pushed;
and pushing the target identifier to a user equipment end through a long connection protocol, wherein the long connection protocol is pre-established between the push server and the user equipment end, so that the user equipment end can acquire the target data from the pull server according to the target identifier.
4. A push interaction method is applied to a pull server, and comprises the following steps:
establishing a data synchronization protocol with a push server, and receiving data sent by the push server and corresponding relation information of the data and an identifier through the data synchronization protocol so as to synchronize the data of the pull server and the push server;
receiving an acquisition request carrying a target identifier sent by a user equipment terminal, wherein the target identifier is pushed to the user equipment terminal by the push server through a long-connection protocol;
determining target data corresponding to the target identifier according to the corresponding relation information based on the acquisition request;
and sending the target data to the user equipment terminal.
5. The method of claim 4, wherein the receiving the request carrying the target identifier sent by the ue includes:
and receiving an acquisition request which is sent by a user equipment end through an Application Programming Interface (API) of the pull server and carries a target identifier.
6. A push interaction device, wherein the device is a user equipment, the device comprises:
a first receiving unit, configured to receive a target identifier pushed by a push server through a long connection protocol, where the long connection protocol is pre-established between the push server and the user equipment;
the first sending unit is used for sending an acquisition request carrying the target identifier to a pull server, and the pull server stores data sent by the push server and corresponding relation information of the data and the identifier;
a second receiving unit, configured to receive target data corresponding to the target identifier, which is returned by the pull server based on the acquisition request and according to the correspondence information;
and the display unit is used for displaying the target data.
7. A push interaction device, wherein the device is a push server, the device comprising:
the first synchronization unit is used for establishing a data synchronization protocol with a pull server, and sending data and corresponding relation information of the data and an identifier to the pull server through the data synchronization protocol so as to synchronize the pull server and the push server;
the first determining unit is used for determining a target identifier corresponding to target data according to the target data needing to be pushed;
and the pushing unit is used for pushing the target identifier to a user equipment end through a long connection protocol, and the long connection protocol is pre-established between the pushing server and the user equipment end so that the user equipment end can acquire the target data from the pulling server according to the target identifier.
8. A push interaction device, wherein the device is a pull server, the device comprising:
the second synchronization unit is used for establishing a data synchronization protocol with the push server, and receiving data sent by the push server and corresponding relation information of the data and the identifier through the data synchronization protocol so as to synchronize the pull server and the push server;
a third receiving unit, configured to receive an acquisition request carrying a target identifier sent by a user equipment end, where the target identifier is pushed to the user equipment end by the push server through a long connection protocol;
a second determining unit, configured to determine, based on the acquisition request, target data corresponding to the target identifier according to the correspondence information;
and the second sending unit is used for sending the target data to the user equipment terminal.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 5.
CN201810276531.1A 2018-03-30 2018-03-30 Push interaction method and device, electronic equipment and medium Active CN110324377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810276531.1A CN110324377B (en) 2018-03-30 2018-03-30 Push interaction method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810276531.1A CN110324377B (en) 2018-03-30 2018-03-30 Push interaction method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110324377A CN110324377A (en) 2019-10-11
CN110324377B true CN110324377B (en) 2022-03-25

Family

ID=68111471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810276531.1A Active CN110324377B (en) 2018-03-30 2018-03-30 Push interaction method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110324377B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866116B (en) * 2020-07-16 2023-11-07 上海茂声智能科技有限公司 Method, system, equipment and storage medium for centralized management of terminal content

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7334019B2 (en) * 2002-07-18 2008-02-19 Ebay Inc. Delivering messages to message servers
KR100727993B1 (en) * 2005-10-04 2007-06-14 삼성전자주식회사 Method and apparatus for data push service using data pull model
WO2008141424A1 (en) * 2007-05-17 2008-11-27 Research In Motion Limited System and method for content navigation
CN101764828B (en) * 2008-12-23 2013-08-07 华为终端有限公司 Establishing method for push conversation, push system and relevant equipment
CN101827309A (en) * 2009-03-06 2010-09-08 华为技术有限公司 Method, terminal, server and system for sending push massage
US8634810B2 (en) * 2011-09-29 2014-01-21 International Business Machines Corporation Pushing secure notifications to mobile computing devices
US9596127B2 (en) * 2012-02-20 2017-03-14 Microsoft Technology Licensing, Llc Scalable data feed system
CN104378399B (en) * 2013-08-15 2019-08-23 腾讯科技(深圳)有限公司 A kind of data push method, Platform Server, client and system
CN103686377B (en) * 2013-12-09 2018-04-27 深圳Tcl新技术有限公司 Push the method and intelligent terminal of information
CN104219286B (en) * 2014-08-13 2015-11-18 腾讯科技(深圳)有限公司 streaming media processing method, device, client, CDN node server and terminal
WO2016055931A1 (en) * 2014-10-09 2016-04-14 Visa International Service Association Entity identifier generation and conversion to primary account number
CN106161562A (en) * 2015-04-24 2016-11-23 中国电信股份有限公司 A kind of carry out the method for information pushing, terminal and system
CN106331088B (en) * 2016-08-22 2019-10-08 努比亚技术有限公司 Message server, mobile terminal and message treatment method
CN106412018B (en) * 2016-08-31 2020-01-07 百度在线网络技术(北京)有限公司 Message pushing method and device
CN106777116B (en) * 2016-12-15 2021-10-15 腾讯科技(深圳)有限公司 Content acquisition method, user client, server and system
CN106713124A (en) * 2017-01-24 2017-05-24 深圳市启仑智能科技有限公司 Message push method and system based on MQTT and MYSQL
CN107707926A (en) * 2017-03-09 2018-02-16 贵州白山云科技有限公司 A kind of live TV stream transmission method, device and system
CN106973096B (en) * 2017-03-27 2021-02-12 腾讯科技(深圳)有限公司 Data pushing method and device
CN107135258B (en) * 2017-05-04 2020-09-18 浙江数链科技有限公司 Message pushing method and server
CN107172209B (en) * 2017-07-04 2020-04-10 百度在线网络技术(北京)有限公司 Information pushing method and device
CN107689988B (en) * 2017-08-18 2021-02-26 广州市百果园信息技术有限公司 Message pushing method and device, electronic equipment and terminal equipment
CN107819823A (en) * 2017-09-26 2018-03-20 深圳市诚壹科技有限公司 A kind of information processing method, server and computer-readable recording medium

Also Published As

Publication number Publication date
CN110324377A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN106850745B (en) Real-time synchronization method and device
CN109152095B (en) Wireless network connection method for terminal
CN105228080B (en) Multi-screen interaction method, system and browser
CN108574722B (en) Resource synchronization method, device and system
WO2015085842A1 (en) Method and device for presenting search result in mobile terminal
CN109152094B (en) Wireless network connection method for terminal
CN110909521B (en) Online document information synchronous processing method and device and electronic equipment
CN108965098B (en) Message pushing method, device, medium and electronic equipment based on online live broadcast
CN111368235B (en) Page rendering and displaying method and device, server and storage medium
WO2021237433A1 (en) Message pushing method and apparatus, and electronic device and computer-readable medium
CN107423128B (en) Information processing method and system
CN111541711B (en) Live broadcast data mixing method and device based on edge calculation
CN103647870A (en) Terminal and terminal expression display method
CN104717542A (en) Method, device and system for obtaining synchronization information of intelligent television
CN111478781B (en) Message broadcasting method and device
CN110971596A (en) Message monitoring method and device, electronic equipment and machine-readable storage medium
CN106230978A (en) Distributed caching synchronous method, Apparatus and system
CN108886533B (en) Accelerating connections to host servers
CN103905496A (en) Picture downloading method and device
CN110324377B (en) Push interaction method and device, electronic equipment and medium
CN108764866B (en) Method and equipment for allocating resources and drawing resources
CN111314416A (en) Data synchronization method, device, system, equipment and storage medium
EP3119044B1 (en) Page insertion method and device
CN112751689A (en) Network connectivity detection method, monitoring server and monitoring agent device
CN105577758A (en) Page heartbeat information processing method and client side

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