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

SUB or XSUB? #849

Closed
timsu92 opened this issue Jun 16, 2021 · 4 comments
Closed

SUB or XSUB? #849

timsu92 opened this issue Jun 16, 2021 · 4 comments

Comments

@timsu92
Copy link
Contributor

timsu92 commented Jun 16, 2021

I'm reading zguide, and I can't really understand what I should do here.

In the diagram, it says I should use XSUB and XPUB, but in the following words, it says I should use SUB and PUB. In the example codes, both are used.
So, what's the one? I guess they all should be XSUB and XPUB right?

@shishirpy
Copy link
Contributor

The following section explains why you need the XPUB and XSUB sockets, https://zguide.zeromq.org/docs/chapter2/#The-Dynamic-Discovery-Problem
Look at Figure 14 and the description below it.

@timsu92
Copy link
Contributor Author

timsu92 commented Jul 7, 2021

Thank you for replying me!

In that section, it tells us that XSUB and XPUB are used as mediators, right?

As the proxy in figure 18 sits in the between, I guess the figure, which uses "XSUB" and "XPUB", is right, while the text below that says "SUB" and "PUB" is improper.

@shishirpy
Copy link
Contributor

Yes, you are right. It should say XSUB and XPUB in the text.

@timsu92
Copy link
Contributor Author

timsu92 commented Jul 8, 2021

OK, I'm proposing a pull request

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