File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,16 @@ using the HTTP Header `Accept` (:cite[rfc9110]) with [Newline Delimited JSON (ND
2020
2121## Motivation
2222
23- The main motivation for this change is that a server may take some time before fetching
24- all the peers they know providing a certain CID. That will add some latency when sending
25- a non-streamed response, as they need to wait for the whole discovery period.
26-
27- With streaming support, the server is able to respond with a * read provider record*
28- as they themselves discover the peers, not needing to wait for the whole discovery
29- to return the provider records.
23+ The main motivation for this change is to allow servers to respond faster to the
24+ client with provider records, as soon as they are available. In the current state,
25+ the client requests a list of providers for a CID from the server. Then, the client
26+ has to wait for the server to collect their final list of providers. After that,
27+ the server can respond with the full list of providers.
28+
29+ With streaming support, the serve ris able to respond with provider records as soon
30+ as they are available. This reduces latency and allows for faster content discovery.
31+ In addition, streaming responses may produce an unlimited amount of results, which
32+ is not the case for non-streamed responses.
3033
3134## Detailed design
3235
You can’t perform that action at this time.
0 commit comments