简体   繁体   中英

RabbitMq like topic exchanges with Masstransit

I read the rabbitmq tutorials and really liked the Idea of topic exchanges . In my architecture I would have topics like continent.city.street . Where, as you can imagine, there are only a limited number of continents, but nearly infinite cities & streets, which both can have duplicated names (like NorthAmerica.GeorgsTown.Mainstreet , Europe.GeorgsTown.Mainstreet , Asia.NewTown.Mainstreet and Australia.NewTown.LostRoad )

Now I learned that Masstransit , a Libary I want to learn/use, does not support this kind of topics . (There are somehow supported but then I also could use a generic RabbitMq client)

So what is the best way to achieve a similar thing, as with rabbitmqs topic exchanges, but with Masstransit (over (any) MQ/ rider system), in regards of performance ?

Some facts which could make the difference regarding performance:

  • Nearly no consumer is interested in a whole continent - but some are. Asia.*.*
  • Continents primary goal is to make cities unique (in this fictional case).
  • About ~30% of the consumers would like to subscribe to cities regardless of continent or street. *.GeorgsTown.*
  • About ~30% of the consumers would like to know what happens on specific streets regardless the city or continent. *.*.Mainstreet
  • About ~30% is watching for specific combinations like Antarctica.GeorgsTown.Mainstreet

MassTransit 很好地支持主题交换,它们类似于Direct Exchange示例中定义的那些,但使用主题模式路由键代替。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM