Go语言内置的HTTP服务器是否适用于生产环境?

huangapple go评论87阅读模式
英文:

Is the Go language built-in http server a production server?

问题

我在文档https://golang.org/pkg/net/http/中没有看到那个答案。

这个文档看起来相当完整,但通常我发现内置的网络服务器(如Python、PHP等)除了开发之外,很少被推荐使用。

英文:

I did not see that answer in the documentation, https://golang.org/pkg/net/http/.

It seems pretty complete, but typically I find the built in web servers are never recommended, such as Python, PHP, etc., for anything but development.

答案1

得分: 1

是的。如果您将其用作生产服务器,那么它就是一台“生产”服务器。没有理由不这样做。它的设计初衷是供您用于真正的生产应用,而不仅仅是用于测试和玩弄语言。

英文:

Yes. It is a 'production' server if you use it as such. There is no reason why you would not. It is was made with the intent of you using it for real production applications, not just for testing and playing around with the language.

huangapple
  • 本文由 发表于 2015年10月29日 01:06:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/33397241.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定