CN105187555B - A kind of message treatment method, apparatus and system - Google Patents

A kind of message treatment method, apparatus and system Download PDF

Info

Publication number
CN105187555B
CN105187555B CN201510632550.XA CN201510632550A CN105187555B CN 105187555 B CN105187555 B CN 105187555B CN 201510632550 A CN201510632550 A CN 201510632550A CN 105187555 B CN105187555 B CN 105187555B
Authority
CN
China
Prior art keywords
message
node
information
metadata
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510632550.XA
Other languages
Chinese (zh)
Other versions
CN105187555A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510632550.XA priority Critical patent/CN105187555B/en
Publication of CN105187555A publication Critical patent/CN105187555A/en
Application granted granted Critical
Publication of CN105187555B publication Critical patent/CN105187555B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata

Abstract

A kind of message treatment method provided in an embodiment of the present invention, apparatus and system, applied to client, host node in the client and message system communicates to connect, the message system includes at least a host node and multiple information nodes, and the information node is used to provide message handling services for different tenants.Method includes: the metadata query request sent to the host node for message to be processed;Receive the metadata information of the message to be processed of host node feedback, wherein include in the metadata information: for providing the mark of the information node of message handling services for the corresponding tenant of the message to be processed;According to the mark for the information node for including in the metadata information, Message handling request is sent to the corresponding information node of the mark, so that the information node carries out Message Processing according to the Message handling request.The safety of message system is improved in the case where guaranteeing that the message system can support multi-tenant using the embodiment of the present invention.

Description

