CN105187555A - Method, device and system for message processing - Google Patents

Method, device and system for message processing Download PDF

Info

Publication number
CN105187555A
CN105187555A CN201510632550.XA CN201510632550A CN105187555A CN 105187555 A CN105187555 A CN 105187555A CN 201510632550 A CN201510632550 A CN 201510632550A CN 105187555 A CN105187555 A CN 105187555A
Authority
CN
China
Prior art keywords
message
information
node
metadata
pending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510632550.XA
Other languages
Chinese (zh)
Other versions
CN105187555B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the invention provide a method, a device and a system for message processing, which are applied to a client, the client is in communication connection with a master node of a message system, the message system at least comprises one master node and a plurality of message nodes, and the message nodes are used for providing message processing service for different lessees. The method comprises the following steps of sending a metadata query request for a to-be-processed message to the master node; receiving metadata information of the to-be-processed message, which is fed back by the master node, wherein the metadata information includes identifiers of the message nodes used for providing the message processing service for the lessees corresponding to the to-be-processed message; and sending a message processing request to the message nodes corresponding to the identifiers according to the identifiers of the message nodes, which are included in the metadata information, in order to make the message nodes carry out message processing according to the message processing request. By applying the embodiments of the invention, security of the message system is improved under the condition that the message system is guaranteed to support the lessees.

Description

A kind of message treatment method, Apparatus and system
Technical field
The present invention relates to technical field of the computer network, particularly relate to a kind of message treatment method, Apparatus and system.
Background technology
Message, be the bridge in system and system communication, message system can be received and dispatched and stores processor message.At present, conventional in the industry message system can be roughly divided into two kinds: (1) has high reliability and conforming system, such as: ActiveMQ; (2) there is the system of expansibility, such as: Kafka.
In prior art, so a kind of message system is provided, message handling services can be provided for multiple tenant in this message system, this message system is from the pattern belonging to node equity system architecture, that is, the entire message queue in this message system is visible for the information node corresponding to each tenant in network.
Message in this message system provided in prior art is visible for the information node corresponding to each tenant in network, namely for different tenants, message is all visible, obviously, it is unsafe for different tenant being arranged at same message system.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of message treatment method, Apparatus and system, to realize, when supporting many tenants, improving the fail safe of message system.
For achieving the above object, the embodiment of the invention discloses a kind of message treatment method, be applied to client, host node in described client and message system communicates to connect, described message system at least comprises a host node and multiple information node, described information node is used for providing message handling services for different tenant, and described method comprises:
The metadata query request for pending message is sent to described host node;
Receive the metadata information of the pending message of described host node feedback, wherein, comprise in described metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message;
According to the mark of the information node comprised in described metadata information, the information node to this mark correspondence sends Message handling request, carries out Message Processing to make this information node according to described Message handling request.
Preferably,
Also comprise in described message system: metadata node, wherein, described metadata node is used for the metadata information of storing message;
The metadata information of the pending message of described host node feedback is: after described host node forwards described metadata query request to described metadata node, the metadata information that described metadata node is fed back to described host node according to described metadata query request.
Preferably, also comprise in described metadata information: the Message Processing condition of described pending message;
The information node of the mark correspondence of the information node comprised in described metadata information carries out Message Processing according to described Message handling request in the following manner:
The information node of the mark correspondence of the information node comprised in described metadata information detects the Message Processing condition himself whether meeting in described Message handling request the described pending message comprised;
If meet, then carry out Message Processing for described pending message.
Preferably,
The information node of the mark correspondence of the information node comprised in described metadata information carries out Message Processing according to described Message handling request in the following manner:
The information node of the mark correspondence of the information node comprised in described metadata information is resolved described Message handling request, and himself whether has according to analysis result checking the authority processing described pending message;
If have, carry out Message Processing for described pending message.
Preferably, describedly carry out Message Processing for described pending message, comprising:
Detect the running status of self, carry out Message Processing according to the running status detected for described pending message.
Preferably, the information node of the mark correspondence of the information node comprised in described metadata information carries out Message Processing according to described Message handling request, comprising:
When described Message handling request is for writing message request, the message content of described pending message is stored in the corresponding memory space of this information node by the information node of the mark correspondence of the information node comprised in described metadata information;
When described Message handling request is for reading message request, the information node of the mark correspondence of the information node comprised in described metadata information reads the message content of described pending message from its corresponding memory space, and the message content of described pending message is sent to described client.
For achieving the above object, the embodiment of the invention discloses a kind of message processing apparatus, be applied to client, host node in described client and message system communicates to connect, described message system at least comprises a host node and multiple information node, described information node is used for providing message handling services for different tenant, and described device comprises:
Inquiry request module, for sending the metadata query request for pending message to described host node;
Information receiving module, for receiving the metadata information of the pending message of described host node feedback, wherein, comprises in described metadata information: the mark providing the information node of message handling services for the tenant corresponding for described pending message;
Message processing module, for the mark according to the information node comprised in described metadata information, the information node to this mark correspondence sends Message handling request, carries out Message Processing to make this information node according to described Message handling request.
Preferably,
Also comprise in described message system: metadata node, wherein, described metadata node is used for the metadata information of storing message;
The metadata information of the pending message of described host node feedback is: after described host node forwards described metadata query request to described metadata node, the metadata information that described metadata node is fed back to described host node according to described metadata query request.
For achieving the above object, the embodiment of the invention discloses a kind of message system, described system comprises: at least one host node and multiple information node;
Described host node, is connected with client communication, receives the metadata query request for pending message that described client sends, and to the metadata information of pending message described in described client feedback; Wherein, comprise in described metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message;
Described information node, for providing message handling services for different tenant, receiving the Message handling request that described client sends, and carrying out Message Processing according to described Message handling request.
Preferably, also comprise in described metadata information: the Message Processing condition of described pending message;
Described information node, for detecting the Message Processing condition himself whether meeting in described Message handling request the described pending message comprised; If meet, then carry out Message Processing for described pending message.
Preferably, whether described information node, for resolving described Message handling request, and himself have according to analysis result checking the authority processing described pending message; If have, carry out Message Processing for described pending message.
Preferably, described information node, for detecting the running status of self, carries out Message Processing according to the running status detected for described pending message.
Preferably,
Described information node, for when described Message handling request is for writing message request, is stored in the message content of described pending message in the corresponding memory space of this information node;
Described information node, also for when described Message handling request is for reading message request, reads the message content of described pending message, and the message content of described pending message is sent to described client from its corresponding memory space.
The message treatment method that the embodiment of the present invention provides, Apparatus and system, can the host node in client and message system when communicating to connect, the metadata query request of pending message is sent to host node, and send Message handling request according to the metadata information of this message of the host node feedback received to information node, make the information node receiving Message handling request to carry out Message Processing.The mark that the information node of message handling services is provided for the tenant corresponding to this message is comprised in metadata information due to above-mentioned message, and client only sends to the information node of this mark correspondence to information node sends Message handling request time, that is above-mentioned pending message is only visible to the information node determined by this mark, and for other information nodes in this message system, this message is sightless, therefore, the scheme that the application embodiment of the present invention provides carries out Message Processing, when ensureing that this message system can support many tenants, improve the fail safe of message system.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of a kind of message treatment method that Fig. 1 provides for the embodiment of the present invention;
The structural representation of a kind of message processing apparatus that Fig. 2 provides for the embodiment of the present invention;
The configuration diagram of a kind of message system that Fig. 3 provides for the embodiment of the present invention;
The configuration diagram of the another kind of message system that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, " tenant " mentioned in the present invention refers to the user of this message system, and such as, like that strange skill can be referred to as a tenant, Tengxun also can be referred to as a tenant, etc.Usually, in message system, tenant does not wish that the message data corresponding to it is visible to other tenants, and namely message system needs the data isolation that can realize between different tenant, and this is mainly for the consideration to the Information Security between tenant.
For problems of the prior art, embodiments provide a kind of message treatment method, as shown in Figure 1, this message treatment method is applied to client, host node in this client and message system communicates to connect, above-mentioned message system at least comprises a host node and multiple information node, and above-mentioned information node is used for providing message handling services for different tenant, specifically can comprise the following steps:
Step S101: send the metadata query request for pending message to described host node.
It should be noted that, after host node in client and message system establishes a communications link, this client is for pending message, metadata query request can be sent to the host node established a communications link, wherein, this metadata query request is provided for the metadata information that host node obtains pending message.
Step S102: the metadata information receiving the pending message of described host node feedback.
Wherein, at least comprise in above-mentioned metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message.In practical application, for a tenant, only can there is one in message system for providing the information node of message handling services for this tenant, also can exist multiple for providing the node of message handling services for this tenant.Exist in message system multiple for providing the information node of message handling services for this tenant, above-mentioned provide the mark of the information node of message handling services can be for this tenant provides the mark of an information node in multiple information nodes of message handling services for the tenant corresponding for pending message.
Further, can also comprise in above-mentioned metadata information: the Message Processing condition of pending message.It should be noted that, Message Processing condition mentioned here, the information node corresponding to the mark of the information node normally comprised in the metadata information of this pending message by the host node in message system sends.For example, Message Processing condition can be the Message Processing condition relevant to network token, concrete, after host node sends network token to above-mentioned information node, if above-mentioned information node can intercept and capture this network token, then think that above-mentioned information node meets Message Processing condition.Certainly, the present invention does not need the concrete form of the Message Processing condition to above-mentioned pending message to limit, any possible implementation all can be applied to the present invention, and those skilled in the art need to arrange above-mentioned Message Processing condition according to the concrete condition in practical application.
Certainly, the data, historgraphic data recording etc. of describing message attribute can also be comprised in above-mentioned metadata information.The embodiment of the present invention does not need the particular content to comprising in metadata information to limit, and in actual applications, those skilled in the art need to arrange suitable metadata information as the case may be.
In a kind of specific embodiment of the present invention, above-mentioned metadata information can be stored in the host node of message system as shown in Figure 3, the configuration diagram of a kind of message system that Fig. 3 provides for the embodiment of the present invention, the metadata information of the pending message of above-mentioned host node feedback can be: this host node after receiving the metadata query request that client sends, to the metadata information that the pending message being stored in host node self of client feedback is corresponding.
In another kind of specific embodiment of the present invention, can also comprise in message system: metadata node.See Fig. 4, be the configuration diagram of the another kind of message system that the embodiment of the present invention provides, above-mentioned metadata information can be stored in the metadata node of message system as shown in Figure 4.In this message system, the metadata information of the pending message of above-mentioned host node feedback can be: after this host node forwards metadata query request to above-mentioned metadata node, the metadata information that this metadata node is fed back to this host node according to this metadata query request.
Step S103: according to the mark of the information node comprised in described metadata information, the information node to this mark correspondence sends Message handling request, carries out Message Processing to make this information node according to described Message handling request.
In one embodiment of the invention, the information node of the mark correspondence of the information node comprised in above-mentioned metadata information can come to carry out Message Processing according to described Message handling request in the following manner:
(1) information node of the mark correspondence of the information node comprised in above-mentioned metadata information detects the Message Processing condition himself whether meeting in described Message handling request the described pending message comprised;
(2) if meet, then Message Processing is carried out for described pending message.
In another embodiment of the invention, the information node of the mark correspondence of the information node comprised in above-mentioned metadata information can come to carry out Message Processing according to described Message handling request in the following manner:
(1) information node of the mark correspondence of the information node comprised in above-mentioned metadata information is resolved described Message handling request, and himself whether has according to analysis result checking the authority processing described pending message;
(2) if having, Message Processing is carried out for described pending message.
It should be noted that, above-mentioned two kinds of execution modes are only citings, the present invention does not need the embodiment to carrying out which kind of Message Processing according to described Message handling request to limit, and those skilled in the art need to arrange according to practical application.
Below by specific embodiment, above-mentioned three kinds of embodiments are described.
Embodiment one, corresponding to above-mentioned the first execution mode mentioned:
If information node B1 corresponding to the Q1 comprised in the metadata information of the pending message Q1 that customer end A 1 sends is designated b1, determine that information node Q1 being carried out to Message Processing is B1;
Suppose, the Message Processing condition of the pending message comprised in this Message handling request is: network token;
When this information node B1 can intercept and capture this network token, think and meet this Message Processing condition, processing messages Q1 can be treated and carry out Message Processing.
Certainly, the present invention does not need to limit the specific implementation of the above-mentioned Message Processing condition mentioned, any possible implementation all can be applied to the present invention, is only citing herein.
Embodiment two, corresponding to the above-mentioned the second execution mode mentioned:
Information node B2 corresponding to the Q2 comprised in the metadata information of the pending message Q2 that Ruo Aiqi skill customer end A 2 sends is designated b2, determines that information node Q2 being carried out to Message Processing is B2;
Suppose, information node B2 has the authority of process from the message of micro-letter client;
Information node B2 can resolve the Message handling request for pending message Q2 that client sends, and obtains analysis result;
The analysis result obtained after performing above-mentioned steps is: Q2 comes from the message liking strange skill client, and obviously, information node B2 does not have the authority of the message processing strange skill client of regarding for oneself, then information node B2 cannot carry out Message Processing to Q2.
Embodiment three, corresponding to the above-mentioned the second execution mode mentioned:
If information node B3 corresponding to the Q3 comprised in the metadata information of the pending message Q3 that micro-letter customer end A 3 sends is designated b3, determine that information node Q3 being carried out to Message Processing is B3;
Suppose, information node B3 has the authority of process from the message of micro-letter client;
Information node B3 can resolve the Message handling request for pending message Q3 that client sends, and obtains analysis result;
The analysis result obtained after performing above-mentioned steps is: Q3 is the message coming from micro-letter client, and obviously, information node B3 has the authority of process from the message of micro-letter client, and information node B3 carries out Message Processing to Q3.
It should be noted that, above three kinds of embodiments of carrying out Message Processing according to described Message handling request, further increasing the fail safe of data between different tenant.
In practical application, information node is due to the impact by its resource such as internal memory, hard disk, different running statuses may be in, so, the information node of the mark correspondence of the information node comprised in above-mentioned metadata information is when carrying out Message Processing for pending message, first can detect the running status of self, then carry out Message Processing according to the running status detected for pending message.
Wherein, the running status of above mentioned information node, can comprise following several situation:
(1) information node normal operation, and the described pending message of storage of having living space;
(2) information node normal operation, and memory space inadequate is to store described pending message;
(3) information node operation exception.
It should be noted that, the running status of the information node corresponding to mark of the information node comprised in the above-mentioned Detection theory data message mentioned is applicable to write the situation of message request.
In a kind of embodiment of the present invention, if the running status detected is situation (1), can pending message be write in the memory space corresponding to this information node;
In another kind of embodiment of the present invention, if the running status detected is situation (2) or (3), think this pending message metadata information in the information node corresponding to mark of information node that comprises do not possess and treat the ability that processing messages carries out Message Processing, the information node that the Message handling request for pending message that client sends can be transmitted to other by this information node processes, wherein, this information node and other information nodes are the information node providing message handling services for the tenant corresponding for pending message.Further, for receiving Message handling request that client sends and the information node without message handling ability can also send the feedback signal that does not possess disposal ability to the host node in this message system, so that host node is according to this feedback signal, the metadata information of this pending message is upgraded, to ensure that client obtains the accuracy of the metadata information of pending message again from host node.
It should be noted that, the embodiment that the running status that above-mentioned two kinds of bases detect carries out Message Processing for pending message is only citing, the present invention does not need specifically to limit carrying out which kind of Message Processing according to running status, those skilled in the art need to arrange according to the concrete condition in practical application, and any possible implementation all can be applied to the present invention.
Further, the information node of the mark correspondence of the information node comprised in above-mentioned metadata information carries out Message Processing according to Message handling request, can comprise following two kinds of situations:
Situation one: when described Message handling request is for writing message request, the message content of described pending message is stored in the corresponding memory space of this information node by the information node of the mark correspondence of the information node comprised in described metadata information;
Situation two: when described Message handling request is for reading message request, the information node of the mark correspondence of the information node comprised in described metadata information reads the message content of described pending message from its corresponding memory space, and the message content of described pending message is sent to described client.
The application embodiment of the present invention, can the host node in client and message system when communicating to connect, the metadata query request of pending message is sent to host node, and send Message handling request according to the metadata information of this message of the host node feedback received to information node, make the information node receiving Message handling request to carry out Message Processing.The mark that the information node of message handling services is provided for the tenant corresponding to this message is comprised in metadata information due to above-mentioned message, and client only sends to the information node of this mark correspondence to information node sends Message handling request time, that is above-mentioned pending message is only visible to the information node determined by this mark, and for other information nodes in this message system, this message is sightless, therefore, when ensureing that this message system can support many tenants, improve the fail safe of message system.
For problems of the prior art, embodiments provide a kind of message processing apparatus, as shown in Figure 2, this message processing apparatus is applied to client, host node in this client and message system communicates to connect, above-mentioned message system at least comprises a host node and multiple information node, and above-mentioned information node is used for providing message handling services for different tenant, specifically can comprise:
Inquiry request module 210, for sending the metadata query request for pending message to described host node.
Information receiving module 220, for receiving the metadata information of the pending message of described host node feedback.
Wherein, can comprise in above-mentioned metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message.
Message processing module 230, for the mark according to the information node comprised in described metadata information, the information node to this mark correspondence sends Message handling request, carries out Message Processing to make this information node according to described Message handling request.
In a kind of specific embodiment of the present invention, see such as Fig. 4, be the configuration diagram of the another kind of message system that the embodiment of the present invention provides, can also comprise in this message system: metadata node.
Wherein, above-mentioned metadata node is used for the metadata information of storing message.
The metadata information of the pending message of above-mentioned host node feedback can be: after this host node forwards metadata query request to above-mentioned metadata node, the metadata information that this metadata node is fed back to this host node according to this metadata query request.
The application embodiment of the present invention, can the host node in client and message system when communicating to connect, the metadata query request of pending message is sent to host node, and send Message handling request according to the metadata information of this message of the host node feedback received to information node, make the information node receiving Message handling request to carry out Message Processing.The mark that the information node of message handling services is provided for the tenant corresponding to this message is comprised in metadata information due to above-mentioned message, and client only sends to the information node of this mark correspondence to information node sends Message handling request time, that is above-mentioned pending message is only visible to the information node determined by this mark, and for other information nodes in this message system, this message is sightless, therefore, when ensureing that this message system can support many tenants, improve the fail safe of message system.
For problems of the prior art, embodiments provide a kind of message system, as shown in Figure 3, this at least comprises a host node and multiple information node, specifically can comprise:
Host node, is connected with client communication, receives the metadata query request for pending message that described client sends, and to the metadata information of pending message described in described client feedback.
Wherein, can comprise in above-mentioned metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message.
Information node, for providing message handling services for different tenant, receiving the Message handling request that described client sends, and carrying out Message Processing according to described Message handling request.
Further, can also comprise in above-mentioned metadata information: the Message Processing condition of above-mentioned pending message.
Concrete, information node, for detecting the Message Processing condition himself whether meeting in described Message handling request the described pending message comprised; If meet, then carry out Message Processing for described pending message.
Concrete, whether information node, for resolving described Message handling request, and himself have according to analysis result checking the authority processing described pending message; If have, carry out Message Processing for described pending message.
Concrete, information node, for detecting the running status of self, carries out Message Processing according to the running status detected for described pending message.
Concrete, information node, for when described Message handling request is for writing message request, is stored in the message content of described pending message in the corresponding memory space of this information node;
Concrete, information node, also for when described Message handling request is for reading message request, reads the message content of described pending message, and the message content of described pending message is sent to described client from its corresponding memory space.
The application embodiment of the present invention, can the host node in client and message system when communicating to connect, the metadata query request of pending message is sent to host node, and send Message handling request according to the metadata information of this message of the host node feedback received to information node, make the information node receiving Message handling request to carry out Message Processing.The mark that the information node of message handling services is provided for the tenant corresponding to this message is comprised in metadata information due to above-mentioned message, and client only sends to the information node of this mark correspondence to information node sends Message handling request time, that is above-mentioned pending message is only visible to the information node determined by this mark, and for other information nodes in this message system, this message is sightless, therefore, when ensureing that this message system can support many tenants, improve the fail safe of message system.
For system or device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method execution mode is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (13)

1. a message treatment method, be applied to client, it is characterized in that, host node in described client and message system communicates to connect, described message system at least comprises a host node and multiple information node, described information node is used for providing message handling services for different tenant, and described method comprises:
The metadata query request for pending message is sent to described host node;
Receive the metadata information of the pending message of described host node feedback, wherein, comprise in described metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message;
According to the mark of the information node comprised in described metadata information, the information node to this mark correspondence sends Message handling request, carries out Message Processing to make this information node according to described Message handling request.
2. method according to claim 1, is characterized in that,
Also comprise in described message system: metadata node, wherein, described metadata node is used for the metadata information of storing message;
The metadata information of the pending message of described host node feedback is: after described host node forwards described metadata query request to described metadata node, the metadata information that described metadata node is fed back to described host node according to described metadata query request.
3. method according to claim 1, is characterized in that, also comprises in described metadata information: the Message Processing condition of described pending message;
The information node of the mark correspondence of the information node comprised in described metadata information carries out Message Processing according to described Message handling request in the following manner:
The information node of the mark correspondence of the information node comprised in described metadata information detects the Message Processing condition himself whether meeting in described Message handling request the described pending message comprised;
If meet, then carry out Message Processing for described pending message.
4. method according to claim 1, is characterized in that,
The information node of the mark correspondence of the information node comprised in described metadata information carries out Message Processing according to described Message handling request in the following manner:
The information node of the mark correspondence of the information node comprised in described metadata information is resolved described Message handling request, and himself whether has according to analysis result checking the authority processing described pending message;
If have, carry out Message Processing for described pending message.
5. method according to claim 4, is characterized in that, describedly carries out Message Processing for described pending message, comprising:
Detect the running status of self, carry out Message Processing according to the running status detected for described pending message.
6. method according to claim 1, is characterized in that, the information node of the mark correspondence of the information node comprised in described metadata information carries out Message Processing according to described Message handling request, comprising:
When described Message handling request is for writing message request, the message content of described pending message is stored in the corresponding memory space of this information node by the information node of the mark correspondence of the information node comprised in described metadata information;
When described Message handling request is for reading message request, the information node of the mark correspondence of the information node comprised in described metadata information reads the message content of described pending message from its corresponding memory space, and the message content of described pending message is sent to described client.
7. a message processing apparatus, be applied to client, it is characterized in that, host node in described client and message system communicates to connect, described message system at least comprises a host node and multiple information node, described information node is used for providing message handling services for different tenant, and described device comprises:
Inquiry request module, for sending the metadata query request for pending message to described host node;
Information receiving module, for receiving the metadata information of the pending message of described host node feedback, wherein, comprises in described metadata information: the mark providing the information node of message handling services for the tenant corresponding for described pending message;
Message processing module, for the mark according to the information node comprised in described metadata information, the information node to this mark correspondence sends Message handling request, carries out Message Processing to make this information node according to described Message handling request.
8. device according to claim 7, is characterized in that,
Also comprise in described message system: metadata node, wherein, described metadata node is used for the metadata information of storing message;
The metadata information of the pending message of described host node feedback is: after described host node forwards described metadata query request to described metadata node, the metadata information that described metadata node is fed back to described host node according to described metadata query request.
9. a message system, is characterized in that, described system comprises: at least one host node and multiple information node;
Described host node, is connected with client communication, receives the metadata query request for pending message that described client sends, and to the metadata information of pending message described in described client feedback; Wherein, comprise in described metadata information: the mark that the information node of message handling services is provided for the tenant corresponding for described pending message;
Described information node, for providing message handling services for different tenant, receiving the Message handling request that described client sends, and carrying out Message Processing according to described Message handling request.
10. system according to claim 9, is characterized in that, also comprises in described metadata information: the Message Processing condition of described pending message;
Described information node, for detecting the Message Processing condition himself whether meeting in described Message handling request the described pending message comprised; If meet, then carry out Message Processing for described pending message.
11. systems according to claim 9, is characterized in that, described information node, for resolving described Message handling request, and himself whether have according to analysis result checking the authority processing described pending message; If have, carry out Message Processing for described pending message.
12. systems according to claim 9, is characterized in that, described information node, for detecting the running status of self, carry out Message Processing according to the running status detected for described pending message.
13. systems according to claim 9, is characterized in that,
Described information node, for when described Message handling request is for writing message request, is stored in the message content of described pending message in the corresponding memory space of this information node;
Described information node, also for when described Message handling request is for reading message request, reads the message content of described pending message, and the message content of described pending message is sent to described client from its corresponding memory space.
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 true CN105187555A (en) 2015-12-23
CN105187555B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920144A (en) * 2017-04-11 2018-11-30 北京京东尚科信息技术有限公司 A kind of message treatment method and device

