rabbitmq-cli-consumer
rabbitmq-cli-consumer copied to clipboard
Consuming RPC Calls
Hey I've got a setup in Laravel which I can make RPC calls successfully. So now I am trying to use your Go code to run the same command in the Laravel app to accept an RPC call and return a response to the Client but it just isn't working.
Command Line
2020/01/16 16:14:52 Connecting RabbitMQ...
2020/01/16 16:14:52 Connected.
2020/01/16 16:14:52 Opening channel...
2020/01/16 16:14:52 Done.
2020/01/16 16:14:52 Setting QoS...
2020/01/16 16:14:52 Succeeded setting QoS.
2020/01/16 16:14:52 Metrics disabled.
2020/01/16 16:14:52 Registering consumer...
2020/01/16 16:14:52 Succeeded registering consumer.
2020/01/16 16:14:52 Waiting for messages...
2020/01/16 16:14:57 Processing message...
2020/01/16 16:14:57 Processed!
The Client never gets the returned result. I'm just using the examples from RabbitMQ tutorial 6 at the moment but it works from Laravel to Laravel, Laravel to Node and Node to Node. The only thing that doesn't work is Laravel to Laravel (via Go rabbitmq-cli-consumer)
Command Line Setup
rabbitmq-cli-consumer --verbose --url amqp://guest:guest@localhost --q rpc_queue --no-declare --e 'php /Users/Mick/Sites/xxx/xxx/companies artisan rabbitmq:rpc-command'
Any help would be appreciated in how to get the RPC to work correctly.
Cheers
Hello, I have this problem too. Any updates about it?