I’m currently trying out render, and for that purpose developed a very simple web service written in Scala and packaged with Docker. It basically just returns 200 OK with “Hello world!” string in body on the root path.
https://not-good-enough.onrender.com/
The service was deployed successfully and the endpoint above indeed returns an expected response. However, when you try to request the same endpoint multiple times, it sometimes returns the proper response, but sometimes also 404. It feels like there was a randomised load balancer in front of the service which routes some of the requests badly.
An example below shows 2 identical requests done using httpie resulting in 2 different results.
❯ http https://not-good-enough.onrender.com/
HTTP/1.1 404 Not Found
CF-Cache-Status: MISS
CF-RAY: 6ff7df5a7b332175-DUS
Connection: keep-alive
Content-Length: 0
Date: Thu, 21 Apr 2022 17:34:47 GMT
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Vary: Accept-Encoding
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
❯ http https://not-good-enough.onrender.com/
HTTP/1.1 200 OK
Accept-Ranges: bytes
CF-Cache-Status: BYPASS
CF-RAY: 6ff7ede1ae3b2193-DUS
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 36
Content-Type: text/plain; charset=UTF-8
Date: Thu, 21 Apr 2022 17:44:42 GMT
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Vary: Accept-Encoding
X-Envoy-Upstream-Service-Time: 10
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
Hello world!
Appendix; I have checked again after writing this post and the situation seems to have stabilised, with the requests always being routed correctly. I would still like to find out if this is to be expected after every deployment and if the others are also having this issue.