logoalt Hacker News

amlutotoday at 1:38 AM0 repliesview on HN

I was surprised that there was no mention of two things:

1. Retrying a non-idempotent request on a failure type that does indicate that no action was taken is not necessarily safe.

2. It’s possible and actually fairly common to design a backend that can do a clean shutdown: it stops accepting new requests, completes old requests, then exits. I sincerely hope that Docker’s tooling is good enough for a service to unregister itself before it actually stops accepting requests, but I’m not actually very familiar with using Docker to manage HTTP routing. (I use a home grown tool that is far simpler.)