doushizhou4477 2012-04-13 06:54
浏览 185
已采纳

就长期稳定性而言,相比Tomcat,Apache,去Web服务器的性能稳定性如何? [关闭]

I have been thinking instead of using:

  • Tomcat
  • Apache
  • Lightweight webserver
  • PHP
  • Ruby
  • JSP

Why not switch my projects to Go language. Because there i have:

  • webserver built in
  • i do not even need to depend on PHP, Ruby, JSP
  • Go solves cross-platform such as: runs on FreeBSD, Linux, Solaris (Windows, Mac, Android, Tizen)
  • nor Apache nor Tomcat nor other webserver maintainence
  • speed of browser would be extreamly faster then other web server scripting languages.

But one thing i am worried about, which is the stablity of Go webserver compared to other webservers.

Has anyone done this before or am i alone building such projects for production releases?

  • 写回答

3条回答 默认 最新

  • drcmue4619 2012-04-13 09:33
    关注

    There are no stability problem.

    I have a few webservers 100% in go that run for months, serving about a million queries per month without any problem (mostly json, through GET, POST, and websockets).

    They're on 64 bits ubuntu servers but I guess you would have difficulties producing the so much gossiped about 32 bits bug, especially with a web server.

    Don't use a front-end if you have no specific reason : It's easy to make a complete web application just using Go.

    You will be far from alone. In my opinion Go is especially well suited to build long running servers. Goroutines and channels makes it really easy to handle both user requests and long term tasks (or, for example, do the postreatment of user queries after you answered the http query, which isn't so easy in php and is too many LOC in java if you want to do it properly).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 请提供一个符合要求的网页链接。
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码