When to use direct exchange over fanout exchange

后端 未结 3 1557
谎友^
谎友^ 2021-02-13 08:51

As far as I can tell, there is no proper use case for a direct exchange, as anything you can do with it you can do with a fanout exchange, only more expandably.

More spec

3条回答
  •  野性不改
    2021-02-13 09:40

    This answer echoes the previousone and if you refer to this page, I believe you'll that one particular use case described is:

    Direct exchanges are often used to distribute tasks between multiple workers (instances of the same application) in a round robin manner.

提交回复
热议问题