CN110324377A - A kind of push exchange method, device, electronic equipment and medium - Google Patents
A kind of push exchange method, device, electronic equipment and medium Download PDFInfo
- Publication number
- CN110324377A CN110324377A CN201810276531.1A CN201810276531A CN110324377A CN 110324377 A CN110324377 A CN 110324377A CN 201810276531 A CN201810276531 A CN 201810276531A CN 110324377 A CN110324377 A CN 110324377A
- Authority
- CN
- China
- Prior art keywords
- server
- data
- push
- user equipment
- object identifier
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
Abstract
The invention discloses a kind of push exchange method, device, electronic equipment and media, comprising: receives the object identifier that push server is pushed by long connection protocol, the push server and the user equipment end are pre-established with the long connection protocol;It sends and carries the acquisition request of the object identifier to pulling server, it is described to pull the correspondence relationship information that data and data and identifier that the push server is sent are stored on server;Server is pulled described in reception is based on the acquisition request, according to the correspondence relationship information, the target data corresponding with the object identifier of return;Show the target data.The present invention solves the technical issues of existing push PUSH interaction, existing somewhat expensive.Realize the technical effect of save the cost.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of push exchange method, device, electronic equipment and Jie
Matter.
Background technique
In Internet application APP design, server carries out information interaction approach with user equipment end there are two kinds: a kind of
It is to pull PULL, is realized by pulling server, one is push PUSH, are realized by push server.For example, opening one
The information that APP sees, it is all that user actively triggers the content got that point one, which is linked into the information that website is seen, such
Interaction is called PULL, it is mainly used in the interaction design of triggering response, such as browsing webpage, checks news etc.;Example again
Such as, the content that can be often changed on the page when user does not do any action behavior shows that such interaction is PUSH.
However the complexity of the architecture of PUSH ratio PULL, server resource, network resource requirements are than simple PULL frame
Structure requires much larger.The expense of network bandwidth is also expensive more many than the network bandwidth solution in existing PULL.
As it can be seen that existing push PUSH interaction, there is technical issues that.
Summary of the invention
The embodiment of the present application solves existing by providing a kind of push exchange method, device, electronic equipment and medium
The technical issues of push PUSH interaction, existing somewhat expensive.
In a first aspect, providing a kind of push exchange method, the method is applied to user equipment end, which comprises
Receive the object identifier that push server is pushed by long connection protocol, the push server and the user
Equipment end is pre-established with the long connection protocol;
The acquisition request for sending the carrying object identifier stores on server to server, described pull is pulled
State the data of push server transmission and the correspondence relationship information of data and identifier;
Pulled described in reception server be based on the acquisition request, according to the correspondence relationship information, return with it is described
The corresponding target data of object identifier;
Show the target data.
Optionally, described send carries the acquisition request of the object identifier to pulling server, comprising: is receiving
When the object identifier, triggering, which is sent, carries the acquisition request of the object identifier to pulling server;Receiving
Start timing when stating object identifier, after timing reaches preset duration, the acquisition that triggering sends the carrying object identifier is asked
It asks to pulling server.
Second aspect, provides a kind of push exchange method, and the method is applied to push server, which comprises
Data Synchronization Protocol is established with server is pulled, data and data and mark are sent by the Data Synchronization Protocol
The correspondence relationship information of symbol pulls server to described, so that described, to pull server synchronous with the push server data;
The target data pushed as needed determines the corresponding object identifier of the target data;
The object identifier is pushed to user equipment end, the push server and the user by long connection protocol
Equipment end is pre-established with the long connection protocol, so that the user equipment end can be according to the object identifier to the drawing
Server is taken to obtain the target data.
The third aspect, provides a kind of push exchange method, and the method is applied to pull server, which comprises
Data Synchronization Protocol is established with push server, the push server is received by the Data Synchronization Protocol and is sent out
The correspondence relationship information of the data and data and identifier sent pulls server and the push server data are same so that described
Step;
Receive the acquisition request for carrying object identifier that user equipment end is sent;
Target corresponding with the object identifier is determined according to the correspondence relationship information based on the acquisition request
Data;
The target data is sent to the user equipment end.
Optionally, the acquisition request for carrying object identifier for receiving user equipment end and sending, comprising: receive and use
Family equipment end is asked by the acquisition for carrying object identifier that the application programming interface API for pulling server is sent
It asks.
Fourth aspect provides a kind of push interactive device, and described device is user equipment end, and described device includes:
First receiving unit, the object identifier pushed for receiving push server by long connection protocol are described to push away
Server and the user equipment end is sent to be pre-established with the long connection protocol;
First transmission unit carries the acquisition request of the object identifier to pulling server, the drawing for sending
Take the correspondence relationship information that data and data and identifier that the push server is sent are stored on server;
Second receiving unit is based on the acquisition request for receiving the server that pulls, according to the corresponding relationship
Information, the target data corresponding with the object identifier of return;
Display unit, for showing the target data.
5th aspect, provides a kind of push interactive device, described device is push server, and described device includes:
First synchronization unit, for pull server and establish Data Synchronization Protocol, sent out by the Data Synchronization Protocol
Data and data and the correspondence relationship information of identifier is sent to pull server to described, so that the server that pulls is pushed away with described
Send server data synchronous;
First determination unit, the target data for pushing as needed determine the corresponding target mark of the target data
Know symbol;
Push unit, for pushing the object identifier to user equipment end, the push clothes by long connection protocol
Business device and the user equipment end are pre-established with the long connection protocol, so that the user equipment end can be according to the target
Identifier obtains the target data to the server that pulls.
6th aspect provides a kind of push interactive device, and described device is to pull server, and described device includes:
Second synchronization unit is connect for establishing Data Synchronization Protocol with push server by the Data Synchronization Protocol
The correspondence relationship information for receiving data and data and identifier that the push server is sent, so that described pull server and institute
It is synchronous to state push server data;
Third receiving unit, for receiving the acquisition request for carrying object identifier of user equipment end transmission;
Second determination unit, for being based on the acquisition request, according to the correspondence relationship information, the determining and target
The corresponding target data of identifier;
Second transmission unit, for sending the target data to the user equipment end.
In terms of device, a kind of electronic equipment is provided, including memory, processor and storage on a memory and can handled
The computer program run on device, the processor realize first aspect, second aspect or the third aspect when executing described program
Any method.
Fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, and the program is processed
First aspect, second aspect or the third aspect any method are realized when device executes.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Push exchange method, device, electronic equipment and medium provided by the embodiments of the present application are preset push server and are drawn
Server is taken to establish Data Synchronization Protocol, so that push server can send out data and data and the correspondence relationship information of identifier
It send to pulling server, then the push server is set and long connection protocol is established at user equipment end, and pass through long connection association
For view push object identifier to user equipment end, user equipment end retransmits the acquisition request extremely drawing for carrying the object identifier
Take server, according to the correspondence relationship information, from it is described pull pulled on server obtain it is corresponding with the object identifier
Target data be shown, to reduce the network broadband expense of push server, be effectively saved cost.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is the structural schematic diagram of system in the embodiment of the present application;
Fig. 2 is the flow chart that exchange method is pushed in the embodiment of the present application one;
Fig. 3 is the flow chart that exchange method is pushed in the embodiment of the present application two;
Fig. 4 is the flow chart that exchange method is pushed in the embodiment of the present application three;
Fig. 5 is the structural schematic diagram of device in the embodiment of the present application four;
Fig. 6 is the structural schematic diagram of device in the embodiment of the present application five;
Fig. 7 is the structural schematic diagram of device in the embodiment of the present application six;
Fig. 8 is the structural schematic diagram of electronic equipment in the embodiment of the present application seven;
Fig. 9 is the structural schematic diagram of computer readable storage medium 800 in the embodiment of the present application eight.
Specific embodiment
The embodiment of the present application solves existing by providing a kind of push exchange method, device, electronic equipment and medium
The technical issues of push PUSH interaction, existing somewhat expensive.Realize the technical effect of save the cost.
The technical solution of the embodiment of the present application is in order to solve the above technical problems, general thought is as follows:
Receive the object identifier that push server is pushed by long connection protocol, the push server and the user
Equipment end is pre-established with the long connection protocol;It sends and carries the acquisition request of the object identifier to pulling server,
It is described to pull the correspondence relationship information that data and data and identifier that the push server is sent are stored on server;It connects
Pulled described in receipts server be based on the acquisition request, according to the correspondence relationship information, return with the object identifier
Corresponding target data;Show the target data.
Specifically, Data Synchronization Protocol is established by presetting push server and pulling server, so that Push Service
The correspondence relationship information of data and data and identifier can be sent to and pull server by device, then be arranged the push server with
Long connection protocol is established at user equipment end, and pushes object identifier to user equipment end, user equipment by long connection protocol
End, which retransmits, carries the acquisition request of the object identifier to pulling server, according to the correspondence relationship information, from described
It pulls to pull on server and obtains target data corresponding with the object identifier to be shown, to reduce push clothes
The network broadband expense of business device, is effectively saved cost.
Before introducing specific embodiment, need first Fig. 1 to be combined to introduce system applied by the embodiment of the present application, such as Fig. 1
Described, which includes push server 101, pulls server 102 and user equipment end 103, the push server 101 with
It establishes long connection protocol between the user equipment end 103, the push server 101 and described pulls between server 102
It is connected by arbitrary network, described pull is connected between server 102 and the user equipment end 103 by arbitrary network.Institute
State user equipment end 103 can have it is multiple.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper
Technical solution is stated to be described in detail.
Embodiment one
As shown in Fig. 2, present embodiments providing a kind of push exchange method, the method is applied to user equipment end, institute
The method of stating includes:
Step S201 receives the object identifier that push server is pushed by long connection protocol, the push server
The long connection protocol is pre-established with the user equipment end;
Step S202 sends and carries the acquisition request of the object identifier to pulling server, described to pull server
On be stored with the correspondence relationship informations of data and data and identifier that the push server is sent;
Step S203 pulls server described in reception and is based on the acquisition request, according to the correspondence relationship information, returns
Target data corresponding with the object identifier;
Step S204 shows the target data.
In the embodiment of the present application, the push server and the server that pulls can be computer equipment, cloud
Or computer equipment group, this is not restricted.The target UE end can be smart phone, notebook, desktop computer
And tablet computer, herein also with no restriction.
It should be noted that being pre-established with long connection between the push server and each user equipment end
Agreement, with realize can active push information and data to the user equipment end, but in view of the push server passes through length
The campus network that connection protocol carries out active push is very high, and the push server will maintain the long connection protocol,
Mass data transmission is carried out, will lead to it, over-burden.Therefore the embodiment of the present application presets the push server and the drawing
It takes server to establish Data Synchronization Protocol, the corresponding relationship of data and data and identifier is sent by the Data Synchronization Protocol
Information pulls server to described, so that the server that pulls is synchronous with the push server data, so that user
Equipment end can from it is described pull server obtain it is corresponding need propelling data, and pull server and do not needed with user equipment end
Active push is not limited to long connection protocol transmission data, can be by arbitrary transmitted data on network, thus guaranteeing actively to push away
While sending effect (do not need user to operate at user equipment end, but initiate active push by push server), subtract
Expense cost is lacked.
In the following, the specific implementation step of push exchange method provided in this embodiment is discussed in detail in conjunction with Fig. 2:
Firstly, executing step S201, the object identifier that push server is pushed by long connection protocol is received, it is described to push away
Server and the user equipment end is sent to be pre-established with the long connection protocol.
Specifically, the correspondence relationship information of data and identifier is pre-established in the push server, as often
A corresponding unique identifier is arranged in a data for needing active push, so that can be found according to the unique identifier
Corresponding data.The unique identifier can be the combination of letter, number, symbol etc., and this is not restricted.
It in the specific implementation process, can be according to need after push server is connected to the instruction for needing to push target data
The target data to be pushed determines that the corresponding object identifier of the target data, the object identifier can be in determination
The identifier just distributed when needing to push target data, is also possible to just divide when push server receives the target data
The identifier matched, this is not restricted.
After object identifier has been determined, the push server with the length that the user equipment end pre-establishes by connecting
Road is connected by the object identifier active push to the user equipment end.
Then, step S202 is executed, sends and carries the acquisition request of the object identifier to pulling server, the drawing
Take the correspondence relationship information that data and data and identifier that the push server is sent are stored on server.
In the embodiment of the present application, it triggers the user equipment end and sends the object identifier to the side for pulling server
Formula can there are many, be set forth below for two kinds:
The first, triggers in real time.
I.e. when receiving the object identifier, the acquisition request that just triggering sends the carrying object identifier is extremely drawn
Take server.
Second, Time-delayed trigger.
Start timing when receiving the object identifier, after timing reaches preset duration, triggering, which is sent, carries institute
The acquisition request of object identifier is stated to pulling server.
It is that the preset duration can be arbitrarily arranged using Time-delayed trigger, can be a duration of default.However, being
Avoid a large amount of user equipment end synchronization from sending acquisition request to pulling server, caused by transmission congestion, Ke Yishe
The push server is set when pushing object identifier, preset duration can be issued to each user equipment end, and is handed down to each
The preset duration at a user equipment end is divided into different multiple preset durations, so that each user equipment end can be sent out between timesharing in batches
Acquisition request is sent to pull server to described, to reduce the probability for pulling server congestion.
Certainly, in the specific implementation process, other triggering user equipment ends can also be taken to send the object identifier
Mode, this is not restricted, also will not enumerate.
Specifically, the user equipment end can be the corresponding APP of push server based on installation, by APP
Custom protocol realizes that triggering sends the object identifier to server is pulled, and goes to and described pulls server pull data
's.There is regulation in the custom protocol specifically pulls mode.
It specifically, will be certainly after the user equipment terminates the object identifier for receiving push server active push
Dynamic triggering to it is described pull server and send acquisition request obtain the data of push, do not need user and make on user equipment end
Operation, even therefore shown from the data for pulling server pull, can also reach the bandwagon effect of active push.
Subsequently, step S203 is executed, server is pulled described in reception and is based on the acquisition request, according to the corresponding pass
It is information, the target data corresponding with the object identifier of return.
Specifically, since the server and push server foundation of pulling has Data Synchronization Protocol, thus it is described
It pulls and is stored with the data including target data that the push server needs to push in server, and be stored with push
The correspondence relationship information of data and identifier that server is established.Therefore the server that pulls receives the transmission of user equipment end
After the acquisition request for carrying object identifier, can be based on the acquisition request, according to the correspondence relationship information, determine with
The corresponding target data of the object identifier, and the target data is sent to the user equipment end.
In the specific implementation process, the server that pulls can be connect by the application programming for pulling server
Mouth API receives the acquisition request for carrying object identifier that user equipment end is sent.
Then, step S204 is executed, shows the target data.
In the specific implementation process, the displaying target data can be shows the target data on the screen,
It is also possible to play the target data with loudspeaker, this is not restricted, also will not enumerate.
Specifically, push exchange method provided in this embodiment, on the one hand, do not need user and make on user equipment end
Operation, therefore the bandwagon effect of active push can be reached;On the other hand, user equipment end obtains the number shown from server is pulled
According to push server only needs active push object identifier, and object identifier has only taken up small part network flow
Amount, is that main point data network flux is undertaken by pulling server.And it pulls logical between server and user equipment end
Telecommunications services do not need active push therefore are easier to dispose, and network flow solution is numerous, has saved cost.
In order to make it easy to understand, illustrating the push exchange method of the present embodiment with a specific example below:
Firstly, push server and pulling server and establishing Data Synchronization Protocol, to safeguard data source, pushing data
Server is synchronous with holding data between server are pulled;And push server creates long connection protocol;
Then, the corresponding client application of user equipment end installation push server opens visitor at user equipment end
After the program of family end, long interface channel is created with push server;
Then, when needing active push data A, push server can issue data packet to user equipment end, the data
Packet includes the object identifier ident A of data A;
Then, after user equipment end receives object identifier ident A, the client-side program installed on user equipment end is sent out
It send the acquisition request for carrying ident A to pulling server, and is based on ident A, service is pulled according to Internet protocol acquisition
The api of the data A that interface offer is provided of device deployment;
After pulling server reception acquisition request, corresponding data content data are found from data source according to ident A
A, returned data A give user equipment end;
User equipment termination receives display data A after data A.
Specifically, Data Synchronization Protocol is established by presetting push server and pulling server, so that Push Service
The correspondence relationship information of data and data and identifier can be sent to and pull server by device, then be arranged the push server with
Long connection protocol is established at user equipment end, and pushes object identifier to user equipment end, user equipment by long connection protocol
End, which retransmits, carries the acquisition request of the object identifier to pulling server, according to the correspondence relationship information, from described
It pulls to pull on server and obtains target data corresponding with the object identifier to be shown, to reduce push clothes
The network broadband expense of business device, is effectively saved cost.
Based on the same inventive concept, this application provides the embodiment of the method for the corresponding push server side of embodiment one,
Detailed in Example two.
Embodiment two
The present embodiment provides a kind of push exchange methods, as shown in figure 3, the method is applied to push server, it is described
Method includes:
Step S301 establishes Data Synchronization Protocol with server is pulled, by the Data Synchronization Protocol send data and
Data and the correspondence relationship information of identifier pull server to described, so that described pull server and the push server
Data are synchronous;
Step S302, the target data pushed as needed determine the corresponding object identifier of the target data;
Step S303 pushes the object identifier to user equipment end, the push server by long connection protocol
It is pre-established with the long connection protocol with the user equipment end, so that the user equipment end can be according to the target identification
It accords with to the server that pulls and obtains the target data.
Since the method that the present embodiment is introduced is push server side corresponding to method in the embodiment of the present application one
Method, so based on method described in the embodiment of the present application one, those skilled in the art can understand the present embodiment
Method specific embodiment and its various change form, so in order to illustrate the succinct of book, for the specific of this method
Realize that step is no longer discussed in detail herein.
Based on the same inventive concept, this application provides the corresponding embodiment of the method for pulling server side of embodiment one,
Detailed in Example three.
Embodiment three
The present embodiment provides a kind of push exchange methods, as shown in figure 4, the method is applied to pull server, it is described
Method includes:
Step S401 establishes Data Synchronization Protocol with push server, by pushing away described in Data Synchronization Protocol reception
The correspondence relationship information of the data and data and identifier of sending server to send, so that described pull server and push clothes
Device data of being engaged in are synchronous;
Step S402 receives the acquisition request for carrying object identifier that user equipment end is sent;
Step S403 is based on the acquisition request, according to the correspondence relationship information, the determining and object identifier pair
The target data answered;
Step S404 sends the target data to the user equipment end.
In the embodiment of the present application, the acquisition request for carrying object identifier for receiving user equipment end and sending,
It include: to receive user equipment end to carry target mark by what the application programming interface API for pulling server was sent
Know the acquisition request of symbol.
Since the method that the present embodiment is introduced is to pull server side corresponding to method in the embodiment of the present application one
Method, so based on method described in the embodiment of the present application one, those skilled in the art can understand the present embodiment
Method specific embodiment and its various change form, so in order to illustrate the succinct of book, for the specific of this method
Realize that step is no longer discussed in detail herein.
Based on the same inventive concept, this application provides the corresponding Installation practice of embodiment one, detailed in Example four.
Example IV
The present embodiment provides a kind of push interactive devices, as shown in figure 5, described device is user equipment end, described device
Include:
First receiving unit 501, the object identifier pushed for receiving push server by long connection protocol are described
Push server and the user equipment end are pre-established with the long connection protocol;
First transmission unit 502 carries the acquisition request of the object identifier to pulling server for sending, described
Pull the correspondence relationship information that data and data and identifier that the push server is sent are stored on server;
Second receiving unit 503 is based on the acquisition request for receiving the server that pulls, according to the corresponding pass
It is information, the target data corresponding with the object identifier of return;
Display unit 504, for showing the target data.
Since the device that the present embodiment is introduced is device used by method in implementation the embodiment of the present application one, so base
The method described in the embodiment of the present application one, those skilled in the art can understand the specific of the device of the present embodiment
Embodiment and its various change form, so how to realize the method in the embodiment of the present application no longer for the device at this
It is discussed in detail.As long as those skilled in the art implement equipment used by the method in the embodiment of the present application, this is belonged to
Apply for the range to be protected.
Based on the same inventive concept, this application provides the corresponding Installation practice of embodiment two, detailed in Example five.
Embodiment five
The present embodiment provides a kind of push interactive devices, as shown in fig. 6, described device is push server, described device
Include:
First synchronization unit 601, for pull server and establish Data Synchronization Protocol, pass through the Data Synchronization Protocol
Send data and data and the correspondence relationship information of identifier and pull server to described so that it is described pull server with it is described
Push server data are synchronous;
First determination unit 602, the target data for pushing as needed determine the corresponding target of the target data
Identifier;
Push unit 603, for pushing the object identifier to user equipment end, the push by long connection protocol
Server and the user equipment end are pre-established with the long connection protocol, so that the user equipment end can be according to the mesh
Mark identifier obtains the target data to the server that pulls.
Since the device that the present embodiment is introduced is device used by method in implementation the embodiment of the present application three, so base
The method described in the embodiment of the present application three, those skilled in the art can understand the specific of the device of the present embodiment
Embodiment and its various change form, so how to realize the method in the embodiment of the present application no longer for the device at this
It is discussed in detail.As long as those skilled in the art implement equipment used by the method in the embodiment of the present application, this is belonged to
Apply for the range to be protected.
Based on the same inventive concept, this application provides the corresponding Installation practice of embodiment three, detailed in Example six.
Embodiment six
The present embodiment provides a kind of push interactive devices, as shown in fig. 7, described device is to pull server, described device
Include:
Second synchronization unit 701 passes through the Data Synchronization Protocol for establishing Data Synchronization Protocol with push server
Receive the correspondence relationship information of data and data and identifier that the push server is sent so that it is described pull server with
The push server data are synchronous;
Third receiving unit 702, for receiving the acquisition request for carrying object identifier of user equipment end transmission;
Second determination unit 703, for being based on the acquisition request, according to the correspondence relationship information, it is determining with it is described
The corresponding target data of object identifier;
Second transmission unit 704, for sending the target data to the user equipment end.
Since the device that the present embodiment is introduced is device used by method in implementation the embodiment of the present application three, so base
The method described in the embodiment of the present application three, those skilled in the art can understand the specific of the device of the present embodiment
Embodiment and its various change form, so how to realize the method in the embodiment of the present application no longer for the device at this
It is discussed in detail.As long as those skilled in the art implement equipment used by the method in the embodiment of the present application, this is belonged to
Apply for the range to be protected.
Based on the same inventive concept, this application provides embodiment one, embodiment two or the corresponding electronics of embodiment three to set
Standby embodiment, detailed in Example seven.
Embodiment seven
The present embodiment provides a kind of electronic equipment, as shown in figure 8, including memory 810, processor 820 and being stored in
On reservoir 810 and the computer program 811 that can run on processor 820, processor 820 execute real when computer program 811
Any implementation method in current embodiment one, embodiment two or embodiment three.
Since the electronic equipment that the present embodiment is introduced is to implement in the embodiment of the present application one, embodiment two or embodiment three
Equipment used by method, so based on method described in the embodiment of the present application one, embodiment two or embodiment three, ability
Domain those of skill in the art can understand the specific embodiment and its various change form of the electronic equipment of the present embodiment, so
How method in the embodiment of the present application is realized if being no longer discussed in detail for the electronic equipment at this.As long as the affiliated technology in this field
Personnel implement equipment used by the method in the embodiment of the present application, belong to the range to be protected of the application.
Based on the same inventive concept, this application provides embodiment one, embodiment two or the corresponding storage of embodiment three Jie
Matter, detailed in Example eight.
Embodiment eight
The present embodiment provides a kind of computer readable storage mediums 900, as shown in figure 9, being stored thereon with computer program
911, any embodiment party in realization embodiment one, embodiment two or embodiment three when which is executed by processor
Method.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of push exchange method, which is characterized in that the method is applied to user equipment end, which comprises
Receive the object identifier that push server is pushed by long connection protocol, the push server and the user equipment
End is pre-established with the long connection protocol;
It sends the acquisition request for carrying the object identifier and is stored with described push away on server to server, described pull is pulled
The correspondence relationship information of the data and data and identifier of sending server to send;
Pulled described in reception server be based on the acquisition request, according to the correspondence relationship information, return with the target
The corresponding target data of identifier;
Show the target data.
2. the method as described in claim 1, which is characterized in that the acquisition request for sending the carrying object identifier is extremely
Pull server, comprising:
When receiving the object identifier, triggering, which is sent, carries the acquisition request of the object identifier to pulling service
Device;
Start timing when receiving the object identifier, after timing reaches preset duration, triggering, which is sent, carries the target
The acquisition request of identifier is to pulling server.
3. a kind of push exchange method, which is characterized in that the method is applied to push server, which comprises
Data Synchronization Protocol is established with server is pulled, data and data and identifier are sent by the Data Synchronization Protocol
Correspondence relationship information pulls server to described, so that described, to pull server synchronous with the push server data;
The target data pushed as needed determines the corresponding object identifier of the target data;
The object identifier is pushed to user equipment end, the push server and the user equipment by long connection protocol
End is pre-established with the long connection protocol, so that the user equipment end can pull clothes to described according to the object identifier
Business device obtains the target data.
4. a kind of push exchange method, which is characterized in that the method is applied to pull server, which comprises
Data Synchronization Protocol is established with push server, receives what the push server was sent by the Data Synchronization Protocol
The correspondence relationship information of data and data and identifier, so that described, to pull server synchronous with the push server data;
Receive the acquisition request for carrying object identifier that user equipment end is sent;
Target data corresponding with the object identifier is determined according to the correspondence relationship information based on the acquisition request;
The target data is sent to the user equipment end.
5. method as claimed in claim 4, which is characterized in that the reception user equipment end was sent carries target identification
The acquisition request of symbol, comprising:
It receives user equipment end and carries target identification by what the application programming interface API for pulling server was sent
The acquisition request of symbol.
6. a kind of push interactive device, which is characterized in that described device is user equipment end, and described device includes:
First receiving unit, the object identifier pushed for receiving push server by long connection protocol, the push clothes
Business device and the user equipment end are pre-established with the long connection protocol;
First transmission unit carries the acquisition request of the object identifier to pulling server for sending, described to pull clothes
The correspondence relationship information of data and data and identifier that the push server is sent is stored on business device;
Second receiving unit is based on the acquisition request for receiving the server that pulls, according to the correspondence relationship information,
The target data corresponding with the object identifier returned;
Display unit, for showing the target data.
7. a kind of push interactive device, which is characterized in that described device is push server, and described device includes:
First synchronization unit, for pull server and establish Data Synchronization Protocol, pass through the Data Synchronization Protocol and send number
According to and data and the correspondence relationship information of identifier to described pull server so that described pull server and push clothes
Device data of being engaged in are synchronous;
First determination unit, the target data for pushing as needed determine the corresponding object identifier of the target data;
Push unit, for pushing the object identifier to user equipment end, the push server by long connection protocol
It is pre-established with the long connection protocol with the user equipment end, so that the user equipment end can be according to the target identification
It accords with to the server that pulls and obtains the target data.
8. a kind of push interactive device, which is characterized in that described device is to pull server, and described device includes:
Second synchronization unit receives institute by the Data Synchronization Protocol for establishing Data Synchronization Protocol with push server
The data of push server transmission and the correspondence relationship information of data and identifier are stated, so that the server that pulls is pushed away with described
Send server data synchronous;
Third receiving unit, for receiving the acquisition request for carrying object identifier of user equipment end transmission;
Second determination unit, for being based on the acquisition request, according to the correspondence relationship information, the determining and target identification
Accord with corresponding target data;
Second transmission unit, for sending the target data to the user equipment end.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that the processor realizes claim 1-5 any method when executing described program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Claim 1-5 any method is realized when execution.
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 true CN110324377A (en) | 2019-10-11 |
CN110324377B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866116A (en) * | 2020-07-16 | 2020-10-30 | 上海茂声智能科技有限公司 | Method, system, equipment and storage medium for centralized management of terminal content |
Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040015505A1 (en) * | 2002-07-18 | 2004-01-22 | Ryan Quick | Delivering messages to message servers |
US20080288486A1 (en) * | 2007-05-17 | 2008-11-20 | Sang-Heun Kim | Method and system for aggregate web site database price watch feature |
CN101764828A (en) * | 2008-12-23 | 2010-06-30 | 华为终端有限公司 | 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 |
US8352931B2 (en) * | 2005-10-04 | 2013-01-08 | Samsung Electronics Co., Ltd. | Data push service method and system using data pull model |
US20130084896A1 (en) * | 2011-09-29 | 2013-04-04 | International Business Machines Corporation | Pushing Secure Notifications to Mobile Computing Devices |
US20130219009A1 (en) * | 2012-02-20 | 2013-08-22 | Microsoft Corporation | Scalable data feed system |
CN103686377A (en) * | 2013-12-09 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method for pushing information messages and intelligent terminal |
CN104219286A (en) * | 2014-08-13 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Method and device for processing stream media, client, CDN (content delivery network) node server and terminal |
CN104378399A (en) * | 2013-08-15 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Data push method, platform server, client terminal and system |
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 |
CN106331088A (en) * | 2016-08-22 | 2017-01-11 | 努比亚技术有限公司 | Message server, mobile terminal and message processing method |
CN106412018A (en) * | 2016-08-31 | 2017-02-15 | 百度在线网络技术(北京)有限公司 | Information pushing method and device |
CN106713124A (en) * | 2017-01-24 | 2017-05-24 | 深圳市启仑智能科技有限公司 | Message push method and system based on MQTT and MYSQL |
CN106777116A (en) * | 2016-12-15 | 2017-05-31 | 腾讯科技(深圳)有限公司 | A kind of content acquisition method, subscription client, server and system |
CN106973096A (en) * | 2017-03-27 | 2017-07-21 | 腾讯科技(深圳)有限公司 | The method for pushing and device of data |
CN107135258A (en) * | 2017-05-04 | 2017-09-05 | 浙江路港互通信息技术有限公司 | Method and server that message is pushed |
CN107172209A (en) * | 2017-07-04 | 2017-09-15 | 百度在线网络技术(北京)有限公司 | Information-pushing method and device |
CN107689988A (en) * | 2017-08-18 | 2018-02-13 | 广州市百果园信息技术有限公司 | A kind of method, apparatus, electronic equipment and the terminal device of message push |
CN107707926A (en) * | 2017-03-09 | 2018-02-16 | 贵州白山云科技有限公司 | A kind of live TV stream transmission method, device and system |
CN107819823A (en) * | 2017-09-26 | 2018-03-20 | 深圳市诚壹科技有限公司 | A kind of information processing method, server and computer-readable recording medium |
-
2018
- 2018-03-30 CN CN201810276531.1A patent/CN110324377B/en active Active
Patent Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040015505A1 (en) * | 2002-07-18 | 2004-01-22 | Ryan Quick | Delivering messages to message servers |
US8352931B2 (en) * | 2005-10-04 | 2013-01-08 | Samsung Electronics Co., Ltd. | Data push service method and system using data pull model |
US20080288486A1 (en) * | 2007-05-17 | 2008-11-20 | Sang-Heun Kim | Method and system for aggregate web site database price watch feature |
CN101764828A (en) * | 2008-12-23 | 2010-06-30 | 华为终端有限公司 | 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 |
US20130084896A1 (en) * | 2011-09-29 | 2013-04-04 | International Business Machines Corporation | Pushing Secure Notifications to Mobile Computing Devices |
US20130219009A1 (en) * | 2012-02-20 | 2013-08-22 | Microsoft Corporation | Scalable data feed system |
CN104378399A (en) * | 2013-08-15 | 2015-02-25 | 腾讯科技(深圳)有限公司 | Data push method, platform server, client terminal and system |
CN103686377A (en) * | 2013-12-09 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method for pushing information messages and intelligent terminal |
CN104219286A (en) * | 2014-08-13 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Method and device for processing stream media, client, CDN (content delivery network) 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 |
CN106331088A (en) * | 2016-08-22 | 2017-01-11 | 努比亚技术有限公司 | Message server, mobile terminal and message processing method |
CN106412018A (en) * | 2016-08-31 | 2017-02-15 | 百度在线网络技术(北京)有限公司 | Information pushing method and device |
CN106777116A (en) * | 2016-12-15 | 2017-05-31 | 腾讯科技(深圳)有限公司 | A kind of content acquisition method, subscription 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 |
CN106973096A (en) * | 2017-03-27 | 2017-07-21 | 腾讯科技(深圳)有限公司 | The method for pushing and device of data |
CN107135258A (en) * | 2017-05-04 | 2017-09-05 | 浙江路港互通信息技术有限公司 | Method and server that message is pushed |
CN107172209A (en) * | 2017-07-04 | 2017-09-15 | 百度在线网络技术(北京)有限公司 | Information-pushing method and device |
CN107689988A (en) * | 2017-08-18 | 2018-02-13 | 广州市百果园信息技术有限公司 | A kind of method, apparatus, electronic equipment and the terminal device of message push |
CN107819823A (en) * | 2017-09-26 | 2018-03-20 | 深圳市诚壹科技有限公司 | A kind of information processing method, server and computer-readable recording medium |
Non-Patent Citations (2)
Title |
---|
ANIL JANGAM 等: ""Realtime multi-party video conferencing service over information centric network"", 《 2015 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA & EXPO WORKSHOPS (ICMEW)》 * |
陈涛,李娟: ""基于 MQTT协议的推送技术研究"", 《软件理论与方法》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866116A (en) * | 2020-07-16 | 2020-10-30 | 上海茂声智能科技有限公司 | Method, system, equipment and storage medium for centralized management of terminal content |
CN111866116B (en) * | 2020-07-16 | 2023-11-07 | 上海茂声智能科技有限公司 | Method, system, equipment and storage medium for centralized management of terminal content |
Also Published As
Publication number | Publication date |
---|---|
CN110324377B (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103475953B (en) | A kind of media control method and equipment based on desktop cloud | |
CN104754279B (en) | A kind of method and system for realizing video calling | |
EP3021556A1 (en) | Transmission method and device for media stream in video conference | |
CN109152094B (en) | Wireless network connection method for terminal | |
CN105430317B (en) | A kind of video background setting method and terminal device | |
CN104426985A (en) | Method, device and system for displaying webpage | |
CN109547547A (en) | Return source dispatching method, device and its storage medium | |
CN108574722B (en) | Resource synchronization method, device and system | |
CN106533932A (en) | Method and device for pushing instant message | |
JP7465370B2 (en) | Information sharing method, device, electronic device, and storage medium | |
CN103401946A (en) | HTTP (hyper text transfer protocol) uploading acceleration method and system | |
CN107786415B (en) | Service processing method and related equipment and system | |
CN108696899A (en) | Sip message transmits and method of reseptance and transmission and reception device | |
CN106549989A (en) | A kind of data transmission method and its system, user terminal, application server | |
CN107239308A (en) | A kind of calling function realization method and system of browser | |
CN112965673A (en) | Content printing method, device, equipment and storage medium | |
CN106161356B (en) | Method and system for rapidly logging in website through client | |
WO2016078454A1 (en) | Method and apparatus for realizing dynamic head portrait | |
CN104426895B (en) | Information processing method and terminal device | |
CN110113298B (en) | Data transmission method, device, signaling server and computer readable medium | |
CN106686635B (en) | Data transmission method and device based on control and configuration protocol of wireless access point | |
CN102891851A (en) | Access control method, equipment and system of virtual desktop | |
CN110324377A (en) | A kind of push exchange method, device, electronic equipment and medium | |
CN114584808B (en) | Video stream acquisition method, device, system, equipment and medium | |
WO2023109045A1 (en) | Webrtc connection method and system |
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 |