Repository navigation
Cookbook: long requests, of the user agent and of the infrastructure in front of the application - #615
Merged
Conversation
…in front of the application A user agent of its own for a slow service, as the API of a model of language, and a request with a time of its own, which races with a timeout and is cancelled when the time passes first. The section of the deployment names the timeouts of nginx, Caddy, the load balancers of AWS and Google Cloud, Cloud Run, Kubernetes, API Gateway and AWS Lambda, which the timeouts and the heartbeat of a route fit in, and the FAQ of the inactivity timeout links it. Closes #266 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Tests
|
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.
The last step of #266, stacked on #614: the documentation of long requests.
Changes
Cookbook, Long requests of the user agent: a user agent of its own for a slow service, with
inactivity_timeoutandrequest_timeout, and one request with a time of its own, which races withPyjo.Promise.timeoutand whosecancel()closes its connection when the time passes first (Pyjoyment, Pyjo.Promise: async actions and their requests are cancelled when the connection closes #611).Cookbook, Long requests of the deployment, after Envoy: the timeouts, the heartbeat and the cancellation of a route (Pyjoyment, Pyjo.Promise: async actions and their requests are cancelled when the connection closes #611, Pyjoyment: the timeouts of a route, inactivity_timeout and request_timeout, with a 504 after its deadline #612, Pyjoyment: the heartbeat of a stream of Server-Sent Events or of a WebSocket, of a helper or of a route #614) against the timeouts of the layers in front of the application:
proxy_read_timeoutand its buffering of a stream, also as annotations of ingress-nginx;The section names the settings, with the defaults that have stayed the same for years, and leaves the limits that change to the documentation of each service, as of API Gateway.
The FAQ of the inactivity timeout links the section.
Validation
t/docs/guides_cookbook.py: the snippet of the user agent against the mock of the services, with a service that does not answer, whose request the time passes first, and whose connection closes-W,trunk checkPyjo.Reactor.PollwithPYTHONDEVMODE=1Closes #266
🤖 Generated with Claude Code