|
|
|
|
|
by ilyt
1090 days ago
|
|
> If I want to experiment with changing the http timeout for specific calls from a single service in a single region I should be able to roll that out. ...why ? how often you do it ? What actual app feature it fills ? Why would you throw permanent code at something that you need to do once or twice? That kind of thing is FAR better served as customizable hooks (loadable .so/.dll, maybe even attached Lua interpreter) rather than bazillion random flags for everything and checks cluttering code. |
|
httpClient.get("my/url", timeout: config.get("http.timeout"))
Where config is a library smart enough to do some rule evaluation over a live updated backing store to get the right value.
I'm not sure how .so/dll or lua is going to help here.