Clarification for typed GroupRouter comment on sending messages to unreachable cluster nodes
#29,389 建立於 2020年7月16日
倉庫指標
- 星標
- (13,277 顆星)
- PR 合併指標
- (平均合併 8天 19小時) (30 天內合併 10 個 PR)
描述
In the documentation for the GroupRouter, it states the following:
Taking a closer look at the implementation, when the GroupRouter receives the collection of possible routees from the receptionist, it uses an unapply method that filters based on reachable nodes (at least based on the associated comment indicates). As such, it seems the router tries, at least somewhat, to avoid unreachable nodes.
Is this a correct understanding of the GroupRouter's implementation?
New documentation could instead say:
The
GroupRouterroutes messages to the currently known reachable nodes, but there is always a chance that a node becomes unreachable as the router sends a message.
References for the GroupRouter's use of unapply, the definition of that unapply, and the associated reference to the serviceInstances method used in the unapply: