You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
DefaultPushConsumer在subscribe之后会执行sendHeartbeatToAllBrokerWithLock来发送心跳,发送的范围是本地addrTable里的所有broker,这些broker可能有些并没有创建subscribe的这个topic。如果一个consumer订阅多个topic,每个topic都分散在不同的broker集群,那么每次做subscribe都会很耗时,因为要向很多无关的broker实例发送心跳。所以这里是否可以只对有这个topic的broker发心跳就好?
希望听听大家的理解,按我的理解,是可以的,唯一的缺点就是可能存在一个心跳周期subscription在broker间出现不一致。
Beta Was this translation helpful? Give feedback.
All reactions