Citations (7)

* 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
CN102594852A (en) * 2011-01-04 2012-07-18 中国移动通信集团公司 Data access method, node and 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
CN104537045A (en) * 2014-12-24 2015-04-22 华为技术有限公司 Service distribution method and device based on distributive system

Patent Citations (7)

* 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
CN102594852A (en) * 2011-01-04 2012-07-18 中国移动通信集团公司 Data access method, node and 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
CN104537045A (en) * 2014-12-24 2015-04-22 华为技术有限公司 Service distribution method and device based on distributive system

Cited By (2)

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

Also Published As

Publication number Publication date
CN105187555B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN108228814B (en) Data synchronization method and device
WO2017140131A1 (en) Data writing and reading method and apparatus, and cloud storage system
US11509505B2 (en) Method and apparatus for operating smart network interface card
WO2020248658A1 (en) Abnormal account detection method and apparatus
CN101876921A (en) Method, device and system for migration decision-making of virtual machine
CN104718533A (en) Robust hardware fault management system, method and framework for enterprise devices
US10048978B2 (en) Apparatus and method for identifying a virtual machine having changeable settings
US10102088B2 (en) Cluster system, server device, cluster system management method, and computer-readable recording medium
CN114356521A (en) Task scheduling method and device, electronic equipment and storage medium
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
US10877994B2 (en) Identifier based data replication
EP2913771A1 (en) Cluster license server
CN105187555A (en) Method, device and system for message processing
CN116663071B (en) Enterprise secret-related data access management method and device, electronic equipment and medium
CN114546705B (en) Operation response method, operation response device, electronic apparatus, and storage medium
CN107124438B (en) Method and device for dynamically accessing storage equipment in cloud storage system
CN111966993B (en) Equipment identification code identification and generation algorithm test method, device, equipment and medium
US10291700B2 (en) Network optimized scan with dynamic fallback recovery
JP2020038506A (en) Information processing system, information processing method, and program
JP2007317028A (en) Information processing apparatus, database management system, method for controlling information processing apparatus, and program
JP5679347B2 (en) Failure detection device, failure detection method, and program
US9667649B1 (en) Detecting man-in-the-middle and denial-of-service attacks
US20150310449A1 (en) Management system and control method
KR101545010B1 (en) Distributed file system and method for performing for distributed file system
US9184996B2 (en) Thin client system, management server, client environment management method and program

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