Nice thorough guide, but it might be worth mentioning that the recommended practice is to use a custom http.Server with timeouts and such, as described here.
Another useful thing to perhaps mention is using the request context when running DB queries in order to handling timing them out and cancelling them. Contexts are also useful to pass context from middleware to handlers too :)
Comment hidden by post author - thread only visible in this permalink
Nice thorough guide, but it might be worth mentioning that the recommended practice is to use a custom
http.Server
with timeouts and such, as described here.Another useful thing to perhaps mention is using the request context when running DB queries in order to handling timing them out and cancelling them. Contexts are also useful to pass context from middleware to handlers too :)
Thanks, I appreciate your feedback :)