[rabbitmq-discuss] help required: bind function
abdullahsaima at yahoo.com
Tue Jan 31 22:23:47 GMT 2012
I am student , and my supervisor and I have chosen to implement and study it at very simpler level. my classes are not refined. There is one class "message" which has a routing key.
I need your help how can I write Bind() function for this. How can exchanges and queues are already have relation, before sending messages by publisher. My program wants to send messgae to exchange and then exchanges routes to queues, But how can I do this in C++. means I am not understanding logic. you all are experts and having a good conversation while I am at very initial level of understanding. if you can help me in writing my code.
From: Jerry Kuch <jerryk at vmware.com>
To: Saima Asif <abdullahsaima at yahoo.com>
Cc: rabbitmq-discuss at lists.rabbitmq.com
Sent: Tuesday, 31 January 2012, 22:12
Subject: Re: [rabbitmq-discuss] help required: bind function
To address some of your questions.
A producer publishes *to* an exchange. It's a decision a producer makes
when publishing, much as you might decide which mailbox you plant to drop
you post card in while you're on vacation.
A queue is *bound* to an exchange. Depending on the type of the exchange,
certain rules, and the properties of the message, determine whether or not
a given message follows that binding into a particular destination queue.
Think of the action is being like that of the postal worker, who pulls your
postcard from the mailbox, looks at it, and determines where to take it.
How a routing key is interpreted depends on the exchange type in this context.
I'm not sure what you mean by having implemented classes for exchanges, and queues.
Are you writing an AMQP client that you intend to use with someone else's broker?
Or are you wrapping these entities up in some way that is convenient for the needs
of your C++ application? Or are you implementing an actual AMQP broker, perhaps
for teaching purposes?
----- Original Message -----
From: "Saima Asif" <abdullahsaima at yahoo.com>
To: rabbitmq-discuss at lists.rabbitmq.com
Sent: Tuesday, January 31, 2012 2:06:25 PM
Subject: [rabbitmq-discuss] help required: bind function
I am going to understand AMQP version 0-9 at simpler level, The binding function definition is problem for me. First issue isHow I can randomly define the messages, if I did that How a message knows to go to which exchange, so that exchange can move to particular queue. I have defined queue and exchange as a class. I have defined routing key as well. I have implemented the queues that store such messages. But I need your help in defining bind() and How to route message to exchanges.
I am using visual C++, can send the code if required but its not in its refined form.
Any help would be highly appreciated. Sorry if I am not following your format of writing emails. I am new to this.
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss