Live data from Hacker News

Handling 1M Requests per Minute with Go

marcio.io

31–40 of 109 posts

Re: Handling 1M Requests per Minute with Go

#32

Mods, can we change "go" in the title to "golang"? That's the official name, and it makes it searchable by search engines?

I still see it written as "Go" most of the time. It's unfortunate because I've picked up the habit of searching with "golang".

Re: Handling 1M Requests per Minute with Go

#33

It's interesting this came up today. I'm looking for a new language to migrate my flask/uwsgi web service to. I'm having a terrible time making it scale. Are there any tutorials/templates/best practices for writing a small web service in Golang?

The best advice I can give is to write a minimal web server using net/http[0], get a feel for how to write a RESTful HTTP API by hand, and then start experimenting with web frameworks like Gin[1], Martini[2], and Beego[3].

[0] https://golang.org/doc/articles/wiki/

[1] https://github.com/gin-gonic/gin

[2] https://github.com/go-martini/martini

[3] https://github.com/astaxie/beego

Re: Handling 1M Requests per Minute with Go

#34

It's interesting this came up today. I'm looking for a new language to migrate my flask/uwsgi web service to. I'm having a terrible time making it scale. Are there any tutorials/templates/best practices for writing a small web service in Golang?

the only reason to write something like that in Go is if you're looking to impress a recruiter at (Go). Advise: pick a better tool for your problem.

Re: Handling 1M Requests per Minute with Go

#36
post #15

What's the trick to resubmit without getting stuck going to the first post? For example, I submitted this story 2 hours before this one: https://news.ycombinator.com/item?id=9844826 In the past, when I try to submit a story, even if it's a couple days old, the submission is ignored, and my vote is added to the original.

Ouch, it really shows that getting to the HN frontpage can be just a lottery.

Re: Handling 1M Requests per Minute with Go

#37
post #21

Earlier quoted context omitted.

Lua would beat go every day of the week.

As Clojure would beat Lua every second of a day.

I'm a big clojure fan and not the biggest Lua fan, but I'm afraid you are mistaken. You won't find any dynamically typed language implementation that can come close to LuaJIT for the general use case.

Re: Handling 1M Requests per Minute with Go

#38

It's interesting this came up today. I'm looking for a new language to migrate my flask/uwsgi web service to. I'm having a terrible time making it scale. Are there any tutorials/templates/best practices for writing a small web service in Golang?

the only reason to write something like that in Go is if you're looking to impress a recruiter at (Go). Advise: pick a better tool for your problem.

A better tool such as?

Re: Handling 1M Requests per Minute with Go

#39

Does anybody here have any experience with Go's garbage collection pauses with large stack sizes? I've got a scala app that regularly consumes about 48G of ram, and I'm very happy with the response times during heavy loads like this, but the P99.5 is abysmal because of garbage collection. I've tried tuning it, but it doesn't seem like anything I do helps. I'll probably end up using an Azul JVM but I'm curious how oth…

It's really more about how many objects are on the heap, less about how long the heap is.

Re: Handling 1M Requests per Minute with Go

#40

Does anybody here have any experience with Go's garbage collection pauses with large stack sizes? I've got a scala app that regularly consumes about 48G of ram, and I'm very happy with the response times during heavy loads like this, but the P99.5 is abysmal because of garbage collection. I've tried tuning it, but it doesn't seem like anything I do helps. I'll probably end up using an Azul JVM but I'm curious how oth…

What is P99.5?
Post reply on HN