A kind of message treatment method, apparatus and system
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of message treatment method, apparatus and system.
Background technique
Message, is the bridge in system and system communication, and message system can carry out transmitting-receiving and storage processing to message.Mesh Before, message system commonly used in the trade can be roughly divided into two kinds: (1) with the system of high reliability and consistency, such as: ActiveMQ;(2) with the system of expansibility, such as: Kafka.
In the prior art, such a message system is provided, message can be provided in the message system for multiple tenants Processing service, the message system belong to the mode of node equity for system architecture, that is to say, that complete in the message system Portion's message queue is all visible information node corresponding to each of network tenant.
The message in this message system provided in the prior art corresponding to each of network tenant for disappearing Breath node is all visible, i.e., message is visible for different tenants, it is clear that is set to different tenants same Message system is unsafe.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of message treatment method, apparatus and system, with realize support it is more In the case where tenant, the safety of message system is improved.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of message treatment methods, are applied to client, the visitor Host node in family end and message system communicates to connect, and the message system includes at least a host node and multiple message sections Point, the information node are used to provide message handling services for different tenants, which comprises
The metadata query request for message to be processed is sent to the host node;
Receive the metadata information of the message to be processed of the host node feedback, wherein include in the metadata information: For providing the mark of the information node of message handling services for the corresponding tenant of the message to be processed;
According to the mark for the information node for including in the metadata information, disappear to the corresponding information node transmission of the mark Breath processing request, so that the information node carries out Message Processing according to the Message handling request.
Preferably,
In the message system further include: metadata node, wherein the metadata node is used to store first number of message It is believed that breath;
The metadata information of the message to be processed of the host node feedback are as follows: the host node turns to the metadata node After request of sending out metadata query described, what the metadata node requested to feed back to the host node according to the metadata query Metadata information.
Preferably, also including in the metadata information: the Message Processing condition of the message to be processed;
The corresponding information node of the mark for the information node for including in the metadata information is in the following manner according to institute It states Message handling request and carries out Message Processing:
The corresponding information node of the mark for the information node for including in the metadata information detects whether its own meets The Message Processing condition for the message to be processed for including in the Message handling request;
If satisfied, then carrying out Message Processing for the message to be processed.
Preferably,
The corresponding information node of the mark for the information node for including in the metadata information is in the following manner according to institute It states Message handling request and carries out Message Processing:
The corresponding information node of the mark for the information node for including in the metadata information is to the Message handling request It is parsed, and verifies whether its own has the permission for handling the message to be processed according to parsing result;
If having, Message Processing is carried out for the message to be processed.
Preferably, described carry out Message Processing for the message to be processed, comprising:
The operating status for detecting itself carries out at message according to the operating status detected for the message to be processed Reason.
Preferably, the corresponding information node of the mark for the information node for including in the metadata information is according to the message Processing request carries out Message Processing, comprising:
In the case where the Message handling request is to write message request, the information node that includes in the metadata information The corresponding information node of mark the message content of the message to be processed is stored in the corresponding memory space of the information node In;
In the case where the Message handling request is to read message request, the information node that includes in the metadata information The corresponding information node of mark the message content of the message to be processed is read from its corresponding memory space, and will be described The message content of message to be processed is sent to the client.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of message processing apparatus, are applied to client, the visitor Host node in family end and message system communicates to connect, and the message system includes at least a host node and multiple message sections Point, the information node are used to provide message handling services for different tenants, and described device includes:
Inquiry request module, for sending the metadata query request for message to be processed to the host node;
Information receiving module, the metadata information of the message to be processed for receiving the host node feedback, wherein described Include in metadata information: for providing the mark of the information node of message handling services for the corresponding tenant of the message to be processed Know;
Message processing module, for the mark according to the information node for including in the metadata information, to the mark pair The information node answered sends Message handling request, so that the information node carries out at message according to the Message handling request Reason.
Preferably,
In the message system further include: metadata node, wherein the metadata node is used to store first number of message It is believed that breath;
The metadata information of the message to be processed of the host node feedback are as follows: the host node turns to the metadata node After request of sending out metadata query described, what the metadata node requested to feed back to the host node according to the metadata query Metadata information.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of message system, the system comprises: at least one master Node and multiple information nodes;
The host node, connect with client communication, receives first number for message to be processed that the client is sent According to inquiry request, and to the metadata information of message to be processed described in the client feedback;Wherein, in the metadata information Include: for providing the mark of the information node of message handling services for the corresponding tenant of the message to be processed;
The information node receives the message that the client is sent for providing message handling services for different tenants Processing request, and Message Processing is carried out according to the Message handling request.
Preferably, also including in the metadata information: the Message Processing condition of the message to be processed;
Whether the information node meets include in the Message handling request described to be processed for detecting its own The Message Processing condition of message;If satisfied, then carrying out Message Processing for the message to be processed.
Preferably, the information node, for parsing to the Message handling request, and is verified according to parsing result Whether its own has the permission for handling the message to be processed;If having, Message Processing is carried out for the message to be processed.
Preferably, the information node, for detecting itself operating status, institute is directed to according to the operating status detected It states message to be processed and carries out Message Processing.
Preferably,
The information node, for the Message handling request be write message request in the case where, will be described to be processed The message content of message is stored in the corresponding memory space of the information node;
The information node is also used in the case where the Message handling request is reads message request, corresponding from it It reads the message content of the message to be processed in memory space, and the message content of the message to be processed is sent to described Client.
Message treatment method provided in an embodiment of the present invention, apparatus and system, can be in client and message system In the case that host node communicates to connect, the metadata query request of message to be processed is sent to host node, and according to receiving The metadata information of the message of host node feedback sends Message handling request to information node, asks so that receiving Message Processing The information node asked is able to carry out Message Processing.As above-mentioned message metadata information in comprising for for corresponding to the message Tenant provide message handling services information node mark, and client to information node send Message handling request when It waits and is only sent to the corresponding information node of the mark, that is to say, that above-mentioned message to be processed is only to the message determined by the mark Node is visible, and for other information nodes in the message system, the message be it is sightless, therefore, using this The scheme that inventive embodiments provide carries out Message Processing, in the case where guaranteeing that the message system can support multi-tenant, improves The safety of message system.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of message treatment method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of message processing apparatus provided in an embodiment of the present invention;
Fig. 3 is a kind of configuration diagram of message system provided in an embodiment of the present invention;
Fig. 4 is the configuration diagram of another message system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It should be noted that " tenant " mentioned in the present invention refers to the user of the message system, for example, iqiyi.com can To be referred to as a tenant, Tencent can also be referred to as tenant, etc..In general, tenant is not intended to its institute in message system Corresponding message data to other tenants as it can be seen that i.e. message system is required to realize the data isolation between different tenants, this Mainly due to the considerations of to Information Security between tenant.
Aiming at the problems existing in the prior art, the embodiment of the invention provides a kind of message treatment methods, such as Fig. 1 institute Show, which is applied to client, and the host node in the client and message system communicates to connect, above-mentioned message system System includes at least a host node and multiple information nodes, and above-mentioned information node is used to provide Message Processing clothes for different tenants Business, can specifically include following steps:
Step S101: the metadata query request for message to be processed is sent to the host node.
It should be noted that after the host node in client and message system establishes communication connection, the client needle To message to be processed, metadata query request can be sent to the host node for establishing communication connection, wherein the metadata query is asked Seek the metadata information for making host node obtain message to be processed.
Step S102: the metadata information of the message to be processed of the host node feedback is received.
Wherein, it is included at least in above-mentioned metadata information: for providing message for the corresponding tenant of the message to be processed Handle the mark of the information node of service.In practical application, for a tenant, a use can be only existed in message system In providing the information node of message handling services for the tenant, there may also be multiple for providing Message Processing clothes for the tenant The node of business.In message system there are it is multiple for provide the information node of message handling services for the tenant in the case where, The mark of the above-mentioned information node for providing message handling services for the corresponding tenant of message to be processed can be as the rent Family provides the mark of an information node in multiple information nodes of message handling services.
Further, can also include in above-mentioned metadata information: the Message Processing condition of message to be processed.It needs It is bright, Message Processing condition mentioned here, usually from the host node in message system to first number of the message to be processed It is believed that information node corresponding to the mark of information node included in breath was sent.For example, Message Processing condition can To be Message Processing condition relevant to network token, specifically, after host node sends network token to above-mentioned information node, if Above-mentioned information node can intercept and capture the network token, then it is assumed that above-mentioned information node meets Message Processing condition.Certainly, of the invention It does not need to be defined the concrete form of the Message Processing condition of above-mentioned message to be processed, any possible implementation is equal It can be applied to the present invention, those skilled in the art need according to the concrete condition in practical application to above-mentioned message Treatment conditions are configured.
Certainly, data, the historgraphic data recording etc. of description message attributes can also be included in above-mentioned metadata information.This hair Bright embodiment does not need to be defined particular content included in metadata information, in practical applications, the art Technical staff need that metadata information appropriate is arranged as the case may be.
In a specific embodiment of the invention, above-mentioned metadata information can store in message system as shown in Figure 3 In the host node of system, Fig. 3 is a kind of configuration diagram of message system provided in an embodiment of the present invention, above-mentioned host node feedback The metadata information of message to be processed can be with are as follows: the host node after receiving the metadata query request of client transmission, To the corresponding metadata information of message to be processed for being stored in host node itself of client feedback.
It in another specific embodiment of the present invention, can also include: metadata node in message system.Referring to fig. 4, For the configuration diagram of another message system provided in an embodiment of the present invention, above-mentioned metadata information be can store in such as Fig. 4 Shown in message system metadata node in.In this message system, the message to be processed of above-mentioned host node feedback Metadata information can be with are as follows: the host node is to after the forwarding metadata query request of above-mentioned metadata node, the metadata node root The metadata information fed back to the host node is requested according to the metadata query.
Step S103: according to the mark for the information node for including in the metadata information, to the corresponding message of the mark Node sends Message handling request, so that the information node carries out Message Processing according to the Message handling request.
In one embodiment of the invention, the mark for the information node for including in above-mentioned metadata information is corresponding to disappear Breath node can come to carry out Message Processing according to the Message handling request in the following manner:
(1) whether full the corresponding information node of mark for the information node for including in above-mentioned metadata information detects its own The Message Processing condition for the message to be processed for including in the foot Message handling request;
(2) if satisfied, then carrying out Message Processing for the message to be processed.
In another embodiment of the invention, the mark for the information node for including in above-mentioned metadata information is corresponding Information node can come to carry out Message Processing according to the Message handling request in the following manner:
(1) the corresponding information node of mark for the information node for including in above-mentioned metadata information asks the Message Processing It asks and is parsed, and verify whether its own has the permission for handling the message to be processed according to parsing result;
(2) if having, Message Processing is carried out for the message to be processed.
It should be noted that above two embodiment is only to illustrate, the present invention does not need to disappear to according to The specific embodiment which kind of Message Processing breath processing request carries out is defined, and those skilled in the art need root It is configured according to practical application.
Above-mentioned three kinds of specific embodiments are illustrated below by specific embodiment.
Embodiment one, corresponding to above-mentioned the first embodiment referred to:
If information node B1 corresponding to Q1 included in the metadata information for the message Q1 to be processed that customer end A 1 is sent Be identified as b1, determine that the information node for carrying out Message Processing to Q1 is B1;
It is assumed that the Message Processing condition of message to be processed included in the Message handling request are as follows: network token;
When information node B1 can intercept and capture the network token, it is believed that meet the Message Processing condition, place can be treated It manages message Q1 and carries out Message Processing.
Certainly, the present invention does not need to be defined the specific implementation of the above-mentioned Message Processing condition referred to, any Possible implementation can be applied to the present invention, herein be only to illustrate.
Embodiment two, corresponding to above-mentioned second of the embodiment referred to:
If message corresponding to Q2 included in the metadata information for the message Q2 to be processed that iqiyi.com customer end A 2 is sent Node B2's is identified as b2, determines that the information node for carrying out Message Processing to Q2 is B2;
It is assumed that information node B2 has the permission of message of the processing from wechat client;
The Message handling request for message Q2 to be processed that information node B2 can send client parses, and obtains To parsing result;
Execute the parsing result obtained after above-mentioned steps are as follows: Q2 is the message from iqiyi.com client, it is clear that message Node B2 does not have the permission of message of the processing from iqiyi.com client, then information node B2 can not carry out at message Q2 Reason.
Embodiment three, corresponding to above-mentioned second of the embodiment referred to:
If message section corresponding to Q3 included in the metadata information for the message Q3 to be processed that wechat customer end A 3 is sent Point B3's is identified as b3, determines that the information node for carrying out Message Processing to Q3 is B3;
It is assumed that information node B3 has the permission of message of the processing from wechat client;
The Message handling request for message Q3 to be processed that information node B3 can send client parses, and obtains To parsing result;
Execute the parsing result obtained after above-mentioned steps are as follows: Q3 is the message from wechat client, it is clear that message section Point B3 has the permission of message of the processing from wechat client, and information node B3 carries out Message Processing to Q3.
It should be noted that three of the above carries out the specific embodiment of Message Processing according to the Message handling request, Further increase the safety of data between different tenants.
In practical application, information node may be in different operations due to being influenced by resources such as its memory, hard disks State, so, the corresponding information node of the mark for the information node for including in above-mentioned metadata information is being directed to message to be processed When carrying out Message Processing, the operating status of itself can be first detected, is then disappeared according to the operating status detected for be processed Breath carries out Message Processing.
Wherein, the operating status of above mentioned information node may include following several situations:
(1) information node normal operation, and there is space to store the message to be processed;
(2) information node normal operation, and memory space inadequate is to store the message to be processed;
(3) information node is operating abnormally.
It should be noted that disappearing corresponding to the mark for the information node for including in the above-mentioned detection metadata information referred to The operating status of breath node is suitable for the case where writing message request.
It, can will be to be processed if the operating status detected is situation (1) in a kind of specific embodiment of the invention Message is written in memory space corresponding to the information node;
In another specific embodiment of the invention, if the operating status detected is situation (2) or (3), it is believed that Information node corresponding to the mark of information node included in the metadata information of the message to be processed, which does not have, treats place Manage the ability that message carries out Message Processing, the Message Processing for message to be processed which can send client Request is transmitted to other information nodes to handle, wherein the information node and other information nodes are for being to be processed Message corresponding tenant provide the information node of message handling services.Further, the message sent for receiving client Processing request and the information node for not having message handling ability can also send one not to the host node in the message system Have the feedback signal of processing capacity, so that host node is according to the feedback signal, to the metadata information of the message to be processed into Row updates, to guarantee that client obtains the accuracy of the metadata information of message to be processed from host node again.
It should be noted that the operating status that above two basis detects carries out Message Processing for message to be processed Specific embodiment is only to illustrate, and the present invention does not need to carry out which kind of Message Processing is specifically limited to according to operating status Fixed, those skilled in the art need to be configured according to the concrete condition in practical application, any possible realization side Formula can be applied to the present invention.
Further, the corresponding information node of mark for the information node for including in above-mentioned metadata information according to message at Reason request carries out Message Processing, may include following two situation:
Situation one: in the case where the Message handling request is to write message request, include in the metadata information It is corresponding that the message content of the message to be processed is stored in the information node by the corresponding information node of mark of information node In memory space;
Situation two: in the case where the Message handling request is to read message request, include in the metadata information The corresponding information node of mark of information node reads the message content of the message to be processed from its corresponding memory space, And the message content of the message to be processed is sent to the client.
Using the embodiment of the present invention, can in the case where the host node in client and message system communicates to connect, to Host node sends the metadata query request of message to be processed, and the metadata of the message according to the host node feedback received Information sends Message handling request to information node, so that the information node for receiving Message handling request is able to carry out at message Reason.As above-mentioned message metadata information in comprising for for tenant corresponding to the message providing disappearing for message handling services Cease node mark, and client to information node send Message handling request when only to the corresponding message section of the mark Point is sent, that is to say, that and above-mentioned message to be processed is only visible the information node determined by the mark, and for the message In system for other information nodes, the message be it is sightless, therefore, guarantee the message system can support multi-tenant In the case of, improve the safety of message system.
Aiming at the problems existing in the prior art, the embodiment of the invention provides a kind of message processing apparatus, such as Fig. 2 institute Show, which is applied to client, and the host node in the client and message system communicates to connect, above-mentioned message system System includes at least a host node and multiple information nodes, and above-mentioned information node is used to provide Message Processing clothes for different tenants Business, can specifically include:
Inquiry request module 210, for sending the metadata query request for message to be processed to the host node.
Information receiving module 220, the metadata information of the message to be processed for receiving the host node feedback.
Wherein, it may include in above-mentioned metadata information: for providing message for the corresponding tenant of the message to be processed Handle the mark of the information node of service.
Message processing module 230, for the mark according to the information node for including in the metadata information, to the mark Corresponding information node sends Message handling request, so that the information node carries out at message according to the Message handling request Reason.
In a specific embodiment of the invention, referring to such as Fig. 4, for another message system provided in an embodiment of the present invention The configuration diagram of system can also include: metadata node in the message system.
Wherein, above-mentioned metadata node is used to store the metadata information of message.
The metadata information of the message to be processed of above-mentioned host node feedback can be with are as follows: the host node is to above-mentioned metadata node After forwarding metadata query request, which requests the metadata fed back to the host node to be believed according to the metadata query Breath.
Using the embodiment of the present invention, can in the case where the host node in client and message system communicates to connect, to Host node sends the metadata query request of message to be processed, and the metadata of the message according to the host node feedback received Information sends Message handling request to information node, so that the information node for receiving Message handling request is able to carry out at message Reason.As above-mentioned message metadata information in comprising for for tenant corresponding to the message providing disappearing for message handling services Cease node mark, and client to information node send Message handling request when only to the corresponding message section of the mark Point is sent, that is to say, that and above-mentioned message to be processed is only visible the information node determined by the mark, and for the message In system for other information nodes, the message be it is sightless, therefore, guarantee the message system can support multi-tenant In the case of, improve the safety of message system.
Aiming at the problems existing in the prior art, the embodiment of the invention provides a kind of message systems, as shown in figure 3, should Including at least a host node and multiple information nodes, can specifically include:
Host node is connect with client communication, is received the metadata for message to be processed that the client is sent and is looked into Request is ask, and to the metadata information of message to be processed described in the client feedback.
Wherein, it may include in above-mentioned metadata information: for providing message for the corresponding tenant of the message to be processed Handle the mark of the information node of service.
Information node receives the Message Processing that the client is sent for providing message handling services for different tenants Request, and Message Processing is carried out according to the Message handling request.
Further, can also include in above-mentioned metadata information: the Message Processing condition of above-mentioned message to be processed.
Specifically, information node, whether meet in the Message handling request for detecting its own include described in Handle the Message Processing condition of message;If satisfied, then carrying out Message Processing for the message to be processed.
Specifically, information node, verifies it certainly for parsing to the Message handling request, and according to parsing result Whether body has the permission for handling the message to be processed;If having, Message Processing is carried out for the message to be processed.
Specifically, information node, for detecting itself operating status, according to the operating status detected for it is described to It handles message and carries out Message Processing.
Specifically, information node, in the case where the Message handling request is to write message request, by described wait locate The message content of reason message is stored in the corresponding memory space of the information node;
Specifically, information node, is also used in the case where the Message handling request is reads message request, it is corresponding from it Memory space in read the message content of the message to be processed, and the message content of the message to be processed is sent to institute State client.
Using the embodiment of the present invention, can in the case where the host node in client and message system communicates to connect, to Host node sends the metadata query request of message to be processed, and the metadata of the message according to the host node feedback received Information sends Message handling request to information node, so that the information node for receiving Message handling request is able to carry out at message Reason.As above-mentioned message metadata information in comprising for for tenant corresponding to the message providing disappearing for message handling services Cease node mark, and client to information node send Message handling request when only to the corresponding message section of the mark Point is sent, that is to say, that and above-mentioned message to be processed is only visible the information node determined by the mark, and for the message In system for other information nodes, the message be it is sightless, therefore, guarantee the message system can support multi-tenant In the case of, improve the safety of message system.
For system or Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (13)

1. a kind of message treatment method is applied to client, which is characterized in that the host node in the client and message system Communication connection, the message system include at least a host node and multiple information nodes, and the information node is used for as difference Tenant provides message handling services, which comprises
The metadata query request for message to be processed is sent to the host node;
Receive the metadata information of the message to be processed of the host node feedback, wherein include in the metadata information: being used for The mark of the information node of message handling services is provided for the corresponding tenant of the message to be processed;
According to the mark for the information node for including in the metadata information, sent at message to the corresponding information node of the mark Reason request, so that the information node carries out Message Processing according to the Message handling request.
2. the method according to claim 1, wherein
In the message system further include: metadata node, wherein the metadata node is used to store the metadata letter of message Breath;
The metadata information of the message to be processed of the host node feedback are as follows: the host node forwards institute to the metadata node After stating metadata query request, the metadata node requests the first number fed back to the host node according to the metadata query It is believed that breath.
3. the method according to claim 1, wherein also including in the metadata information: described to be processed to disappear The Message Processing condition of breath;
The corresponding information node of the mark for the information node for including in the metadata information disappears according in the following manner Breath processing request carries out Message Processing:
The corresponding information node of the mark for the information node for including in the metadata information detect its own whether meet it is described The Message Processing condition for the message to be processed for including in Message handling request;
If satisfied, then carrying out Message Processing for the message to be processed.
4. the method according to claim 1, wherein
The corresponding information node of the mark for the information node for including in the metadata information disappears according in the following manner Breath processing request carries out Message Processing:
The corresponding information node of the mark for the information node for including in the metadata information carries out the Message handling request Parsing, and verify whether its own has the permission for handling the message to be processed according to parsing result;
If having, Message Processing is carried out for the message to be processed.
5. according to the method described in claim 4, it is characterized in that, described carry out Message Processing for the message to be processed, Include:
The operating status for detecting itself carries out Message Processing for the message to be processed according to the operating status detected.
6. the method according to claim 1, wherein the mark for the information node for including in the metadata information Corresponding information node carries out Message Processing according to the Message handling request, comprising:
In the case where the Message handling request is to write message request, the mark for the information node for including in the metadata information Know corresponding information node the message content of the message to be processed is stored in the corresponding memory space of the information node;
In the case where the Message handling request is to read message request, the mark for the information node for including in the metadata information Know the message content that corresponding information node reads the message to be processed from its corresponding memory space, and by described wait locate The message content of reason message is sent to the client.
7. a kind of message processing apparatus is applied to client, which is characterized in that the host node in the client and message system Communication connection, the message system include at least a host node and multiple information nodes, and the information node is used for as difference Tenant provides message handling services, and described device includes:
Inquiry request module, for sending the metadata query request for message to be processed to the host node;
Information receiving module, the metadata information of the message to be processed for receiving the host node feedback, wherein the member number It is believed that including in breath: for providing the mark of the information node of message handling services for the corresponding tenant of the message to be processed;
Message processing module, it is corresponding to the mark for the mark according to the information node for including in the metadata information Information node sends Message handling request, so that the information node carries out Message Processing according to the Message handling request.
8. device according to claim 7, which is characterized in that
In the message system further include: metadata node, wherein the metadata node is used to store the metadata letter of message Breath;
The metadata information of the message to be processed of the host node feedback are as follows: the host node forwards institute to the metadata node After stating metadata query request, the metadata node requests the first number fed back to the host node according to the metadata query It is believed that breath.
9. a kind of message system, which is characterized in that the system comprises: at least one host node and multiple information nodes;
The host node, connect with client communication, receives the metadata for message to be processed that the client is sent and looks into Request is ask, and to the metadata information of message to be processed described in the client feedback;Wherein, it is wrapped in the metadata information Contain: for providing the mark of the information node of message handling services for the corresponding tenant of the message to be processed;
The information node receives the Message Processing that the client is sent for providing message handling services for different tenants Request, and Message Processing is carried out according to the Message handling request.
10. system according to claim 9, which is characterized in that also include in the metadata information: described to be processed to disappear The Message Processing condition of breath;
Whether the information node meets the message to be processed for including in the Message handling request for detecting its own Message Processing condition;If satisfied, then carrying out Message Processing for the message to be processed.
11. system according to claim 9, which is characterized in that the information node, for the Message handling request It is parsed, and verifies whether its own has the permission for handling the message to be processed according to parsing result;If having, for The message to be processed carries out Message Processing.
12. system according to claim 9, which is characterized in that the information node, for detecting itself operation shape State carries out Message Processing for the message to be processed according to the operating status detected.
13. system according to claim 9, which is characterized in that
The information node, for the Message handling request be write message request in the case where, by the message to be processed Message content be stored in the corresponding memory space of the information node;
The information node is also used in the case where the Message handling request is reads message request, from its corresponding storage The message content of the message to be processed is read in space, and the message content of the message to be processed is sent to the client End.
CN201510632550.XA 2015-09-29 2015-09-29 A kind of message treatment method, apparatus and system Active CN105187555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510632550.XA CN105187555B (en) 2015-09-29 2015-09-29 A kind of message treatment method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510632550.XA CN105187555B (en) 2015-09-29 2015-09-29 A kind of message treatment method, apparatus and system

Publications (2)

Publication Number Publication Date
CN105187555A CN105187555A (en) 2015-12-23
CN105187555B true CN105187555B (en) 2019-02-22

Family

ID=54909394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510632550.XA Active CN105187555B (en) 2015-09-29 2015-09-29 A kind of message treatment method, apparatus and system

Country Status (1)

Country Link
CN (1) CN105187555B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920144B (en) * 2017-04-11 2022-02-01 北京京东尚科信息技术有限公司 Message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668031A (en) * 2008-09-02 2010-03-10 阿里巴巴集团控股有限公司 Message processing method and message processing system
CN103259701A (en) * 2012-12-04 2013-08-21 中国科学院沈阳自动化研究所 Message bus implementation method for complex production process management system
CN103379021A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 Method and system for achieving distributed message queue
CN104092717A (en) * 2013-12-13 2014-10-08 深圳市腾讯计算机系统有限公司 Message processing method and system, message destination end device and distributed message system
CN104468337A (en) * 2014-12-24 2015-03-25 北京奇艺世纪科技有限公司 Message transmission method and device, message management center device and data centers

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594852B (en) * 2011-01-04 2016-03-30 中国移动通信集团公司 Data access method, node and system
CN104537045A (en) * 2014-12-24 2015-04-22 华为技术有限公司 Service distribution method and device based on distributive system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668031A (en) * 2008-09-02 2010-03-10 阿里巴巴集团控股有限公司 Message processing method and message processing system
CN103379021A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 Method and system for achieving distributed message queue
CN103259701A (en) * 2012-12-04 2013-08-21 中国科学院沈阳自动化研究所 Message bus implementation method for complex production process management system
CN104092717A (en) * 2013-12-13 2014-10-08 深圳市腾讯计算机系统有限公司 Message processing method and system, message destination end device and distributed message system
CN104468337A (en) * 2014-12-24 2015-03-25 北京奇艺世纪科技有限公司 Message transmission method and device, message management center device and data centers

