gpt4 book ai didi

python - 什么是 Facebook 的新 Tornado 框架?

转载 作者:太空狗 更新时间:2023-10-29 17:07:13 26 4
gpt4 key购买 nike

Facebook 刚刚开源 a framework called Tornado .

这是什么?它对网站有什么帮助?

我相信 Facebook 使用 LAMP 结构。它对在 LAMP 堆栈下编写的较小站点有用吗?

最佳答案

它看起来像是一个针对高并发性和高可扩展性进行了优化的网络服务器,但它是为较小的有效载荷而设计的。

它旨在支持 10,000 个并发用户。

The framework is distinct from most mainstream web server frameworks (and certainly most Python frameworks) because it is non-blocking and reasonably fast. Because it is non-blocking and uses epoll, it can handle thousands of simultaneous standing connections, which means it is ideal for real-time web services. We built the web server specifically to handle FriendFeed's real-time features — every active user of FriendFeed maintains an open connection to the FriendFeed servers. (For more information on scaling servers to support thousands of clients, see The C10K problem.)

它将在 LMP 堆栈上运行,但它取代了 Apache。

参见 C10K问题。

关于python - 什么是 Facebook 的新 Tornado 框架?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1406912/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com