Make resilient Go servers using timeouts, deadlines and context cancellation
1–10 of 42 posts
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#2Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#3Yeah, I quit reading when I get the unblockable full page ad asking me about paying 50 dollars for a Go course. Good spam bot.
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#4Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#5Yeah, I quit reading when I get the unblockable full page ad asking me about paying 50 dollars for a Go course. Good spam bot.
I did not get such an ad on my end? And this browser has no blockers of any kind. I scrolled through it in its entirety.
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#6Yeah, I quit reading when I get the unblockable full page ad asking me about paying 50 dollars for a Go course. Good spam bot.
I did not get such an ad on my end? And this browser has no blockers of any kind. I scrolled through it in its entirety.
It's not actually unskippable, but on mobile you have to zoom out to click the X at top right.
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#7Earlier quoted context omitted.
I did not get such an ad on my end? And this browser has no blockers of any kind. I scrolled through it in its entirety.
So you know I'm not lying... https://ibb.co/v43sMXv It's not actually unskippable, but on mobile you have to zoom out to click the X at top right.
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#8The main benefit seems to be convenience. I can upgrade and graceful-restart nginx instead of having to rebuild and redeploy the Go server (involving a full app restart). Not having to worry about goroutine leaks because some jerk decided to send the request line @ 1 byte/sec is just an added bonus.
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#9Earlier quoted context omitted.
I did not get such an ad on my end? And this browser has no blockers of any kind. I scrolled through it in its entirety.
So you know I'm not lying... https://ibb.co/v43sMXv It's not actually unskippable, but on mobile you have to zoom out to click the X at top right.
Re: Make resilient Go servers using timeouts, deadlines and context cancellation
#10I tried running Go HTTP servers bare to the internet (after Cloudflare promoted doing so in a blog post), but went back to using a reverse proxy the next time. The main benefit seems to be convenience. I can upgrade and graceful-restart nginx instead of having to rebuild and redeploy the Go server (involving a full app restart). Not having to worry about goroutine leaks because some jerk decided to send the request l…