Google now uses Go Lang for its public production servers at dl.google.com

12 views
Skip to first unread message

Sathish VJ

unread,
Oct 26, 2012, 2:54:20 AM10/26/12
to gtug-ba...@googlegroups.com
More great Google production use wth Go Lang.  dl.google.com is served by#golang .  

"The service that runs dl.google.com--the source for Chrome, Earth, Android SDK, and other large Google downloads--has been rewritten in Go. In fact, if you’ve had Chrome installed during the past few months then you have almost certainly talked to this Go program."

... [for various reasons] we decided instead to rewrite it in Go.

The Go version is much less code, more readable, more testable, doesn’t have blocking problems, and fixes a number of HTTP correctness issues from the old version.  It also compiles quickly. We were prepared to take a hit in CPU and/or memory usage in exchange for readable code, but it turned out that the CPU was the same and the memory usage actually dropped!

The Go version also uses interfaces to abstract out the file system, so migrating from local disk ... to networked file systems (like our Colossus) was trivial. For the same reason, it was easy to introduce a memory caching layer for the most popular downloads.

All this is to say: apt-get against dl.google.com is fast again."

https://groups.google.com/d/msg/golang-nuts/BNUNbKSypE0/E4qSfpx9qI8J

Sriram Narayanan

unread,
Oct 26, 2012, 5:04:44 PM10/26/12
to gtug-ba...@googlegroups.com

Hey, this was a good read. Thanks!

Reply all
Reply to author
Forward
0 new messages