we have a nginx Server serving our requests. Based on our SLAs we need
to answer always in 7ms time. Behind the nginx Server, there is a Java
Backend, which we proxy through the nginx.
The requirement is saying, that in case we can not deliver our answer in
7ms, we need to respond with an empty String „\n“.
Is there a ways to configure nginx in that way, that after the 7ms
timeframe it will not wait for the backend systems answer but respond
with this empty String?
To craft a custom answer, I would use:
error_page 504 @backend_timeout;
in the proxied location, associated with:
location @backend_timeout {
return 200 “\n”;
}
B. R.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.