延迟消息不是只能发到延迟消息主题吗,为什么我的测试都可以啊 #6717
Answered
by
fuyou001
wushimang1
asked this question in
Q&A
-
4.x和5.x都试过了,单机模式下确实都可以,这是什么问题吗 |
Beta Was this translation helpful? Give feedback.
Answered by
fuyou001
May 8, 2023
Replies: 3 comments 3 replies
-
我理解延迟消息只有被写到延迟主题中才会发挥作用。由于延迟消息的实现原理是延迟主题下的消息定时重新投递,所以如果发送到普通主题的话,应该与普通消息无异。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
技术上,因历史原因,当前并没有做强制限制。延迟可以发普通消息、普通消息也可以发延迟消息。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wushimang1
-
Broker应该是没有进行校验,如果是使用5.x,那么在Proxy层会进行主题消息类型的校验。 |
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
技术上,因历史原因,当前并没有做强制限制。延迟可以发普通消息、普通消息也可以发延迟消息。
但从运维角度,建议不要混用,避免给运维带来额外的成本。