libp2p / go-libp2p-examples

Example libp2p applications
MIT License
338 stars 145 forks source link

Using one stream for one protocol or many? #17

Closed Wondertan closed 5 years ago

Wondertan commented 5 years ago

Thank you guys for your amazing project. I've started diving to it recently and a small question appeared in my mind. In multipro example you create stream on every message node send, so is it better to use approach like in multipro or it is better to use the one stream for one protocol?