Skip to content

Conversation

@muhamadazmy
Copy link
Contributor

[Fabric] bidirectional stream

Summary:
This PR introduces a new network primitive "stream" which represents a bidirectional
stream between peers.

Once opened, the stream can be used to send any number of messages in both directions
until one of the ends drops the stream, and the ther peer will get notified.

Life Cycle

  • The stream initiator uses a Connection to open the stream
  • The initiator receives a "sink" to write messages over to remote peer, and a "stream" to receive incoming messages over.
  • When a stream is open, the receiver service will receive an "incoming" stream and "response" reciprocal.
  • Both peers can use their corresponding peers to write or receive messages from the remote peer until one of
    them drop the sending ends

@muhamadazmy muhamadazmy force-pushed the pr3926 branch 3 times, most recently from 559758a to 5419237 Compare October 24, 2025 15:40
@muhamadazmy muhamadazmy marked this pull request as ready for review October 24, 2025 15:40
Summary:
This PR introduces a new network primitive "stream" which represents a bidirectional
stream between peers.

Once opened, the stream can be used to send any number of messages in both directions
until one of the ends drops the stream, and the ther peer will get notified.

## Life Cycle
- The stream initiator uses a Connection to open the stream
- The initiator receives a "sink" to write messages over to remote peer, and a "stream" to receive incoming messages over.
- When a stream is open, the receiver service will receive an "incoming" stream and "response" reciprocal.
- Both peers can use their corresponding peers to write or receive messages from the remote peer until one of
them drop the sending ends
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant