Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am working with nameko to develop a microservice in python. I want to listen on some queue which is defined in different exchange in rabbitMQ. Also I want to publish to other Exchange with routing key from this nameko service.

How can I do that?

You can assume that all exchanges are on same rabbitMQ instance/broker. Thanks :)

You can configure exchange in .yaml config file. Nameko use 'rpc_exchange' and "nameko-rpc" is default but you can change it. E.G. your_config.yaml:

rpc_exchange: "<your custom exchange>"

This is described here: https://nameko.readthedocs.io/en/stable/cli.html#running-a-service

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.