关于过滤器设计问题
#6770
Replies: 1 comment 1 reply
-
这个设计的出发点可能不希望Broker CPU过载过高,这是一个吞吐和CPU的权衡,而且codeSet应该能应付大多数情况了。 The underlying intention of this design may be to avoid overloading the Broker CPU, which is a trade-off between throughput and CPU usage. Additionally, the codeSet should be able to handle most situations. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
当前tag类型的过滤表达式是
1)在isMatchedByConsumeQueue() 使用Set codeSet做粗过滤
2)在isMatchedByCommitLog()是直接返回true(等于什么都没干)
3)然后在client再按照Set tagsSet再做细过滤
我的疑问是为什么不干脆在isMatchedByCommitLog()使用Set tagsSet进行细过滤,
杜绝无效的数据在broker和client端传递的可能
ExpressionMessageFilter.java
Beta Was this translation helpful? Give feedback.
All reactions