CN108023807A - Instant communicating method, server and message-oriented middleware - Google Patents

Instant communicating method, server and message-oriented middleware Download PDF

Info

Publication number
CN108023807A
CN108023807A CN201711066521.7A CN201711066521A CN108023807A CN 108023807 A CN108023807 A CN 108023807A CN 201711066521 A CN201711066521 A CN 201711066521A CN 108023807 A CN108023807 A CN 108023807A
Authority
CN
China
Prior art keywords
server
message
client
user
oriented middleware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711066521.7A
Other languages
Chinese (zh)
Inventor
赵研
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201711066521.7A priority Critical patent/CN108023807A/en
Publication of CN108023807A publication Critical patent/CN108023807A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention proposes a kind of instant communicating method, server and message-oriented middleware, wherein, method includes:First server, which receives, is logged in the first message that the first client of the first user is sent, and according to the identity information for logging in second user on a second client carried in first message, obtain the identification information of second server corresponding with the second client, the identification information of second server and first message are sent to message-oriented middleware again, first message is transmitted to by second server according to identification information by message-oriented middleware, then first message is sent to the second client by second server.The message between two servers for needing to communicate is forwarded by existing message-oriented middleware in cluster, realize the communication between client, it is not required two servers to be directly connected to, change the message transfer mechanism between client, new middleware need not be increased, so as to reduce the consuming to hardware resource.

Description

