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

Extend the example set with more messaging patterns #67

Open
goodboy opened this issue Jun 28, 2020 · 5 comments
Open

Extend the example set with more messaging patterns #67

goodboy opened this issue Jun 28, 2020 · 5 comments

Comments

@goodboy
Copy link
Contributor

goodboy commented Jun 28, 2020

I know @codypiersall and I have talked in passing about this before but I figured I'd make an issue (to keep me accountable) and to point to some resources I've sniffed out.

There also seems to be some reported issues (#39, #43) that can add to and/or benefit from this.

  • There is a baseline set of examples from the original nanomessage docs as well as the equivalent for nng (all written in C of course) that could be written out in Python.
  • The other more lengthy task would be attempting to go through a variety of the more advanced patterns in the zeromq guide and writing the equivalents in pynng.

This task is something I will likely need to accomplish in some part anyway as part of building out more advanced data streaming infrastructure for piker and as part of a set of more advanced features for tractor after an initial dev release.

@codypiersall
Copy link
Owner

Hi @goodboy, thanks for the issue. Always a pleasure hearing from you!

More examples would certainly be helpful. The zmq guide you linked is zmq's killer feature in my opinion.

@goodboy
Copy link
Contributor Author

goodboy commented Jun 29, 2020

The zmq guide you linked is zmq's killer feature in my opinion.

Agreed 💯 and I think getting a decent bulk of those going with trio + pynng could be fuel for some great distributed systems design 😸.

I actually will likely add a more advanced example using pynng to tractor's docs eventually to show off what can be done 🏄

@MauiJerry
Copy link

I added some example code in my recent response #39 - a pair of pub/sub programs that use either the normal or the Trio Async methods. My rPi project needed async on both the client and server ends. It uses pub/sub to distribute data from server, and Pair1(polyamorous=True) to send commands from clients.

@MauiJerry MauiJerry mentioned this issue Sep 21, 2020
@geronimo-iia
Copy link
Contributor

hello, adding also few example using curio in #76

@geronimo-iia
Copy link
Contributor

zeromq guide is really a killer guide !
I don't known if I'll had enough time, but I had the zyre protocol in mind, and it could be nice to see how it could be implemented with pynng.

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

4 participants