英文:
go language web framework design thread wise
问题
GO net/http库的线程设计是什么样的?
几天前我听说了这个演讲,我对GO开发人员如何实现他们的Web框架设计在线程方面非常好奇。
我知道node.js使用一个计算线程读取事件和一个I/O线程池。ASP.NET使用一个线程来处理每个调用...GO是如何处理C10K问题的?
英文:
What is the threading design of GO net/http library?
I heard this talk a few days ago and I was really curious about how GO developers implemented their web framework design, thread wise.
I know node.js uses 1 Computational thread reading events and a pool of I/O threads. ASP.NET uses a thread per call... how does GO handle the C10K problem?
答案1
得分: 2
net/http服务器根据文档的说明,每个连接使用一个goroutine。
英文:
The net/http server uses one goroutine per connection as stated in the documentation.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论