monolith/docs/arch/0003-network-request-timeout.md

22 lines
708 B
Markdown
Raw Normal View History

2020-11-23 04:20:37 +01:00
# 3. Network request timeout
Date: 2020-02-15
## Status
Accepted
## Context
A slow network connection and overloaded server may negatively impact network response time.
## Decision
2020-05-25 03:21:52 +02:00
Make the program simulate behavior of popular web browsers and CLI tools, where the default network response timeout is most often set to 120 seconds.
2020-05-25 03:21:52 +02:00
Instead of featuring retries for timed out network requests, the program should have an option to adjust the timeout length, along with making it indefinite when given "0" as its value.
## Consequences
2020-05-25 03:21:52 +02:00
The user is able to retrieve resources that have long response time, as well as obtain full control over how soon, and if at all, network requests should time out.