Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for channel.open example #48

Closed
Dmitry-N-Medvedev opened this issue Dec 22, 2015 · 1 comment
Closed

Request for channel.open example #48

Dmitry-N-Medvedev opened this issue Dec 22, 2015 · 1 comment

Comments

@Dmitry-N-Medvedev
Copy link

Hi!

I would like to ask you to give an example of the channel.open function.

I have the following workflow of re-creating the RMQ infrastructure:

  1. according to JSON description create a bunch of exchanges,
  2. according to JSON description create a bunch of queues,
  3. according to JSON description create bindings among the exchanges and queues

In Python I would establish a separate channel to create each single binding. Now I am curious how to properly create a new channel on the handler.

@bakkerthehacker
Copy link
Owner

bakkerthehacker commented Dec 23, 2015

The best example right now of channel.open is from openAMQPCommunication here.

If you do not want channel 1 to be opened by openAMQPCommunication, you will have to copy the function and replace the necessary parts according to your use case. Other channels aside from channel 1 can be opened alongside openAMQPCommunication after it is finished.

This function does not take any parameters other than the channel number to open on. Any other methods that you want to send on this channel should use this new channel number. The channel flow is useful in some cases but not necessary.

I am in the works on creating advanced tutorials that will have a few different use cases for multiple channels. See issue #36.

If you have any more issues or questions, feel free to open another issue or email me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants