<br><br><div class="gmail_quote">On Wed, Sep 5, 2012 at 2:42 PM, Eric Windisch <span dir="ltr"><<a href="mailto:eric@cloudscaling.com" target="_blank">eric@cloudscaling.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
After a bit of a distraction, I've returned to working on some Quantum compatibility testing, analysis, etc. in regard to ZeroMQ.<br>
<br>
Currently, Quantum's NotificationDispatcher class uses connection.declare_topic_consumer which is not part of the standardized RPC abstraction. As such, it has not been implemented in the ZeroMQ driver.<br>
<br>
The obvious choices are to make this a required part of the abstraction, implementing it in impl_fake and impl_zmq, or changing the behavior of Quantum.  Also, relatedly, this isn't the first time this has happened in a project, we should really look at prefixing these private functions with _.<br>

<br>
I think if we had a method /like/ declare_topic_consumer available, we could see more asynchronous-style development in OpenStack. That could be a good thing. However, we might need further discussion and consensus on the queue_name argument, potentially removing it from the standardized form.<br>
</blockquote><div><br></div><div>We needed something like declare_topic_consumer() in ceilometer and I couldn't find another way to listen to notifications without using the AMQP libraries directly. It's on my list of things to add to the RPC library, but I'm still working on getting ceilometer working end-to-end, so I haven't started circling back and "fixing" stuff like this, yet. I hope to have more of that done in grizzly.</div>
<div><br></div><div>What I actually want is something like create_worker(), but not tied to the RPC message envelope format because notifications aren't RPC messages. For now we have implemented ceilometer's metering messages with RPC cast() calls, but that was also a stop-gap so we could move forward with the rest of the work.</div>
<div><br></div><div>I'm not sure what you mean about removing the queue name argument. That's there so the client can indicate which messages it wants. Do you have in mind another way to do that?</div><div><br></div>
<div>Doug</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thoughts?<br>
<br>
Regards,<br>
Eric Windisch<br>
<br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br>