{"action":"created","issue":{"url":"https://api.github.com/repos/and3rson/django-nameko/issues/2","repository_url":"https://api.github.com/repos/and3rson/django-nameko","labels_url":"https://api.github.com/repos/and3rson/django-nameko/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/and3rson/django-nameko/issues/2/comments","events_url":"https://api.github.com/repos/and3rson/django-nameko/issues/2/events","html_url":"https://github.com/and3rson/django-nameko/issues/2","id":217283211,"node_id":"MDU6SXNzdWUyMTcyODMyMTE=","number":2,"title":"Solution for multiple rabbitmq servers","user":{"login":"horva","id":2076080,"node_id":"MDQ6VXNlcjIwNzYwODA=","avatar_url":"https://avatars1.githubusercontent.com/u/2076080?v=4","gravatar_id":"","url":"https://api.github.com/users/horva","html_url":"https://github.com/horva","followers_url":"https://api.github.com/users/horva/followers","following_url":"https://api.github.com/users/horva/following{/other_user}","gists_url":"https://api.github.com/users/horva/gists{/gist_id}","starred_url":"https://api.github.com/users/horva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horva/subscriptions","organizations_url":"https://api.github.com/users/horva/orgs","repos_url":"https://api.github.com/users/horva/repos","events_url":"https://api.github.com/users/horva/events{/privacy}","received_events_url":"https://api.github.com/users/horva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-27T15:25:48Z","updated_at":"2018-12-04T10:33:13Z","closed_at":null,"author_association":"NONE","body":"Hi, what do you say about following usage allowing us to connect Django app to services behind multiple RabbitMQ servers with different addresses? I have this case and suggested solution would help. Let me know if you like it and I'll send you PR. Thanks\r\n\r\n```\r\n# Settings\r\nNAMEKO_CONFIGS = {\r\n    'default': {\r\n        'config': {\r\n            'AMQP_URL': 'amqp://127.0.0.1:5672/'\r\n        },\r\n        'pool_size': 4\r\n    }\r\n    'other': {\r\n        'config': {\r\n            'AMQP_URL': '...'\r\n        },\r\n        'pool_size': 2\r\n    }\r\n}\r\n\r\n# Usage:\r\n# if no argument is passed to get_pool default is used \r\n# should also backward compatible with old NAMEKO_CONFIG\r\nwith get_pool('other').next() as rpc:\r\n    rpc.mailer.send_mail(foo='bar')\r\n```"},"comment":{"url":"https://api.github.com/repos/and3rson/django-nameko/issues/comments/444052545","html_url":"https://github.com/and3rson/django-nameko/issues/2#issuecomment-444052545","issue_url":"https://api.github.com/repos/and3rson/django-nameko/issues/2","id":444052545,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDA1MjU0NQ==","user":{"login":"tranvietanh1991","id":1921399,"node_id":"MDQ6VXNlcjE5MjEzOTk=","avatar_url":"https://avatars1.githubusercontent.com/u/1921399?v=4","gravatar_id":"","url":"https://api.github.com/users/tranvietanh1991","html_url":"https://github.com/tranvietanh1991","followers_url":"https://api.github.com/users/tranvietanh1991/followers","following_url":"https://api.github.com/users/tranvietanh1991/following{/other_user}","gists_url":"https://api.github.com/users/tranvietanh1991/gists{/gist_id}","starred_url":"https://api.github.com/users/tranvietanh1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranvietanh1991/subscriptions","organizations_url":"https://api.github.com/users/tranvietanh1991/orgs","repos_url":"https://api.github.com/users/tranvietanh1991/repos","events_url":"https://api.github.com/users/tranvietanh1991/events{/privacy}","received_events_url":"https://api.github.com/users/tranvietanh1991/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T10:33:13Z","updated_at":"2018-12-04T10:33:13Z","author_association":"COLLABORATOR","body":"Hi @horva this issue has been implemented on the PR: https://github.com/and3rson/django-nameko/pull/4 "}}
{"actor":{"display_login":"tranvietanh1991"}}