手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2013年09月3日的文章

using NGINX or not?

 有人在stackoverflow上面提问:

http://stackoverflow.com/questions/17776584/webserver-for-go-golang-webservices-using-nginx-or-not
  1. I am writing some webservices returning JSON data, which have lots of users.    
  2. Would you recommend to use NGINX as a webserver or it is good enough to use the standard http server of Go?  

于是有人就回答了:

XML/HTML代码
  1. It depends.  
  2.   
  3. Out of the box, putting nginx in front as a reverse proxy is going to give you:  
  4.   
  5. Access logs  
  6. Error logs  
  7. Easy SSL termination  
  8. SPDY support  
  9. gzip support  
  10. Easy ways to set HTTP headers for certain routes in a couple of lines  
  11. Very fast static asset serving (if you're serving off S3/etc. though, this isn't that relevant)  
  12. The Go HTTP server is very good, but you will need to reinvent the wheel to do some of these things (which is fine: it's not meant to be everything to everyone).  
  13.   
  14. I've always found it easier to put nginx in front—which is what it is good at—and let it do the "web server" stuff. My Go application does the application stuff, and only the bare minimum of headers/etc. that it needs to. Don't look at putting nginx in front as a "bad" thing.  

还有人回答:

XML/HTML代码
  1. The standard http server of Go is fine. If your application mostly/only are "dynamic" requests/responses, then it's really the best way.  
  2.   
  3. You could use nginx to serve static assets, but most likely the standard Go one is fine for that, too. If you need higher performance you should just use a CDN or cache as much as you can with Varnish (for example).  
  4.   
  5. If you need to serve different applications off the same IP address, nginx is a fine choice for a proxy to distribute requests between the different applications; though I'd more often get Varnish or HAProxy out of the toolbox for that sort of thing.  

这回你觉得呢?你还会用nginx吗?还是只用go做http server/???

Tags: nginx, go

上海首届GO聚会开始了

 不要犹豫了,上海首届golang聚会就这样悄悄的开始了。Think2Go戈登营(Think技术社区Go语言Camp)首期,再晚你就可能没有机会参加首届聚会了,这次只有30个人,是在一个小小的咖啡馆里举行的。

话题主要由3位达人进行分享:

《开场》 Think社区

Go语言在CDN下载系统中的应用谢孟军 盛大云 高级研究员

Go在微博数据分析中的应用邵天宇 Buzzreader 高级工程师 

golang与高强度在线服务韩拓,七牛云 CTO

《OpenTalk》所有参与者  

 

是不是觉得很心动?参加地点其实也不算远(对上海的朋友来说),地方很好找。点评网上也有介绍:http://www.dianping.com/shop/6630958,直接点过去看看就OK了。详细地址在:上海市卢湾区蒙自东路63号(近马当路地铁站3号口)

费用不算太高,98元,应该是都能够承受的价格了。毕竟占用了咖啡店30个座位,别人也要做生意的。。。

大小: 41.19 K
尺寸: 500 x 228
浏览: 1228 次
点击打开新窗口浏览全图

上传一张成功的订座票。处女票,值得收藏。。。可惜没有实体的

 

Tags: go

时隔N久,不再使用量子统计了

 量子统计应该算是我用的时间最长的一个统计程序了吧?看看量子统计上是怎么写的:

XML/HTML代码
  1. 名称:飞天小肥猪的简单人生  
  2. 地址:http://neatstudio.com  
  3. 类型:电脑科技  
  4. 开始统计时间:2008-06-25  
  5. 已统计时间:1897天  

之所以不用它。一来它的统计其实并没有那么的精确,二来也经常被人挂马,三来,这么多年来几乎是不思进取。四来,用了腾讯的统计后,发现速度、效果等都远超它了。

于是,今天正式停用量子统计,转用腾讯的统计程序。