Also Published As

Publication number Publication date
CN105187555A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
US7085954B2 (en) Storage system performing remote copying bypassing controller
US8429444B2 (en) Multipurpose storage system based upon a distributed hashing mechanism with transactional support and failover capability
US9959064B2 (en) Overlapping write detection and processing for sync replication
JP4726951B2 (en) Duplicate login detection method and system
US10599675B2 (en) Hybrid data replication
CN108289034B (en) A kind of fault discovery method and apparatus
JP7101231B2 (en) Data distribution storage method and equipment
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
CN106156126A (en) Process the data collision detection method in data task and server
CN108347459A (en) A kind of high in the clouds data quick storage method and device
US20110296311A1 (en) Identification System for Network Data Processing Systems
CN102893296B (en) Optionally control information stream in cooperative environment
US20070192405A1 (en) Assured validation for facade method invocations
CN105187555B (en) A kind of message treatment method, apparatus and system
US9722956B2 (en) Managing electronic mail for an end-user that is unavailable
CN107204897A (en) The fault detection method and system of network link
CN107911443A (en) A kind of session information processing method, device, server and readable storage medium storing program for executing
US8433877B2 (en) Storage scalability management
US8095980B2 (en) Detecting malicious behavior in data transmission of a de-duplication system
JP2009151677A (en) Storage control device, storage control program, and storage control method
US20220335016A1 (en) Management device, management method, and non-transitory computer-readable recording medium
US7512637B2 (en) Storage system and undo processing method
US8577981B2 (en) Preserving a messaging service in a highly available environment
SG194072A1 (en) Authentication information processing
CN106559439B (en) A kind of method for processing business and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant