@peerbit/stream
v4.1.2
Published
A building block for direct streaming protocols
Downloads
2,759
Readme
Direct stream
Data streaming protocol for delivering messages efficiently to peers with redundancy and failure recovery modes.
Features
- Packet prioritization. Data packages can be sent with different priority. That allows some traffic to pass through the traffic faster than other. This is useful in case of congestion
- Mode'd delivery. Packages can be sent with different delivery mode 'Acknowledge' (wait for acknowledgement from all known subscribers), 'Seek' (find new subscribers for a topic), 'Silent' (just deliver).
- Redundancy in data delivery. Data packages can be sent with different redundancy. This means that you can choose to send some packages only in one path (the fastest) or send a package in the 'N' fastest paths (this gives you a redundancy degree of 'N'). This feature is useful when you want to adapt delivery for unstable networks or when you want to make sure that some messages are delivered with high probability (without waiting for Acknowledgemts and retry)
Protocol specification (TODO)
Currently the protocol itself is not specificed more than as in this implementation with messages types found here and here.