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

Extract and deprecate polyamorous mode #1189

Closed
gdamore opened this issue Feb 7, 2020 · 0 comments
Closed

Extract and deprecate polyamorous mode #1189

gdamore opened this issue Feb 7, 2020 · 0 comments

Comments

@gdamore
Copy link
Contributor

gdamore commented Feb 7, 2020

Pair v1 Polyamorous mode was a design mistake. It adds complexity to the pair protocol, while bringing very little value. It can't operate over proxies, and it hurts performance.

What is really needed is a mesh protocol which should support broadcast, unicast, and route discovery for directed sends.

It is possible to mostly replace designs using pair v1 with surveyor pattern, where the monogamous peers send extremely long (infinite?) surveys, and the polyamorous peers reply as respondents. It might require a little more application complexity to do so, and probably raw mode would help. The advantage of such approaches are that they can interoperate with all nanomsg implementations, and support operation over proxies.

In the meantime we should move deprecate the mode, and move it to its own implementation so that pair1 optimizations can proceed unimpeded.

The option should be deprecated, and a new nng_open_pair1_poly() function provided for now.

Once we have a better mesh replacement, the pair1 mode can be removed.

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

1 participant