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

持久套接字的使用问题 #20

Open
zhangtaozt3601 opened this issue Aug 29, 2016 · 1 comment
Open

持久套接字的使用问题 #20

zhangtaozt3601 opened this issue Aug 29, 2016 · 1 comment

Comments

@zhangtaozt3601
Copy link

你好,我想用持久SUB套接字,当连接断开时,PUB端会缓存报文;连接恢复时,会补发报文。但是zmq4里已没有了ZMQ_HWM(zmq的改动好大,zmq的学习资料已过时),学习资料里的例子已经无法使用。请问:zmq4可以实现我想要的功能码?

@songtzu
Copy link

songtzu commented Aug 29, 2016

带缓存机制的PUB/SUB想着都是不太可能在MQ内部实现的。如何记录某个SUB是否已经接收过某一个报文?开销很大的。你自己实现应用层逻辑吧。

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

No branches or pull requests

2 participants