Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camellia-redis-proxy CamelliaDelayQueueServer源码中eventMap的作用 #144

Open
fuhaodev opened this issue Sep 5, 2023 · 2 comments
Open
Labels
question Further information is requested

Comments

@fuhaodev
Copy link

fuhaodev commented Sep 5, 2023

Module: camellia-delay-queue
Version: v1.2.16
Content: 请教一下作者,CamelliaDelayQueueServer源码中发布有消息ready的通知是先放到eventMap中,再使用一个singleThread轮询去调用redis的publish,为什么不直接publish,如果是为了减少redis远程调用耗时,在将消息放入eventMap之前也有redis的操作。

截屏2023-09-05 10 10 24

@fuhaodev fuhaodev added the question Further information is requested label Sep 5, 2023
@caojiajun
Copy link
Collaborator

如果100ms内发了1000条delay-msg,就得publish 1000次,但是现在定时publish就只需要publish 1次

@fuhaodev
Copy link
Author

fuhaodev commented Sep 5, 2023

哦这样,明白了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants