{"action":"created","issue":{"url":"https://api.github.com/repos/MassTransit/MassTransit/issues/336","labels_url":"https://api.github.com/repos/MassTransit/MassTransit/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/MassTransit/MassTransit/issues/336/comments","events_url":"https://api.github.com/repos/MassTransit/MassTransit/issues/336/events","html_url":"https://github.com/MassTransit/MassTransit/issues/336","id":102875977,"number":336,"title":"Exchanges tree with respect to inheritance tree","user":{"login":"newsash","id":6377930,"avatar_url":"https://avatars.githubusercontent.com/u/6377930?v=3","gravatar_id":"","url":"https://api.github.com/users/newsash","html_url":"https://github.com/newsash","followers_url":"https://api.github.com/users/newsash/followers","following_url":"https://api.github.com/users/newsash/following{/other_user}","gists_url":"https://api.github.com/users/newsash/gists{/gist_id}","starred_url":"https://api.github.com/users/newsash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsash/subscriptions","organizations_url":"https://api.github.com/users/newsash/orgs","repos_url":"https://api.github.com/users/newsash/repos","events_url":"https://api.github.com/users/newsash/events{/privacy}","received_events_url":"https://api.github.com/users/newsash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-24T19:45:29Z","updated_at":"2015-08-25T21:28:14Z","closed_at":null,"body":"Currently (MT3), when I publish some SpecificMessage : Message, where Message : IMessage, three exchanges with following bindings are created:\r\nSpecificMessage -> Message\r\nSpecificMessage -> IMessage\r\n\r\nI think there should be another bindings:\r\nSpecificMessage -> Message\r\nMessage -> IMessage"},"comment":{"url":"https://api.github.com/repos/MassTransit/MassTransit/issues/comments/134747177","html_url":"https://github.com/MassTransit/MassTransit/issues/336#issuecomment-134747177","issue_url":"https://api.github.com/repos/MassTransit/MassTransit/issues/336","id":134747177,"user":{"login":"newsash","id":6377930,"avatar_url":"https://avatars.githubusercontent.com/u/6377930?v=3","gravatar_id":"","url":"https://api.github.com/users/newsash","html_url":"https://github.com/newsash","followers_url":"https://api.github.com/users/newsash/followers","following_url":"https://api.github.com/users/newsash/following{/other_user}","gists_url":"https://api.github.com/users/newsash/gists{/gist_id}","starred_url":"https://api.github.com/users/newsash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsash/subscriptions","organizations_url":"https://api.github.com/users/newsash/orgs","repos_url":"https://api.github.com/users/newsash/repos","events_url":"https://api.github.com/users/newsash/events{/privacy}","received_events_url":"https://api.github.com/users/newsash/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T21:28:14Z","updated_at":"2015-08-25T21:28:14Z","body":"Unfortunately, I'm not familiar with MT2. I submitted this issue with following considerations: \r\n1. If there are 50 message types derived from Message, there will be 100 bindings with first approach and 51 with second approach. A graph with less links is usually easier to deal with.\r\n2. This is not an issue, but if SpecificMessage is published and Message is also published, there will be two ways from SpecificMessage to IMessage.\r\n3. Exchange structure equivalent to inheritance tree looks more natural.\r\n4. Deep inheritance is antipattern and therefore deeply nested exchange bingings is not MT problem, but a sign of bad design.\r\n\r\nIs flatter exchange structure has more advantages?"}}