You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A distinctive feature of streams is that all requests in them
are processed sequentially. The execution of the next request
in stream will not start until the previous one is completed.
To separate requests belonging to and not belonging to streams
we use stream ID field in binary iproto protocol: requests with
non-zero stream ID belongs to some stream. Stream ID is unique
within the connection and indicates which stream the request
belongs to. For streams from different connections, the IDs may
be the same.
There is no need to send special command to start stream: you
just only need to send request with non zero stream ID, server
creates stream if it is not exist and process this request in it.
Stream ID is generated on the client size. There is no stream ID
in responses: since the client generates a stream ID, and the client
knows for what request come this response, there is no need for this.
This particular issue is about a reference to the new feature's implementation in iproto. We'll write an explanation with use cases in a separate document.
Product: Tarantool
Since: 2.10.0-beta1
Root document: https://www.tarantool.io/en/doc/latest/dev_guide/internals/box_protocol/
SME: @ EvgenyMekhanik
Details
A distinctive feature of streams is that all requests in them
are processed sequentially. The execution of the next request
in stream will not start until the previous one is completed.
To separate requests belonging to and not belonging to streams
we use stream ID field in binary iproto protocol: requests with
non-zero stream ID belongs to some stream. Stream ID is unique
within the connection and indicates which stream the request
belongs to. For streams from different connections, the IDs may
be the same.
There is no need to send special command to start stream: you
just only need to send request with non zero stream ID, server
creates stream if it is not exist and process this request in it.
Stream ID is generated on the client size. There is no stream ID
in responses: since the client generates a stream ID, and the client
knows for what request come this response, there is no need for this.
tarantool/tarantool@711cca1
Related to #2308
The text was updated successfully, but these errors were encountered: