CN108377247A - A kind of information push method and device - Google Patents

A kind of information push method and device Download PDF

Info

Publication number
CN108377247A
CN108377247A CN201810190644.XA CN201810190644A CN108377247A CN 108377247 A CN108377247 A CN 108377247A CN 201810190644 A CN201810190644 A CN 201810190644A CN 108377247 A CN108377247 A CN 108377247A
Authority
CN
China
Prior art keywords
user
tomcat
target user
stored
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810190644.XA
Other languages
Chinese (zh)
Other versions
CN108377247B (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.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information 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 Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN201810190644.XA priority Critical patent/CN108377247B/en
Publication of CN108377247A publication Critical patent/CN108377247A/en
Application granted granted Critical
Publication of CN108377247B publication Critical patent/CN108377247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • 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

Abstract

Embodiment of the disclosure is related to a kind of information push method and device, and the method comprising the steps of:When the HTTP request for including in the Web Socket requests for intercepting user's transmission, and user information and server identification are stored in shared memory systems;When to target user's PUSH message and when being stored with the user information of target user, by current tomcat servers to target user's PUSH message;In the user information of no storage target user, notice is stored with the tomcat server push message of the user information of target user;In the notice for receiving PUSH message, message push is carried out according to the user information of the target user of itself storage.The present invention can establish the connection of destination client and tomcat clusters based on Web Socket agreements, can realize under tomcat cluster environment, by Web Socket agreements to user's PUSH message.

Description

A kind of information push method and device
Technical field
Embodiment of the disclosure is related to field of communication technology more particularly to a kind of information push method and device.
Background technology
With the development of network technology, the mode of intelligence transmission is also increasingly used in people's live and work.Example Such as, using server every field is widely used in the client push message of user.Tomcat server (tom cats Server) due to have many advantages, such as performance it is stable, using free, be widely used using the clothes as Web applications (web application) Business device, so in order to service more clients, is needed more tomcat since the bearing capacity of single tomcat is limited It is connected to form tomcat clusters.In order to client push message, need based on certain communications protocol establish server and Communication connection between client.Web Socket (webpage port) agreements can carry out two-way communication due to having many advantages, such as, Through gradually replacing http protocol (Hyper Text Transfer Protocol, hypertext transfer protocol), and it is widely used.
Tomcat clusters are usually to share storage Database vendors information by shared memory systems to realize more The connection of tomcat, however each tomcat can only preserve the Web Socket connections in oneself memory, Web Socket Session (Web Socket sessions) is in the database for can not serialize and be stored in tomcat clusters.
So under tomcat cluster environment, cannot achieve through Web Socket agreements to user's PUSH message.
Invention content
In a first aspect, embodiment of the disclosure provides a kind of information push method, including step:
The hypertext transfer protocol HTTP for including in the webpage port Web Socket requests for intercepting user's transmission is asked When asking, the user information of the user is obtained, and stores the user of the user in the shared memory systems of tomcat clusters The server identification of information and tomcat servers, wherein the tomcat servers are one in the tomcat clusters Tomcat servers;
The use of the target user is stored with when needing to target user's PUSH message and in current tomcat servers When the information of family, by current tomcat servers to target user's PUSH message;
Do not store the target user's when needing to target user's PUSH message and in current tomcat servers When user information, according to the correspondence of the user information and server identification stored in the shared memory systems of the tomcat clusters Relationship determines the server identification of the corresponding tomcat servers of the user information of the target user, and according to identified clothes Business device identification notification is stored with the tomcat servers of the user information of target user to target user's PUSH message;
When receiving to the notice of target user's PUSH message, believed according to the user of the target user of itself storage Breath carries out message push.
In some embodiments, the server identification includes the Internet protocol IP address and port numbers of server.
In some embodiments, server identification notice determined by the basis is stored with the user information of target user Tomcat servers include to the step of target user's PUSH message:
According to the server identification of the tomcat servers for the user information for being stored with target user mesh is stored with to described The tomcat servers for marking the user information of user are sent comprising the URL request to target user's PUSH message.
In some embodiments, the user information that the user is stored in the shared memory systems of tomcat clusters After the server identification step of the tomcat servers where the user, the method further includes step:
In user offline, the user information of the offline user stored in the shared memory systems is deleted.
In some embodiments, the shared memory systems of the tomcat clusters are Redis systems.
Second aspect, embodiment of the disclosure provide a kind of message pusher, including:
Memory module is obtained, the super text for including in the webpage port Web Socket requests for intercepting user's transmission When this transport protocol HTTP request, the user information of the user is obtained, and deposited in the shared memory systems of tomcat clusters Store up the server identification of the user information and tomcat servers of the user, wherein the tomcat servers are described A tomcat server in tomcat clusters;
First pushing module, for being stored with when needing to target user's PUSH message and in current tomcat servers When the user information of the target user, by current tomcat servers to target user's PUSH message;
Notification module, for no storage institute when needing to target user's PUSH message and in current tomcat servers When stating the user information of target user, according to the user information and service stored in the shared memory systems of the tomcat clusters The correspondence of device mark determines the server identification of the corresponding tomcat servers of the user information of the target user, and root The tomcat servers of the user information of target user are stored with according to identified server identification notice to the target user PUSH message;
Second pushing module, for when receiving to the notice of target user's PUSH message, being stored according to itself Target user user information carry out message push.
In some embodiments, the server identification includes the Internet protocol IP address and port numbers of server.
In some embodiments, the notification module includes:
It notifies submodule, the server identification of the tomcat servers of the user information of target user is stored with for basis Sent to the tomcat servers of the user information for being stored with target user includes to target user's PUSH message URL request.
In some embodiments, further include:
Removing module, in user offline, deleting the user of the offline user stored in the shared memory systems Information.
In some embodiments, the shared memory systems of the tomcat clusters are Redis systems.
The third aspect, embodiment of the disclosure additionally provide a kind of tomcat servers, including processor, memory and deposit The computer program that can be run on the memory and on the processor is stored up, the computer program is by the processor The step of any of the above-described kind of information push method is realized when execution.
Fourth aspect, embodiment of the disclosure additionally provide a kind of computer readable storage medium, are stored thereon with calculating The step of machine program, the computer program realizes any of the above-described kind of information push method when being executed by processor.
Description of the drawings
Fig. 1 is a kind of flow chart for information push method that embodiment of the disclosure provides;
Fig. 2 is a kind of structure chart for message pusher that embodiment of the disclosure provides.
Specific implementation mode
Below in conjunction with the attached drawing in embodiment of the disclosure, the technical solution in embodiment of the disclosure is carried out clear Chu is fully described by, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment of the disclosure, the every other reality that those of ordinary skill in the art are obtained without creative efforts Example is applied, shall fall within the protection scope of the present invention.
It is a kind of flow chart for information push method that a disclosed embodiment of the invention provides referring to Fig. 1, Fig. 1.
In a specific embodiment, which includes step:
When step 101, the HTTP request for including in the Web Socket requests for intercepting user's transmission, the use is obtained The user information at family, and store in the shared memory systems of tomcat clusters user information and the tomcat services of the user The server identification of device.
If necessary to realizing the communication between user and tomcat servers, such as message sends and receives, and needs to build Vertical connection between user and server.In embodiment of the disclosure, user can through but not limited to mobile phone, tablet computer, The various electronic equipments such as vehicle-mounted computer and computer establish the connection with tomcat servers.
In embodiment of the disclosure, the mode that user sends the request for establishing connection to tomcat servers can be according to tool Body situation selects, for example, the request for establishing connection can be sent out to tomcat servers by clicking specified chained address, On specified webpage by logging in preset account the request established and connected can also be sent out to tomcat servers, it is clear that It can also be established by modes such as the address Quick Response Codes of scan protection target tomcat servers to be sent to tomcat servers The request of connection.It is to be noted, however, that in embodiment of the disclosure, the connection request of transmission is all based on Web Socket Agreement, moreover, the tomcat servers mentioned in embodiment of the disclosure refer to the tomcat in tomcat clusters Server, and not independently arranged tomcat servers.
Tomcat servers are connected with determining to establish receiving the request rear line that user sends out and return to echo message, The process of this foundation communication connection is commonly known as shaken hands (handshaking).
Handshake procedure based on Web Socket agreements is realized based on HTTP, i.e. the company based on Web Socket agreements It is to increase other additional informations on the basis of HTTP handshake requests to realize to connect request, so the company based on Web Socket agreements It will necessarily includes HTTP handshake requests to connect in request.
In embodiment of the disclosure, the HTTP for including in the connection request by intercepting Web Socket agreements shakes hands and asks It asks, to obtain the user information for the destination client for including in HTTP handshake requests.
In general, user information is to be stored in mesh in the form of Cookie (data being stored on user local terminal) Mark in client, it is clear that the user information of user can also be provided otherwise in embodiment of the disclosure, such as by with Family manual editing inputs the modes such as number or the unique account of oneself used client and is used as user information etc..
In a specific embodiment, the database of tomcat clusters can be specifically Redis databases, can also be it His database as tomcat cluster shared memory systems, every tomcat servers in tomcat clusters are by respective number According to being stored in shared memory systems, every tomcat servers in tomcat clusters can access the database, to Data sharing is established to realize the connection of multiple tomcat servers.
In some embodiments, server identification includes the Internet protocol IP address and port numbers of server; In still another embodiment, server identification can also be with number, IP address, SEQ (sequence number, sequence code) Form determine server identification.
After user information and server identification is determined, user information and server identification are stored in tomcat clusters Shared memory systems in, in this way, in the shared memory systems of tomcat clusters determine.By acquired user information and The server identification of the corresponding tomcat servers of the user, which is stored in the shared memory systems of tomcat clusters, to be achieved that Establish the connection of user and tomcat clusters.
In a specific embodiment, the service of the user information of user and the tomcat servers being connected with the user Device mark is stored in shared memory systems with the format of key-value (key-value), in some other specific implementation mode In, it can also be preserved in the form of a character string, such as preceding 16 representative servers of character string identify, remaining digital generation Table user information.
It is stored in the form of key-value as shared by user information and server identification in embodiment of the disclosure Illustrate in the Redis databases of storage system.
In a specific embodiment, the target customer for including by the HTTP Session obtained in HTTP handshake requests The user information at end is as key, using the IP address for the tomcat servers being connected directly with the user and port as value, And the key-value values of acquisition are stored in shared memory systems.In this way, the user being connected with every tomcat servers User has been maintained in shared memory systems, and any tomcat servers in tomcat clusters can pass through visit at this time The tomcat servers for asking shared memory systems to obtain the user information of user and be connected directly with the user.
Step 102 is stored with the target when needing to target user's PUSH message and in current tomcat servers When the user information of user, by current tomcat servers to target user's PUSH message.
It should be understood that when needing to target user's PUSH message, the tomcat services of push instruction are received Device is a tomcat server in tomcat clusters, if being stored with the use of target user in current tomcat servers Family information, then directly by current tomcat servers to target user's PUSH message.
Step 103, no storage mesh when needing to target user's PUSH message and in current tomcat servers When marking the user information of user, according to the user information and server mark stored in the shared memory systems of the tomcat clusters The correspondence of knowledge determines the server identification of the corresponding tomcat servers of the user information of the target user, and according to institute The tomcat servers for the user information that determining server identification notice is stored with target user are pushed to the target user Message.
If receiving the server of the push instruction to target user's PUSH message and indirect with target user's phase Tomcat servers even, then can not by the tomcat servers directly to target user's PUSH message, therefore this In disclosed embodiment, if not storing the user information of the target user in current tomcat servers, prove to work as Preceding tomcat servers and it is indirect be connected with target user, then sent to the tomcat servers that are connected directly with target user Notice is with the tomcat servers that notify to be connected directly with target user to target user's PUSH message.
Since the user information of user is unique, then after the target user of PUSH message is determined, Ke Yigen The user information and corresponding service are searched in the shared memory systems of tomcat clusters according to the user information of target user Device identifies, and further determines corresponding server identification according to user information, so that it is determined that being directly connected with the target user Tomcat servers, and to the tomcat servers send notice with by the tomcat servers to target user push disappear Breath.
In a specific embodiment, can by establish the form of the communication port between two tomcat to target Tomcat servers that user is connected directly send notice, can also be by the user information for being stored with target user Tomcat servers send one and include URL (Uniform Resource Locator, the unification to target user's PUSH message Resource Locator) request the tomcat servers that are connected directly with target user of form notice, it is clear that other can also be passed through Mode sends the notice to target user's PUSH message to the tomcat servers being connected directly with target user.
Step 104, when receiving to the notice of target user's PUSH message, according to itself store target user User information carry out message push.
If a tomcat server receive other tomcat servers transmissions to target user's PUSH message Notice, then this receives tomcat servers of notice then according to the user information of the target user of itself storage to target User's PUSH message.
The present invention obtains institute by intercepting the HTTP handshake requests in the connection request sent based on Web Socket agreements State the user information for the destination client that the HTTP Session in HTTP handshake requests include, and by user information and and user The database of the server identification deposit tomcat clusters for the tomcat servers being connected directly, can be based on Web Socket associations View establishes the connection of destination client and tomcat clusters, can realize under tomcat cluster environment, pass through Web Socket Agreement is to user's PUSH message.
In some embodiments, the user information that the user is stored in the shared memory systems of tomcat clusters After the server identification step of the tomcat servers where the user, the method further includes step:
In user offline, the user information of the offline user stored in the shared memory systems is deleted.
In use, client is likely to occur various situations, thus it is for example possible to short-term, user because of network failure It is actively offline etc., in order to reduce the load of server, in embodiment of the disclosure further in user offline, delete described total The user information for enjoying the offline user stored in storage system, can reduce the load of tomcat servers.
It is 200 structure charts of the message pusher that embodiment of the disclosure provides referring to Fig. 2, Fig. 2, as shown in Fig. 2, should Message pusher 200, including:
Memory module 201 is obtained, for including in the webpage port Web Socket requests for intercepting user's transmission When HTTP request, the user information of the user is obtained, and in the shared memory systems of tomcat clusters The server identification of the user information and tomcat servers of the middle storage user, wherein the tomcat servers are institute State a tomcat server in tomcat clusters;
First pushing module 202, for being deposited when needing to target user's PUSH message and in current tomcat servers When containing the user information of the target user, by current tomcat servers to target user's PUSH message;
Notification module 203, for not deposited when needing to target user's PUSH message and in current tomcat servers When storing up the user information of the target user, according to the user information that is stored in the shared memory systems of the tomcat clusters and The correspondence of server identification determines the server identification of the corresponding tomcat servers of the user information of the target user, And be stored with according to identified server identification notice target user user information tomcat servers to the target User's PUSH message;
Second pushing module 204, for when receiving to the notice of target user's PUSH message, being deposited according to itself The user information of the target user of storage carries out message push.
In some embodiments, the server identification includes the Internet protocol IP address and port numbers of server.
In some embodiments, the notification module 203 includes:
It notifies submodule, the server identification of the tomcat servers of the user information of target user is stored with for basis Sent to the tomcat servers of the user information for being stored with target user includes to target user's PUSH message URL request.
In some embodiments, further include:
Removing module, in user offline, deleting the user of the offline user stored in the shared memory systems Information.
In some embodiments, the shared memory systems of the tomcat clusters are Redis systems.
The mobile terminal that embodiment of the disclosure provides can realize each process in embodiment of the method shown in FIG. 1, The present invention is obtained the HTTP and held by intercepting the HTTP handshake requests in the connection request sent based on Web Socket agreements The user information for the destination client that HTTP Session in hand request include, and be connected directly by user information and with user Tomcat servers server identification deposit tomcat clusters database, mesh can be established based on Web Socket agreements Mark client and tomcat clusters connection, can realize under tomcat cluster environment, by Web Socket agreements to Family PUSH message.
Preferably, embodiment of the disclosure also provides a kind of tomcat servers, including processor, memory are stored in On memory and the computer program that can run on the processor, which realizes above-mentioned when being executed by processor Each process of information push method embodiment, and identical technique effect can be reached, to avoid repeating, which is not described herein again.
Embodiment of the disclosure also provides a kind of computer readable storage medium, is stored on computer readable storage medium Computer program, the computer program realize each process of above-mentioned information push method embodiment when being executed by processor, and Identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit It connects, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of information push method, which is characterized in that including step:
When the HTTP request for including in the webpage port Web Socket requests for intercepting user's transmission, Obtain the user information of the user, and store in the shared memory systems of tomcat clusters the user user information and The server identification of tomcat servers, wherein the tomcat servers are a tomcat in the tomcat clusters Server;
User's letter of the target user is stored with when needing to target user's PUSH message and in current tomcat servers When breath, by current tomcat servers to target user's PUSH message;
The user of the target user is not stored when needing to target user's PUSH message and in current tomcat servers When information, according to the correspondence of the user information and server identification stored in the shared memory systems of the tomcat clusters Determine the server identification of the corresponding tomcat servers of the user information of the target user, and according to identified server Identification notification is stored with the tomcat servers of the user information of target user to target user's PUSH message;
When receiving to the notice of target user's PUSH message, according to itself storage target user user information into Row message pushes.
2. the method as described in claim 1, which is characterized in that the server identification includes the Internet protocol IP of server Location and port numbers.
3. information push method as described in claim 1, which is characterized in that server identification determined by the basis notifies The tomcat servers of the user information of target user, which are stored with, to the step of target user's PUSH message includes:
It is used to the target that is stored with according to the server identification of the tomcat servers for the user information for being stored with target user The tomcat servers of the user information at family are sent comprising the URL request to target user's PUSH message.
4. the method as described in claim 1, which is characterized in that described to store institute in the shared memory systems of tomcat clusters After stating the user information of user and the server identification step of the tomcat servers where the user, the method is also wrapped Include step:
In user offline, the user information of the offline user stored in the shared memory systems is deleted.
5. the method as described in claim 1, which is characterized in that the shared memory systems of the tomcat clusters are Redis systems System.
6. a kind of message pusher, which is characterized in that including:
Memory module is obtained, the hypertext for including in the webpage port Web Socket requests for intercepting user's transmission passes When defeated protocol HTTP request, the user information of the user is obtained, and institute is stored in the shared memory systems of tomcat clusters State the server identification of the user information and tomcat servers of user, wherein the tomcat servers are the tomcat A tomcat server in cluster;
First pushing module, it is described for being stored with when needing to target user's PUSH message and in current tomcat servers When the user information of target user, by current tomcat servers to target user's PUSH message;
Notification module stores the mesh for no when needing to target user's PUSH message and in current tomcat servers When marking the user information of user, according to the user information and server mark stored in the shared memory systems of the tomcat clusters The correspondence of knowledge determines the server identification of the corresponding tomcat servers of the user information of the target user, and according to institute The tomcat servers for the user information that determining server identification notice is stored with target user are pushed to the target user Message;
Second pushing module, the mesh for when receiving to the notice of target user's PUSH message, being stored according to itself The user information for marking user carries out message push.
7. device as claimed in claim 6, which is characterized in that the server identification includes the Internet protocol IP of server Location and port numbers.
8. device as claimed in claim 6, which is characterized in that the notification module includes:
Notify submodule, for according to the server identification of the tomcat servers of the user information for being stored with target user to institute It includes to be asked to the URL of target user's PUSH message to state and be stored with the tomcat servers transmission of the user information of target user It asks.
9. device as claimed in claim 6, which is characterized in that further include:
Removing module, in user offline, deleting the user information of the offline user stored in the shared memory systems.
10. device as claimed in claim 6, which is characterized in that the shared memory systems of the tomcat clusters are Redis systems System.
11. a kind of tomcat servers, which is characterized in that including processor, memory and be stored on the memory and can The computer program run on the processor realizes such as claim when the computer program is executed by the processor The step of information push method described in any one of 1 to 5.
12. a kind of computer readable storage medium, is stored thereon with computer program, the computer program is executed by processor The step of information push methods of the Shi Shixian as described in any one of claim 1 to 5.
CN201810190644.XA 2018-03-08 2018-03-08 Message pushing method and device Active CN108377247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810190644.XA CN108377247B (en) 2018-03-08 2018-03-08 Message pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810190644.XA CN108377247B (en) 2018-03-08 2018-03-08 Message pushing method and device

Publications (2)

Publication Number Publication Date
CN108377247A true CN108377247A (en) 2018-08-07
CN108377247B CN108377247B (en) 2021-02-26

Family

ID=63018645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810190644.XA Active CN108377247B (en) 2018-03-08 2018-03-08 Message pushing method and device

Country Status (1)

Country Link
CN (1) CN108377247B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600452A (en) * 2018-12-29 2019-04-09 北京车和家信息技术有限公司 Server cluster, information push method and associated server
CN110300050A (en) * 2019-05-23 2019-10-01 中国平安人寿保险股份有限公司 Information push method, device, computer equipment and storage medium
CN111031058A (en) * 2019-12-23 2020-04-17 集奥聚合(北京)人工智能科技有限公司 Websocket-based distributed server cluster interaction method and device
CN111045835A (en) * 2019-10-24 2020-04-21 京东数字科技控股有限公司 Information pushing method and device, electronic equipment and storage medium
CN111083193A (en) * 2019-11-11 2020-04-28 厦门网宿有限公司 Long connection message sending method, server and storage medium
CN112769671A (en) * 2019-10-21 2021-05-07 北京车和家信息技术有限公司 Message processing method, device and system
CN114039961A (en) * 2021-10-08 2022-02-11 中移(杭州)信息技术有限公司 Message pushing method, device, server and storage medium based on WebSocket

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475660A (en) * 2013-09-12 2013-12-25 神州数码网络(北京)有限公司 Method, device and system for page pushing
CN103546584A (en) * 2013-11-13 2014-01-29 深圳市中兴移动通信有限公司 Information pushing method and system
JP2015103122A (en) * 2013-11-27 2015-06-04 シャープ株式会社 Network system, communication method, electronic apparatus, full-time connection server, and program
CN104734945A (en) * 2015-04-03 2015-06-24 中煤电气有限公司 Web online instant communication system and method embedded in enterprise management system
CN104980289A (en) * 2014-04-14 2015-10-14 阿里巴巴集团控股有限公司 Message pushing method, device and system
CN104980898A (en) * 2014-04-04 2015-10-14 中兴通讯股份有限公司 Information pushing method, system and equipment
CN106303428A (en) * 2016-08-18 2017-01-04 杭州蛮牛科技有限公司 A kind of security protection cloud platform
CN106713391A (en) * 2015-11-13 2017-05-24 北京新媒传信科技有限公司 Session information sharing method and sharing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475660A (en) * 2013-09-12 2013-12-25 神州数码网络(北京)有限公司 Method, device and system for page pushing
CN103546584A (en) * 2013-11-13 2014-01-29 深圳市中兴移动通信有限公司 Information pushing method and system
JP2015103122A (en) * 2013-11-27 2015-06-04 シャープ株式会社 Network system, communication method, electronic apparatus, full-time connection server, and program
CN104980898A (en) * 2014-04-04 2015-10-14 中兴通讯股份有限公司 Information pushing method, system and equipment
CN104980289A (en) * 2014-04-14 2015-10-14 阿里巴巴集团控股有限公司 Message pushing method, device and system
CN104734945A (en) * 2015-04-03 2015-06-24 中煤电气有限公司 Web online instant communication system and method embedded in enterprise management system
CN106713391A (en) * 2015-11-13 2017-05-24 北京新媒传信科技有限公司 Session information sharing method and sharing system
CN106303428A (en) * 2016-08-18 2017-01-04 杭州蛮牛科技有限公司 A kind of security protection cloud platform

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600452A (en) * 2018-12-29 2019-04-09 北京车和家信息技术有限公司 Server cluster, information push method and associated server
CN109600452B (en) * 2018-12-29 2021-10-12 北京车和家信息技术有限公司 Server cluster, message pushing method and related server
CN110300050A (en) * 2019-05-23 2019-10-01 中国平安人寿保险股份有限公司 Information push method, device, computer equipment and storage medium
CN112769671A (en) * 2019-10-21 2021-05-07 北京车和家信息技术有限公司 Message processing method, device and system
CN111045835A (en) * 2019-10-24 2020-04-21 京东数字科技控股有限公司 Information pushing method and device, electronic equipment and storage medium
CN111083193A (en) * 2019-11-11 2020-04-28 厦门网宿有限公司 Long connection message sending method, server and storage medium
CN111031058A (en) * 2019-12-23 2020-04-17 集奥聚合(北京)人工智能科技有限公司 Websocket-based distributed server cluster interaction method and device
CN114039961A (en) * 2021-10-08 2022-02-11 中移(杭州)信息技术有限公司 Message pushing method, device, server and storage medium based on WebSocket

Also Published As

Publication number Publication date
CN108377247B (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN108377247A (en) A kind of information push method and device
CN106899680B (en) The fragment treating method and apparatus of multi-tiling chain
CN100407627C (en) Method and system for realizing end-to-end data sharing
US11553014B2 (en) Downloading of server-based content through peer-to-peer networks
CN106130882A (en) For the method and apparatus transmitting message
CN113452592B (en) Cross-cloud data access method and device under hybrid cloud architecture
CN111857974A (en) Service access method and device based on load balancer
US20040246911A1 (en) Network location management system
ATE293809T1 (en) DIGITAL COMPUTER SYSTEM AND METHOD FOR ANSWERING INQUIRIES RECEIVED VIA AN EXTERNAL NETWORK
US20070282899A1 (en) System and method for managing and distributing assets over a network
US7437461B2 (en) Load balancing apparatus and method
CN105227602A (en) A kind of method of load balancing, client, registrar and system
CN105868231A (en) Cache data updating method and device
CN110430274A (en) A kind of document down loading method and system based on cloud storage
CN101326493A (en) Method and device for distributing load of multiprocessor server
CN103220308B (en) A kind of document down loading method, apparatus and system
CN111491037A (en) Communication method with object storage server through SFTP data stream
CN105871591A (en) Method and device for distributing CDN (Content Delivery Network) addresses
EP2517408A2 (en) Fault tolerant and scalable load distribution of resources
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
CN113630464B (en) Distributed speech processing method, system, device and storage medium
US10841400B2 (en) Request processing in a content delivery framework
CN103731511B (en) Data acquiring method and data acquiring device in P2P (Peer-to-Peer) system
CN105847396A (en) Data transmission method and device
CN105871972A (en) Video resource distributed cathe method, device 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
TR01 Transfer of patent right

Effective date of registration: 20211119

Address after: Room 103, building 1, yard 4, Hengxing Road, Gaoliying Town, Shunyi District, Beijing

Patentee after: Beijing Rockwell Technology Co.,Ltd.

Address before: Room 801, 8 / F, building 3, No.10 courtyard, Wangjing street, Chaoyang District, Beijing 100102

Patentee before: BEIJING CHJ AUTOMOTIVE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right