Live data from Hacker News

Make resilient Go servers using timeouts, deadlines and context cancellation

ieftimov.com

1–10 of 42 posts

Re: Make resilient Go servers using timeouts, deadlines and context cancellation

#3
post #2

Yeah, 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

#5
post #3
post #2

Yeah, 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.

Appears after a while. Not based on scrolling, as far as I can tell.

Re: Make resilient Go servers using timeouts, deadlines and context cancellation

#6
post #3
post #2

Yeah, 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.

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

#7
post #6
post #3

Earlier 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.

I wouldn’t call that an ad, but even then I never had it trigger. Must’ve hit a JavaScript error on my end or something.

Re: Make resilient Go servers using timeouts, deadlines and context cancellation

#8
I 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 line @ 1 byte/sec is just an added bonus.

Re: Make resilient Go servers using timeouts, deadlines and context cancellation

#9
post #6
post #3

Earlier 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.

I’m not sure if I consider that an ad, but I got the same after scrolling way down. I’m on Mobile Safari.

Re: Make resilient Go servers using timeouts, deadlines and context cancellation

#10
post #8

I 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…

CloudFlare itself offers request buffering, so you should be good on that front.
Post reply on HN