ricbra / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
247 stars 49 forks source link

Routing and RabbitMQBundle consumer usage #8

Closed matteosister closed 8 years ago

matteosister commented 9 years ago

Hi! Thanks for this library! We have a large application built with symfony2 and a pretty big amount of messaging involved. Right now we have more then 20 queues. We exclusively use topic routing. We are dealing with the problems you are discussing here about long running php commands.

I have two questions:

RabbitMQBundle does the magic of defining a yaml configuration file where, for every consumer, you put all the rabbit stuff like:

How do you bypass that with this library?

I'm thinking about a simple command that takes the callback name (maybe from RabbitMQBundle configuration file...) and directly calls the execute function with the encoded message.

Obviously we could transform everything to a command, but it would be a big work, and we eventually lose the yaml configuration file that keeps everything togheter.

Any ideas?

ricbra commented 9 years ago

Hi @matteosister ,

Nice to hear you're interested in my library!

Regarding your questions:

Next few weeks I'm busy with some not OSS projects, so will be a few weeks before I have some time to spent on the Go consumer unfortunately :disappointed:

satboy78 commented 9 years ago

Hi @matteosister , I'm Matteo, I work for Mtv Viacom Emea in Milan, and here we are using RabbitMQBundle as well; as mentioned by Richard, I opened an issue #3

If you want we can meet at PugMi to talk about this, share thoughts about long running php commands and possible solutions.

Bye

matteosister commented 9 years ago

Hi @satboy78! Sadly tonight I cannot be there....but my coworker @aleinside will! So speak to him, maybe something will pop up. (maybe some collaboration on this project?)

Really sorry about this! Hope to meet you next month!

satboy78 commented 9 years ago

Hi @matteosister, maybe next week we could talk on skype and find a way to cooperate on this project. my skypeId is satboy78

ricbra commented 9 years ago

If you guys gonna work on some improvements on this project: could you let me know? Perhaps a WIP PR so I can see what's happing would be nice :+1: .

satboy78 commented 9 years ago

sure, Richard!

mbiagetti commented 9 years ago

:+1:

Gingonic commented 9 years ago

I guys any word on this? Would be quite interesting for us too

ricbra commented 9 years ago

I've recently picked up working on v2 again. No ETA unfortunately. See #13 for current progress.

laudeco commented 9 years ago

Hello @ricbra , the feature of routing key is very useful for us too but I don't see it in #13 , could you confirm that this feature will be developed in it ?

Regards Laurent

ricbra commented 9 years ago

Hi @laudeco

This is certainly something that I'll try to implement. The v2 should have no missing features. Keep an eye on this repo. I think release will be somewhere in Q4 2015.

ricbra commented 8 years ago

I've implemented configurable routing-key support in the v2 branch. Also RPC support is added in that branch.

Directly calling the callback as you requested is not possible, because the client somehow has to call some php file to get access to the service.

If you want you are welcome to try the v2 branch. You need to compile it yourself, but that shouldn't be too hard with Go.