Repository navigation
docs: sequence diagrams of an ordinary call and a streamed call - #74
Merged
Merged
Conversation
Add docs/request-flow.md and docs/streaming.md, each with a Traditional Chinese translation, and link them from both READMEs. The ordinary-call document follows a call through the client, the HTTP endpoint, the dispatcher and the payload envelope; the streaming document covers only what a streamed call adds. Neither repeats defaults or the byte layout: they point to the options and to ADR-002, ADR-003 and ADR-005.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Adds two user documents, each with a Traditional Chinese translation, so that developers can see how a call travels through the packages:
docs/request-flow.md: an overview, then the client (PayloadConnector,JsonRpcConnector,HttpTransport), the server (JsonRpcHttpHandler,JsonRpcDispatcher, filters, object factory) and the payload envelope pipeline.docs/streaming.md: only what a streamed call adds. It covers the SSE exchange, when the server starts the stream, the client's reading loop, cancellation and failures, the binding of encrypted items and results to their request, and the cases that are not streamed.Both READMEs get a short "How a call is processed" section linking them.
Key agreement is deliberately left out: it belongs to the application (
IPayloadServerPolicy.GetKeyAsync,PayloadConnectorOptions.KeyProvider), not to these packages.The documents state no default values and no byte layout. They name the options and link ADR-002, ADR-003 and ADR-005, so nothing here can drift from the code.
No change to code, wire format or behavior, so nothing downstream (Polhem, polhem-connector-js) is affected.
Verification
./check-md-links.shpasses.