Instant communicating method, server and message-oriented middleware
Technical field
The present invention relates to field of communication technology, more particularly to a kind of instant communicating method, server and message-oriented middleware.
Background technology
Instant messaging is a kind of real-time communication service.In enterprise, instant messaging usually as routine office work software, it is necessary to Satisfaction height is handled up, the requirement of low latency, so instant messaging service usually requires deployment multiple servers, passes through multiple servers Cluster mode is formed, to meet the demand.
At present, client needs to establish long connection between server in instant messaging, then needs the service to communicate The communication between client is realized by third party's middleware between device.Specifically, third party's middleware can be with detection service Whether device reaches the standard grade, and after detecting that server is reached the standard grade, can collect the address information of server.Needed when between two servers When communicating, two respective address informations of server for needing to communicate are fed back to other side by third party's middleware so that two Server is directly connected to according to the address information of other side, and two after connection server can directly communicate.Its In, third party's middleware can be the middlewares such as zookeeper, consul, etcd.But introducing third party's middleware can account for With more hardware resources, increase cost.
The content of the invention
It is contemplated that solve at least some of the technical problems in related technologies.
For this reason, first purpose of the present invention is to propose a kind of instant communicating method, to be disappeared by existing in cluster Middleware is ceased, forwards the message between two servers for needing to communicate, it is not necessary to which two servers are directly connected to, and change visitor Message transfer mechanism between the end of family, and client corresponding with server is in communication with each other, it is existing to solve By way of increasing third party's middleware, there is the problem of more hardware resources of occupancy, of high cost.
Second object of the present invention is to propose another instant communicating method.
Third object of the present invention is to propose a kind of server.
Fourth object of the present invention is to propose a kind of message-oriented middleware.
The 5th purpose of the present invention is to propose another server.
The 6th purpose of the present invention is to propose another message-oriented middleware.
The 7th purpose of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
The 8th purpose of the present invention is to propose another non-transitorycomputer readable storage medium.
The 9th purpose of the present invention is to propose a kind of computer program product.
The tenth purpose of the present invention is to propose another computer program product.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of instant communicating method, including:
First server, which receives, is logged in the first message that the first client of the first user is sent;Wherein, described first The identity information for logging in second user on a second client is carried in message;
The first server obtains second client corresponding second according to the identity information of the second user The identification information of server;
The identification information of the second server and the first message are sent among message by the first server Part, and the first message is transmitted to by the second server according to the identification information by the message-oriented middleware, by institute State second server and be transmitted to second client.
Alternatively, receive and be logged in as a kind of possible implementation of first aspect embodiment, the first server Before the first message that the first client of first user is sent, further include:
The first server passes through the message-oriented middleware, each second service of the collection in state of reaching the standard grade when reaching the standard grade The log-on message of device;Wherein, the log-on message of the second server includes identification information and the login of the second server The identity information of the second user in second client;
The first server uses the log-on message of each second server in state of reaching the standard grade, renewal to online In the information of family.
Alternatively, lead to as a kind of possible implementation of first aspect embodiment, the first server when reaching the standard grade The message-oriented middleware is crossed, collection is in the log-on message of each second server for state of reaching the standard grade, including:
The first server subscribes to broadcast queue to the message-oriented middleware;
The first server, by the broadcast queue, is received from described when reaching the standard grade from the message-oriented middleware In the log-on message of each second server for the state of reaching the standard grade;Wherein, the log-on message of the second server is by described second Server is broadcast to the message-oriented middleware by the broadcast queue of subscription.
Alternatively, further included as a kind of possible implementation of first aspect embodiment, the instant communicating method:
The first server is received under the second server by master server broadcast by the broadcast queue Line message;Wherein, the offline message by the master server monitor the second server it is offline when send;
The first server is according to the offline message of the second server, by the login of the second server Information, is deleted from online user's information.
Alternatively, further included as a kind of possible implementation of first aspect embodiment, the instant communicating method:
The first server broadcasts first clothes when reaching the standard grade, by the broadcast queue to the message-oriented middleware The on-line message of business device.
Alternatively, as a kind of possible implementation of first aspect embodiment, the first server is led to when reaching the standard grade The on-line message that the broadcast queue broadcasts the first server to the message-oriented middleware is crossed, including:
After the first server is reached the standard grade, the log messages of first client are received;Wherein, in the log messages Carry the identity information of first user;
The first server is raw using the identity information of first user and the identification information of the first server Believe into the log-on message, and by login of the broadcast queue to the message-oriented middleware broadcast first server Breath.
Alternatively, as a kind of possible implementation of first aspect embodiment, after the first server is reached the standard grade, receive After the log messages of first client, further include:
The first server receives the login exit message that first client is sent;Wherein, the login is exited Message is used to indicate that first user logs off from first client;
The first server broadcasts stepping on for first client by the broadcast queue to the message-oriented middleware Record exit message.
Alternatively, further included as a kind of possible implementation of first aspect embodiment, the instant communicating method:
The first server is received by the second server by the broadcast queue from the message-oriented middleware The login exit message for the second user broadcasted by the broadcast queue;
The first server is according to the login exit message of the second user, by the identity information of the second user Deleted from online user's information.
Alternatively, as a kind of possible implementation of first aspect embodiment, the first server is according to described The identity information of two users, obtains the corresponding second server of second client, including:
The first server inquires about according to the identity information of the second user and is buffered in the first server in advance On online user's information, therefrom obtain the corresponding second server of second client.
The instant communicating method of the embodiment of the present invention, the first client for being logged in the first user is received by first server The first message sent is held, and is believed according to the identity for logging in second user on a second client carried in first message Breath, obtains the identification information of corresponding with the second client second server, then by the identification information of second server and first Message is sent to message-oriented middleware, and first message is transmitted to second server according to identification information by message-oriented middleware, then by First message is sent to the second client by second server, so as to fulfill logical between the first client and the second client Letter.In the present embodiment, the message between two servers for needing to communicate is forwarded by existing message-oriented middleware in cluster, it is real Communication between existing client, it is not necessary to which two servers are directly connected to, and change the message transfer mechanism between client, no Need to increase new middleware, so as to reduce the consuming to hardware resource, solve existing by increasing among third party , there is the problem of more hardware resources of occupancy, of high cost in the mode of part.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of another instant communicating method, including:
Message-oriented middleware receives the first message of first server transmission and the identification information of second server, wherein, institute The message that first message is sent to the first server for the first client is stated, first client is in the described first clothes The client that business device logs in;
The first message is sent to described by the message-oriented middleware according to the identification information of the second server Two servers, the second client is transmitted to by the second server.
Alternatively, further included as a kind of possible implementation of second aspect embodiment, the instant communicating method:
Log-on message on the message-oriented middleware collection second server;Wherein, the login letter of the second server Breath includes the identification information of the second server and logs in the identity letter of the second user in second client Breath;
Log-on message on each second server is sent to the first server by the message-oriented middleware.
Alternatively, as a kind of possible implementation of second aspect embodiment, the message-oriented middleware is by described second Log-on message on server, is sent to before the first server, further includes:
The message-oriented middleware receives the subscription message of the first server;Wherein, the subscription message is used to subscribe to Broadcast queue;
The message-oriented middleware receives the log-on message that the second server is broadcasted by the broadcast queue;
The log-on message of the second server is broadcast to described by the message-oriented middleware by the broadcast queue One server.
Alternatively, further included as a kind of possible implementation of second aspect embodiment, the instant communicating method:
The message-oriented middleware receives the first server when reaching the standard grade, described the broadcasted by the broadcast queue The on-line message of one server.
Alternatively, as a kind of possible implementation of second aspect embodiment, the message-oriented middleware receives described the One server is when reaching the standard grade, the on-line message for the first server broadcasted by the broadcast queue, including:
The message-oriented middleware receives the log-on message that the first server is broadcasted by the broadcast queue;It is described to step on Record information and carry the identification information of first server and the identity information of the first user;Wherein, first user is to log in The user in the first client in first server;
The log-on message of the first server is broadcast to described by the message-oriented middleware by the broadcast queue Two servers.
Alternatively, as a kind of possible implementation of second aspect embodiment, the message-oriented middleware is by described first After the log-on message of server is broadcast to the second server by the broadcast queue, further include:
The message-oriented middleware receives first user's that the first server is broadcasted by the broadcast queue Log off message;The message of logging off is used to indicate that first user logs off from first client;
The message of logging off of first user is broadcast to subscription by the message-oriented middleware by the broadcast queue The second server of the broadcast queue.
The instant communicating method of the embodiment of the present invention, the first message of first server transmission is received by message-oriented middleware With the identification information of second server, and the identification information by message-oriented middleware according to second server, the first client is sent out The first message sent is sent to second server, and first message is transmitted to the second client by second server, so as to fulfill Communication between first client and the second client.In the present embodiment, forwarded by existing message-oriented middleware in cluster The message between two servers communicating is needed, realizes the communication between client, it is not necessary to two servers are directly connected to, Change the message transfer mechanism between client, it is not necessary to increase new middleware, so as to reduce the consumption to hardware resource Take, solve existing by way of increasing third party's middleware, exist and take more hardware resources, it is of high cost the problem of.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of server, including:
First receiving module, the first message that the first client of the first user is sent is logged in for receiving;Wherein, institute State the identity information for being carried in first message and logging in second user on a second client;
Acquisition module, for the identity information according to the second user, obtains second client corresponding second The identification information of server;
First sending module, for the identification information of the second server and the first message to be sent in message Between part, and the first message is transmitted to by the second server according to the identification information by the message-oriented middleware, by The second server is transmitted to second client.
The server of the embodiment of the present invention, first that the first client transmission of the first user is logged in by receiving disappear Breath, and according to the identity information for logging in second user on a second client carried in first message, obtain and the second visitor The identification information of the corresponding second server in family end, then the identification information of second server and first message are sent in message Between part, first message is transmitted to by second server according to identification information by message-oriented middleware, then by second server by first Message is sent to the second client, so as to fulfill the communication between the first client and the second client.In the present embodiment, pass through The forwarding of existing message-oriented middleware needs the message between two servers communicating in cluster, realizes logical between client Letter, it is not necessary to which two servers are directly connected to, and change the message transfer mechanism between client, it is not necessary to increase new centre Part, so as to reduce the consuming to hardware resource, solves existing by way of increasing third party's middleware, there is occupancy More hardware resources, it is of high cost the problem of.
In order to achieve the above object, fourth aspect present invention embodiment proposes a kind of message-oriented middleware, including:
Second receiving module, for receiving the first message of first server transmission and the identification information of second server, Wherein, the first message is sent to the message of the first server for the first client, and first client is in institute State the client of first server login;
Second sending module, for the identification information according to the second server, institute is sent to by the first message Second server is stated, second client is transmitted to by the second server.
The message-oriented middleware that the present embodiment proposes, by receiving first message and the second server that first server is sent Identification information, and according to the identification information of second server, the first message that the first client is sent is sent to the second clothes Business device, the second client is transmitted to by second server by first message, it is achieved thereby that the first client and the second client Between communication.In the present embodiment, needed by existing message-oriented middleware forwarding in cluster between two servers communicating Message, realize the communication between client, it is not necessary to which two servers are directly connected to, and are changed message between client and are passed Defeated mechanism, it is not necessary to increase new middleware, so as to reduce the consuming to hardware resource, solve existing by increase by the , there is the problem of more hardware resources of occupancy, of high cost in the mode of tripartite's middleware.
In order to achieve the above object, fifth aspect present invention embodiment proposes a kind of server, including memory, processor and The computer program that can be run on a memory and on a processor is stored, when the processor performs described program, is realized such as Instant communicating method described in first aspect embodiment.
In order to achieve the above object, sixth aspect present invention embodiment proposes a kind of message-oriented middleware, including memory, processing Device and storage on a memory and the computer program that can run on a processor, when the processor performs described program, reality The now instant communicating method as described in second aspect embodiment.
In order to achieve the above object, seventh aspect present invention embodiment proposes a kind of non-transitory computer-readable storage medium Matter, is stored thereon with computer program, and the Instant Messenger as described in first aspect embodiment is realized when which is executed by processor Letter method.
In order to achieve the above object, eighth aspect present invention embodiment proposes another non-transitory computer-readable storage medium Matter, is stored thereon with computer program, and the Instant Messenger as described in second aspect embodiment is realized when which is executed by processor Letter method.
In order to achieve the above object, ninth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction in machine program product is performed by processor, the instant communicating method as described in first aspect embodiment is performed.
In order to achieve the above object, tenth aspect present invention embodiment proposes a kind of computer program product, when the calculating When instruction in machine program product is performed by processor, the instant communicating method as described in second aspect embodiment is performed.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Relation schematic diagrams of the Fig. 1 between client user and instant communication server;
Fig. 2 is a kind of flow diagram of instant communicating method provided in an embodiment of the present invention;
Fig. 3 is the process schematic that server A provided in an embodiment of the present invention carries out instant communicating method with server B;
Fig. 4 is the flow diagram of another instant communicating method provided in an embodiment of the present invention;
Fig. 5 is the logon information provided in an embodiment of the present invention by broadcast queue's acquisition server and passes through unicast team Row send the schematic diagram of message;
Fig. 6 is the flow diagram of another instant communicating method provided in an embodiment of the present invention;
Fig. 7 is a kind of structure diagram of server provided in an embodiment of the present invention;
Fig. 8 is a kind of structure diagram of message-oriented middleware provided in an embodiment of the present invention;
Fig. 9 is the structure diagram of another server provided in an embodiment of the present invention.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Instant messaging is a kind of real-time communication service.In enterprise, instant messaging usually as routine office work software, it is necessary to Satisfaction height is handled up, the requirement of low latency, so instant messaging service usually requires deployment multiple servers, passes through multiple servers Cluster mode is formed, to meet the demand.Meanwhile be in instant messaging long connection between client and server, this is just The problem of being related to how communicating between client user.
For example, as shown in Figure 1, client user U1, U2, U3 respectively with instant communication server 1, instant communication server 2nd, the length of instant communication server 3 connection, it is presently mainly logical the problem of for how to communicate between client user U1, U2, U3 Cross the communication between third party's Middleware implementation server and server.But introducing third party's middleware can take more Hardware resource, increases cost.
For this problem, the embodiment of the present invention proposes a kind of instant communicating method, is disappeared by existing in group system Middleware is ceased, forwards the message between two servers for needing to communicate so that client corresponding with server can be mutual Communication, by solve it is existing by increasing third party's middleware in a manner of, exist and take more hardware resources, of high cost asks Topic.
Below with reference to the accompanying drawings the instant communicating method, server and message-oriented middleware of the embodiment of the present invention are described.
Fig. 2 is a kind of flow diagram of instant communicating method provided in an embodiment of the present invention.
As shown in Fig. 2, the instant communicating method comprises the following steps:
Step 101, first server, which receives, is logged in the first message that the first client of the first user is sent;Wherein, The identity information for logging in second user on a second client is carried in first message.
In the present embodiment, the first client is corresponding with first server, and the second client is corresponding with second server.If the One user logs in the first client, and sends message to the second user logged in the second client by the first client.This When, first message is sent to first server by the first client, and first server receives first that the first client is sent and disappears Breath.Wherein, it when the first user logs in the first client, can be logged in using account and password, cell-phone number can also be passed through Code and identifying code are logged in, or other landing approaches are logged in, and the present embodiment is without limitation.
Wherein, reception first message in need is carried in the first message that the first client is sent, logs in the second visitor The identity information of second user on the end of family, can also carry the content of communication.Wherein, the identity information of user can be that user steps on Record the account information of client.
Step 102, first server obtains the corresponding second service of the second client according to the identity information of second user The identification information of device.
After first server receives first message, according to the identity information of the second user carried in first message, from pre- In correspondence between the identity information of the second user first stored and the identification information of second server, search and the second visitor The identification information of the corresponding second server in family end.
It is understood that the identification information of second server is to refer to the mark that only table shows second server, such as The production sequence number of server, IP address of server etc..
Step 103, the identification information of second server and first message are sent to message-oriented middleware by first server, and First message is transmitted to by second server according to identification information by message-oriented middleware, the second client is transmitted to by second server End.
Since, there are message-oriented middleware, the present embodiment proposes, is forwarded by existing message-oriented middleware in group system Message between first client and the second client, avoids using third party's middleware, so as to reduce the consumption to hardware resource Take.
In specific implementation, first server can be by the unicast queue bound with oneself, by the mark of second server Information and first message are sent to message-oriented middleware.It should be noted that unicast queue here can be regarded as unicast channel.
Message-oriented middleware, can be according to second server after the identification information of second server and first message is received Identification information, by the unicast queue bound with second server, second server is transmitted to by first message.Second server After receiving first message, first message is transmitted to the second client corresponding with second server.So as to by existing Message-oriented middleware realizes the communication between client user.
As shown in figure 3, server A after first message is got, can therefrom extract the identity information of second user, And then according to the identity information of the second user, the server for determining to need to communicate is server B, and server A can be by tying up Fixed unicast queue queue_a, the first message that will be received from client corresponding with server A, is sent to message-oriented middleware. After message-oriented middleware receives first message, according to the identification information of the server B carried in first message, by with server The unicast queue queue_b of B bindings, the server B that first message is issued.First message is transmitted to corresponding by server B Client, it is achieved thereby that the communication between client corresponding with server A and server B.
In order to enable first server to get the identification information of second server, the first visitor is received in first server Before the first message that family end is sent, first server needs to obtain the logon information of second server, such as logs in and the second clothes The identity information of the user for corresponding second client of device of being engaged in, identification information of second server etc..Below by another reality Example is applied to illustrate.
As shown in figure 4, the instant communicating method comprises the following steps:
Step 401, first server passes through message-oriented middleware, each second service of the collection in state of reaching the standard grade when reaching the standard grade The log-on message of device.
In the present embodiment, the logon information of second server includes but not limited to the identification information of second server, logs in Identity information of second user on a second client etc..It is understood that the second client is opposite with second server Should.
Specifically, first server start after, i.e., first server in reach the standard grade state when, can by message-oriented middleware, The logon information of each second server in cluster of the collection in state of reaching the standard grade, so that first server can obtain each second service The identification information of device and the identity information for logging in user on a second client.
As a kind of possible implementation, first server can subscribe to broadcast queue to message-oriented middleware.First service It is when reaching the standard grade that device, which starts, and by broadcast queue, stepping on for each second server in state of reaching the standard grade is received from message-oriented middleware Record information.Here broadcast queue can be understood as broadcast channel, only have subscribed the first server of broadcast queue, just can be from The log-on message of other servers for being in state of reaching the standard grade is received in message-oriented middleware.
Wherein, the log-on message of second server is to be broadcast to by second server by the broadcast queue of subscription in message Between part.That is, only have subscribed the server of broadcast queue, the log-on message of itself can be just sent among message Part.
For example, server A, server B, server C have subscribed broadcast queue to message-oriented middleware, then in upper wire The server A of state, server B, server C can be by the broadcast queues of subscription to the respective login of message-oriented middleware broadcast transmission Information.Thus, server A also can receive server B and the login letter of server C by broadcast queue from message-oriented middleware Breath;Server B can receive server A and the log-on message of server C by broadcast queue from message-oriented middleware;Server C By broadcast queue, the log-on message of server A and server B can be received from message-oriented middleware.
In the present embodiment, first server receives each second clothes by way of subscribing to broadcast queue, from message-oriented middleware The log-on message of business device, makes the collection of log-on message more flexible.
Step 402, first server uses the log-on message of each second server in the state of reaching the standard grade, renewal to online In the information of family.
The log-on message of second server is searched for the ease of first server, first server is by the state of reaching the standard grade The log-on message of each second server, updates in online user's information.Wherein, it may include second service in online user's information The identity information of the second user logged in the identification information of device, and corresponding second client.
Step 403, first server, which receives, is logged in the first message that the first client of the first user is sent;Wherein, The identity information for logging in second user on a second client is carried in first message.
When the first user logs in the first client, and by the first client to the second user logged in the second client When sending message, first message is sent to first server by the first client, and first server receives the first client and sends First message.
Step 404, first server obtains the corresponding second service of the second client according to the identity information of second user The identification information of device.
After first server receives first message, according to the identity information of the second user carried in first message, from In online user's information of current cache, the identification information of second server corresponding with the identity information of second user is searched.
Due to server reach the standard grade or it is offline, online user's information can be influenced, for real-time update online user's information, When server reaches the standard grade or is offline, online user's information is updated.
Reaching the standard grade and method that is offline, illustrating renewal online user's information from server separately below.
Illustrated below by taking second server is offline as an example.
In group system, a master server is selected.In specific implementation, it can flexibly select, such as may be used as needed Using the minimum server of server numbering as master server, or can be using the largest number of server as master server etc..
Master server can to other servers reach the standard grade or down status is monitored.When master server monitors second When server is offline, the offline message of second server is sent to message-oriented middleware.First server by broadcast queue, from The offline message of message-oriented middleware broadcast reception second server, and according to the offline message of second server, by second service The log-on message of device, is deleted from online user's information.That is, when second server is offline, first server is by The identification information of two servers and the identity information of the user of login the second client corresponding with second server, are used from online Deleted in the information of family, so as to ensure that when second server is offline, upgrade in time online user's information.
When the second user for logging in the second client is logged off from the second client, it is also desirable to by the body of second user Part information, is deleted from online user's information of first server.Specifically, stepped on when second user is exited from the second client During record, the login exit message of second user is sent to second server by the second client.Second server receives second After the login exit message of user, by this message broadcast transmission to message-oriented middleware.First server can by broadcast queue, from The login exit message of second user is received in message-oriented middleware, and by the identity information of second user from online user's information Delete.
Below by taking first server is reached the standard grade as an example, when illustrating that first server is reached the standard grade, the online user on second server The renewal of information.
, can be by the broadcast queue of subscription, to the upper of message-oriented middleware broadcast first server when first server is reached the standard grade Line message.Specifically, after first server is reached the standard grade, when the first user logs in the first client, the first client is used first The message that family logs in is sent to first server.First server receives the log messages of the first client, wherein, log messages In carry the identity information of the first user.
After first server receives the log messages of the first client, according to the identity information and first service of the first user The identification information generation log-on message of device, and broadcast to the log-on message of first server in message by broadcast queue Between part.So as to which second server by the broadcast queue of subscription, can receive the login letter of first server from message-oriented middleware Cease, and the identification information of first server and the identity information of the first user are updated to online user's information to second server In.
Similarly, can be through the above way by the log-on message broadcast transmission of second server when second server is reached the standard grade To message-oriented middleware.First server by broadcast queue, can receive the log-on message of second server from message-oriented middleware, So that by the identity information of the identification information of second server and second user, update in online user's information.
After logging in the first client due to the first user, it may log off from the first client, therefore when first , it is necessary to which the login exit message of the first client is broadcast to message-oriented middleware when user logs off.
Specifically, when the first user logs off from the first client, the first client will log in exit message hair Give first server.Wherein, exit message is logged in log in for indicating that the first user exits from the first client.First clothes After business device receives the login exit message of the first client transmission, by this message by broadcast queue, message is broadcast to Middleware.So as to which second server can be exited and disappeared by broadcast queue from the login of message-oriented middleware the first client of reception Breath, and then the identity information of the first user is deleted from online user's information.
By the scheme of above-described embodiment, when server is reached the standard grade it is either offline when or when user logs off, in time Update online user's information on server, it is ensured that the communication between client user.
Step 405, the identification information of second server and first message are sent to message-oriented middleware by first server, and First message is transmitted to by second server according to identification information by message-oriented middleware, the second client is transmitted to by second server End.
In specific implementation, first server can be by the unicast queue bound with oneself, by the mark of second server Information and first message are sent to message-oriented middleware.It should be noted that unicast queue here can be regarded as unicast channel.
Message-oriented middleware is after the identification information of second server and first message is received, according to the mark of second server Know information, by the unicast queue bound with second server, first message is transmitted to second server.Second server connects After receiving first message, first message is transmitted to the second client corresponding with second server.So as to be disappeared by existing Cease the communication between Middleware implementation client user.
As shown in figure 5, sending message to server B with server A, server A gathers other clothes for being in state of reaching the standard grade It is engaged in exemplified by the logon information of device.Server B can be by the broadcast queue queue_Topic of subscription, by the logon information of server B Message-oriented middleware is broadcast to, other same servers that have subscribed broadcast queue queue_Topic also can be by logon information It is sent to message-oriented middleware (not shown in Fig. 5).Server A have subscribed broadcast queue queue_Topic to message-oriented middleware, that Letter can be logged in from what message-oriented middleware received other servers being online by broadcast queue queue_Topic Breath, so that server A collects the log-on message of each second server in state of reaching the standard grade, and updates and arrives online user's information In.
When server A sends message to server B, server A can be extracted therefrom after first message is got The identity information of second user, and then according to the identity information of the second user, it is logical that needs are found out from online user's information The server of letter is server B, and message-oriented middleware is transmitted the message to by the unicast queue queue_a of binding.Among message Part transmits the message to server B by the unicast queue queue_b bound with server B.So as to pass through message-oriented middleware Realize the communication between server A and server B.
The instant communicating method of the embodiment of the present invention, the first client for being logged in the first user is received by first server The first message sent is held, and is believed according to the identity for logging in second user on a second client carried in first message Breath, obtains the identification information of corresponding with the second client second server, then by the identification information of second server and first Message is sent to message-oriented middleware, and first message is transmitted to second server according to identification information by message-oriented middleware, then by First message is sent to the second client by second server, so as to fulfill logical between the first client and the second client Letter.In the present embodiment, the message between two servers for needing to communicate is forwarded by existing message-oriented middleware in cluster, it is real Communication between existing client, it is not necessary to which two servers are directly connected to, and change the message transfer mechanism between client, no Need to increase new middleware, so as to reduce the consuming to hardware resource, solve existing by increasing among third party , there is the problem of more hardware resources of occupancy, of high cost in the mode of part.
Above-described embodiment is from the instant communicating method of first server side description, describes this from message-oriented middleware side below Another instant communicating method that inventive embodiments propose.
As shown in fig. 6, the instant communicating method comprises the following steps:
Step 601, message-oriented middleware receives the first message of first server transmission and the identification information of second server.
In the present embodiment, after the first user logs in the first client, the first client sends first message to the first clothes Business device.Wherein, the identity information of second user is carried in first message, the first client is the visitor logged in first server Family end, it is corresponding with first server.After first server receives first message, second user in first message Identity information, in the online user's information being buffered in first server, searches the identification information of second server.Wherein, Online user's information includes the identification information of each second server, and logs in the identity of second user on a second client Information.
After the identification information of second server is obtained, first server can be by the unicast queue bound with itself, will The identification information of first message and second server is sent to message-oriented middleware, so that message-oriented middleware can receive first service The first message and the identification information of second server that device is sent.
Step 602, first message is sent to second service by message-oriented middleware according to the identification information of second server Device, the second client is transmitted to by second server.
Specifically, message-oriented middleware can pass through the list bound with second server according to the identification information of second server Queue is broadcast, first message is sent to second server.After second server receives first message, first message is transmitted to Second client.So as to which the message of the first client is transmitted to the second client by message-oriented middleware, realizes client Communication between user.
Further, in order to ensure the communication between client, message-oriented middleware can also gather stepping on second server Land information, sends it to first server.
Specifically, after each second server is reached the standard grade, the identity information of the second user of the second client can will be logged in, and The identification information of second server, by the broadcast queue of subscription, is sent to message-oriented middleware.So as to which message-oriented middleware can be adopted Collect the logon information on second server.Wherein, logon information includes the identification information of second server and logs in the second visitor The identity information of second user on the end of family.
For message-oriented middleware after the logon information of second server is received, message-oriented middleware can be by each second server Log-on message, be sent to first server.
In specific implementation, in the message between part by the log-on message on second server, be sent to first server it Before, receive the subscription message of first server.Wherein, message is subscribed to be used to subscribe to broadcast queue.Message-oriented middleware can receive respectively Second server is logged in letter by second server by broadcast queue, the logon information of the second server of broadcast transmission Breath, the first server that have subscribed broadcast queue is broadcast to by broadcast queue.
It is understood that the first server of broadcast queue is only have subscribed, just can be from message-oriented middleware broadcast reception Login message on second server.
After first server receives the logon information of each second server, by logon information renewal to online user's information In, so that being cached with the identification information for the second server being online and the identity of second user in first server Information.
When first server is reached the standard grade, the on-line message of first server can be broadcasted by broadcast queue, in order to message The on-line message of first server have subscribed the second server of broadcast queue by broadcast queue's broadcast transmission by middleware. It is understood that only have subscribed the second server of broadcast queue, just first server can be received from message-oriented middleware On-line message.
As a kind of possible implementation of the present embodiment, it is wide by broadcast queue that message-oriented middleware receives first server The log-on message broadcast, wherein, logon information carries the identification information of first server and the identity information of the first user, described First user is the user in the first client logged in first server.
After message-oriented middleware receives the logon information of first server, by the logon information of first server, by wide Queue is broadcast to the second server that have subscribed broadcast queue, the logon information of broadcast transmission first server.So as to second service Device updates the logon information in first server in online user's information.
In addition, after the logon information in first server is broadcast to second server, when the first client On the first user exit when logging in, it is necessary to will move out the identity information of the first user logged in from online in second server Deleted in user information.
Specifically, when the first user exits from the first client to be logged in, first server steps on exiting for the first user Land message is sent to first server.Wherein, exit login message be used for indicate the first user exit and step on from the first client Land.
First server receive the first user exit login message after, the login message that exits of the first user is passed through Broadcast queue is broadcast to message-oriented middleware.Message-oriented middleware receives the first user's that first server is broadcasted by broadcast queue Log off message, and the first user is exited into login message, be broadcast to by broadcast queue and have subscribed the of broadcast queue Two servers.So as to, second server can exit login message according to the first user, by the identity information of the first user from Deleted in line user information.
In the present embodiment, when server is reached the standard grade it is either offline when or user exit when logging in, pass through message-oriented middleware turn Photos and sending messages, realize the renewal of the online user's information cached on server.
The instant communicating method of the embodiment of the present invention, the first message of first server transmission is received by message-oriented middleware With the identification information of second server, and the identification information by message-oriented middleware according to second server, the first client is sent out The first message sent is sent to second server, and first message is transmitted to the second client by second server, so as to fulfill Communication between first client and the second client.In the present embodiment, forwarded by existing message-oriented middleware in cluster The message between two servers communicating is needed, realizes the communication between client, it is not necessary to two servers are directly connected to, Change the message transfer mechanism between client, it is not necessary to increase new middleware, so as to reduce the consumption to hardware resource Take, solve existing by way of increasing third party's middleware, exist and take more hardware resources, it is of high cost the problem of.
In order to realize above-described embodiment, the present invention also proposes a kind of server.
As shown in fig. 7, the server includes:First receiving module 710, acquisition module 720, the first sending module 730.
Wherein, the first receiving module 710 is used to receive the first message that the first client for being logged in the first user is sent; Wherein, the identity information for logging in second user on a second client is carried in first message.
Acquisition module 720 is used for the identity information according to second user, obtains the corresponding second server of the second client Identification information.
First sending module 730 is used to the identification information of second server and first message being sent to message-oriented middleware, And first message is transmitted to by second server according to the identification information by message-oriented middleware, it is transmitted to by second server Two clients.
It should be noted that the foregoing explanation to the embodiment in terms of the instant messaging that first server side describes, The server of the present embodiment is also applied for, therefore details are not described herein.
The server of the embodiment of the present invention, first that the first client transmission of the first user is logged in by receiving disappear Breath, and according to the identity information for logging in second user on a second client carried in first message, obtain and the second visitor The identification information of the corresponding second server in family end, then the identification information of second server and first message are sent in message Between part, first message is transmitted to by second server according to identification information by message-oriented middleware, then by second server by first Message is sent to the second client, so as to fulfill the communication between the first client and the second client.In the present embodiment, pass through The forwarding of existing message-oriented middleware needs the message between two servers communicating in cluster, realizes logical between client Letter, it is not necessary to which two servers are directly connected to, and change the message transfer mechanism between client, it is not necessary to increase new centre Part, so as to reduce the consuming to hardware resource, solves existing by way of increasing third party's middleware, there is occupancy More hardware resources, it is of high cost the problem of.
In order to realize above-described embodiment, the present invention also proposes a kind of message-oriented middleware.
As shown in figure 8, the message-oriented middleware includes:Second receiving module 810, the second sending module 820.
Wherein, the second receiving module 810 is used to receive the first message of first server transmission and the mark of second server Know information, wherein, first message is sent to the message of first server for the first client, and the first client is in first service The client that device logs in.
Second sending module 820 is used for the identification information according to second server, and first message is sent to second service Device, the second client is transmitted to by second server.
It should be noted that the foregoing explanation to the instant communicating method embodiment described from message-oriented middleware side, The message-oriented middleware of the present embodiment is also applied for, therefore details are not described herein.
The message-oriented middleware that the present embodiment proposes, by receiving first message and the second server that first server is sent Identification information, and according to the identification information of second server, the first message that the first client is sent is sent to the second clothes Business device, the second client is transmitted to by second server by first message, it is achieved thereby that the first client and the second client Between communication.In the present embodiment, needed by existing message-oriented middleware forwarding in cluster between two servers communicating Message, realize the communication between client, it is not necessary to which two servers are directly connected to, and are changed message between client and are passed Defeated mechanism, it is not necessary to increase new middleware, so as to reduce the consuming to hardware resource, solve existing by increase by the , there is the problem of more hardware resources of occupancy, of high cost in the mode of tripartite's middleware.
In order to realize above-described embodiment, another server of the present invention also proposition, including memory, processor and be stored in On memory and the computer program that can run on a processor, during processor executive program, realize as above-mentioned from first service Instant communicating method described in device side.
In order to realize above-described embodiment, another message-oriented middleware of the present invention also proposition, including memory, processor and deposit Storage on a memory and the computer program that can run on a processor, during processor executive program, is realized such as above-mentioned from message Instant communicating method described in middleware side.
Fig. 9 is shown suitable for being used for the block diagram for the exemplary servers for realizing the application embodiment.The service that Fig. 9 is shown Device 12 is only an example, should not bring any restrictions to the function and use scope of the embodiment of the present application.
As shown in figure 9, server 12 is showed in the form of universal computing device.The component of server 12 can be included but not It is limited to:One or more processor or processing unit 16, system storage 28, connection different system component (including system Memory 28 and processing unit 16) bus 18.
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.Lift For example, these architectures include but not limited to industry standard architecture (Industry Standard Architecture;Hereinafter referred to as:ISA) bus, microchannel architecture (Micro Channel Architecture;Below Referred to as:MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards Association;Hereinafter referred to as:VESA) local bus and periphery component interconnection (Peripheral Component Interconnection;Hereinafter referred to as:PCI) bus.
Server 12 typically comprises various computing systems computer-readable recording medium.These media can any can be serviced The usable medium that device 12 accesses, including volatile and non-volatile medium, moveable and immovable medium.
Memory 28 can include the computer system readable media of form of volatile memory, such as random access memory Device (Random Access Memory;Hereinafter referred to as:RAM) 30 and/or cache memory 32.Server 12 can be into one Step includes other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, store System 34 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 9 is not shown, is commonly referred to as " hard disk drive "). Although not shown in Fig. 9, can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, And to removable anonvolatile optical disk (such as:Compact disc read-only memory (Compact Disc Read Only Memory;With Lower abbreviation:CD-ROM), digital multi read-only optical disc (Digital Video Disc Read Only Memory;Following letter Claim:DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driver can pass through one A or multiple data media interfaces are connected with bus 18.Memory 28 can include at least one program product, program production Product have one group of (for example, at least one) program module, these program modules are configured to perform the work(of each embodiment of the application Energy.
Program/utility 40 with one group of (at least one) program module 42, can be stored in such as memory 28 In, such program module 42 include but not limited to operating system, one or more application program, other program modules and Routine data, may include the realization of network environment in each or certain combination in these examples.Program module 42 is usual Perform the function and/or method in embodiments described herein.
Server 12 can also be logical with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.) Letter, can also enable a user to the equipment communication interacted with the server 12 with one or more, and/or with causing the server 12 any equipment (such as network interface card, the modem etc.) communications that can be communicated with one or more of the other computing device. This communication can be carried out by input/output (I/O) interface 22.Also, server 12 can also pass through network adapter 20 With one or more network (such as LAN (Local Area Network;Hereinafter referred to as:LAN), wide area network (Wide Area Network;Hereinafter referred to as:WAN) and/or public network, for example, internet) communication.As shown in the figure, network adapter 20 Communicated by bus 18 with other modules of server 12.It should be understood that although not shown in the drawings, can combine server 12 makes With other hardware and/or software module, include but not limited to:Microcode, device driver, redundant processing unit, external disk Drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, thus perform various functions application and Data processing, such as realize the method referred in previous embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Computer program is contained, is realized when which is executed by processor such as the foregoing instant messaging side from as described in first server side Method.
In order to realize above-described embodiment, the present invention also proposes another non-transitorycomputer readable storage medium, thereon Computer program is stored with, is realized when which is executed by processor such as the foregoing instant messaging side from as described in message-oriented middleware side Method.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature Close and combine.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

  1. A kind of 1. instant communicating method, it is characterised in that including:
    First server, which receives, is logged in the first message that the first client of the first user is sent;Wherein, the first message In carry the identity information for logging in second user on a second client;
    The first server obtains the corresponding second service of second client according to the identity information of the second user The identification information of device;
    The identification information of the second server and the first message are sent to message-oriented middleware by the first server, and The first message is transmitted to by the second server according to the identification information by the message-oriented middleware, by described second Server is transmitted to second client.
  2. 2. according to the method described in claim 1, it is characterized in that, the first server, which receives, is logged in the of the first user Before the first message that one client is sent, further include:
    The first server is in each second server for state of reaching the standard grade when reaching the standard grade by the message-oriented middleware, collection Log-on message;Wherein, the log-on message of the second server includes the identification information of the second server and logs in institute State the identity information of the second user in the second client;
    The first server believes the log-on message of each second server in state of reaching the standard grade, renewal to online user In breath.
  3. 3. according to the method described in claim 2, it is characterized in that, the first server when reaching the standard grade by the message Between part, collection in reach the standard grade state each second server log-on message, including:
    The first server subscribes to broadcast queue to the message-oriented middleware;
    The first server, by the broadcast queue, receives described in upper when reaching the standard grade from the message-oriented middleware The log-on message of each second server of wire state;Wherein, the log-on message of the second server is by the second service Device is broadcast to the message-oriented middleware by the broadcast queue of subscription.
  4. 4. according to the method described in claim 3, it is characterized in that, further include:
    The first server is received and disappeared by the offline of the second server of master server broadcast by the broadcast queue Breath;Wherein, the offline message by the master server monitor the second server it is offline when send;
    The first server believes the login of the second server according to the offline message of the second server Breath, is deleted from online user's information.
  5. 5. according to the method described in claim 3, it is characterized in that, further include:
    The first server broadcasts the first server when reaching the standard grade, by the broadcast queue to the message-oriented middleware On-line message.
  6. 6. according to the method described in claim 5, it is characterized in that, the first server when reaching the standard grade, passes through the broadcast The on-line message of the first server is broadcasted in queue to the message-oriented middleware, including:
    After the first server is reached the standard grade, the log messages of first client are received;Wherein, carried in the log messages The identity information of first user;
    The first server generates institute using the identity information of first user and the identification information of the first server Log-on message is stated, and broadcasts the log-on message of the first server to the message-oriented middleware by the broadcast queue.
  7. A kind of 7. instant communicating method, it is characterised in that including:
    Message-oriented middleware receives the identification information of the first message that first server sends and second server, wherein, described the One message is sent to the message of the first server for the first client, and first client is in the first server The client of login;
    The first message is sent to second clothes by the message-oriented middleware according to the identification information of the second server Business device, the second client is transmitted to by the second server.
  8. 8. the method according to the description of claim 7 is characterized in that further include:
    Log-on message on the message-oriented middleware collection second server;Wherein, the log-on message bag of the second server Include the identification information of the second server and log in the identity information of the second user in second client;
    Log-on message on each second server is sent to the first server by the message-oriented middleware.
  9. A kind of 9. server, it is characterised in that including:
    First receiving module, the first message that the first client of the first user is sent is logged in for receiving;Wherein, described The identity information for logging in second user on a second client is carried in one message;
    Acquisition module, for the identity information according to the second user, obtains the corresponding second service of second client The identification information of device;
    First sending module, for the identification information of the second server and the first message to be sent among message Part, and the first message is transmitted to by the second server according to the identification information by the message-oriented middleware, by institute State second server and be transmitted to second client.
  10. A kind of 10. message-oriented middleware, it is characterised in that including:
    Second receiving module, for receiving the first message of first server transmission and the identification information of second server, wherein, The first message is sent to the message of the first server for the first client, and first client is described first The client of server log;
    Second sending module, for the identification information according to the second server, described is sent to by the first message Two servers, second client is transmitted to by the second server.
CN201711066521.7A 2017-11-02 2017-11-02 Instant communicating method, server and message-oriented middleware Pending CN108023807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711066521.7A CN108023807A (en) 2017-11-02 2017-11-02 Instant communicating method, server and message-oriented middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711066521.7A CN108023807A (en) 2017-11-02 2017-11-02 Instant communicating method, server and message-oriented middleware

Publications (1)

Publication Number Publication Date
CN108023807A true CN108023807A (en) 2018-05-11

Family

ID=62080440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711066521.7A Pending CN108023807A (en) 2017-11-02 2017-11-02 Instant communicating method, server and message-oriented middleware

Country Status (1)

Country Link
CN (1) CN108023807A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933439A (en) * 2019-02-21 2019-06-25 深圳市珍爱捷云信息技术有限公司 Method for message transmission, device, computer equipment and storage medium
CN111049753A (en) * 2019-12-18 2020-04-21 网易(杭州)网络有限公司 Message sending method and device, electronic equipment and computer readable medium
CN111565209A (en) * 2019-08-29 2020-08-21 杭州天宽科技有限公司 Client instant messaging method, device, equipment and medium
CN111726281A (en) * 2020-06-03 2020-09-29 香港乐蜜有限公司 Instant message transmission method and device, electronic equipment and storage medium
CN111726280A (en) * 2020-06-03 2020-09-29 香港乐蜜有限公司 Instant message transmission method and device, electronic equipment and storage medium
CN113810264A (en) * 2021-01-15 2021-12-17 北京京东拓先科技有限公司 Information transmission method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717133A (en) * 2015-03-16 2015-06-17 墨仕(厦门)电子商务有限公司 Distributed message push system and method
CN104836723A (en) * 2015-03-31 2015-08-12 青岛海尔智能家电科技有限公司 Communication method based on MQTT topic subscription mechanism and access gateway
CN107231290A (en) * 2017-04-19 2017-10-03 中国建设银行股份有限公司 A kind of instant communicating method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717133A (en) * 2015-03-16 2015-06-17 墨仕(厦门)电子商务有限公司 Distributed message push system and method
CN104836723A (en) * 2015-03-31 2015-08-12 青岛海尔智能家电科技有限公司 Communication method based on MQTT topic subscription mechanism and access gateway
CN107231290A (en) * 2017-04-19 2017-10-03 中国建设银行股份有限公司 A kind of instant communicating method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933439A (en) * 2019-02-21 2019-06-25 深圳市珍爱捷云信息技术有限公司 Method for message transmission, device, computer equipment and storage medium
CN111565209A (en) * 2019-08-29 2020-08-21 杭州天宽科技有限公司 Client instant messaging method, device, equipment and medium
CN111049753A (en) * 2019-12-18 2020-04-21 网易(杭州)网络有限公司 Message sending method and device, electronic equipment and computer readable medium
CN111049753B (en) * 2019-12-18 2023-05-12 网易(杭州)网络有限公司 Message sending method and device, electronic equipment and computer readable medium
CN111726281A (en) * 2020-06-03 2020-09-29 香港乐蜜有限公司 Instant message transmission method and device, electronic equipment and storage medium
CN111726280A (en) * 2020-06-03 2020-09-29 香港乐蜜有限公司 Instant message transmission method and device, electronic equipment and storage medium
CN113810264A (en) * 2021-01-15 2021-12-17 北京京东拓先科技有限公司 Information transmission method and device, electronic equipment and storage medium
CN113810264B (en) * 2021-01-15 2023-09-05 北京京东拓先科技有限公司 Information transmission method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108023807A (en) Instant communicating method, server and message-oriented middleware
CN102150443B (en) System and methods for communication between instant message users and short message service users
KR101626474B1 (en) Apparatus for providing document sharing service based messenger and method using the same
JP7219296B2 (en) Server, system, user terminal, method and program for messaging service
CN108108998A (en) Showing advertisement method and apparatus, server, storage medium
CN108174248A (en) Video broadcasting method, video playing control method, device and storage medium
CN107645561A (en) A kind of preview picture method of cloud mobile phone
CN102685101B (en) Agent communication on social networkies
CN101883057A (en) Method and device for realizing instant messaging among multiple members in instant messaging group
CN103098042A (en) System and method for social collection
CN102591597A (en) Information processing apparatus, method for controlling the same
CN101159714A (en) Instant communication method, device and cluster server
CN106790572A (en) The system and method that a kind of distributed information log is collected
CN108346066A (en) Advertisement sending method, device, server and storage medium
CN108574618A (en) Pushed information methods of exhibiting and device based on social networks chain
RU2500077C2 (en) Method, server, client and instant messaging system
CN101163117A (en) Packet management method, packet resource sharing method and instant communication equipment
CN108989240A (en) Method for controlling network flow, device, terminal device and storage medium
CN111277483B (en) Multi-terminal message synchronization method, server and storage medium
CN106254216A (en) The control method of message and device in instant communication client
CN108563469A (en) page loading method, device, storage medium and terminal device
CN110287146A (en) Using the method, equipment and computer storage medium of downloading
US20120203855A1 (en) Message system for social networks
JP7182467B2 (en) Method and system for selectively adapting and transmitting message data
CN102761616B (en) Browser browse mode based on immediate service provides system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180511