Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed The FriendFeed application is written using a web framework that looks a bit like web.py or Google's 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.
分享到 FriendFeed
FriendFeed 推出中文版之后,国内使用的用户也越来越多,FriendFeed 官方也推出分享到 FriendFeed 的 Bookmarklet:
它的代码为: document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','http://friendfeed.com /share/bookmarklet/javascript');document.body.appendChild(e)})())" title="分享到 FriendFeed" rel="nofollow ">
分享到 FriendFeed
4.
---- Tornado Tornado是一个用python语言写成的Web应用框架, 应用于FriendFeed公司,后由Facebook收购后开源。 ? ** Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed
先来了解下什么tornado,看看官网的解释: Tornado 是 FriendFeed 使用的可扩展的非阻塞式 web 服务器及其相关工具的开源版本。 官网 tornado中文镜像站 开源中国上也对其进行了介绍: Tornado web server 是使用Python编写出来的一个极轻量级、高可伸缩性和非阻塞IO的Web服务器软件,着名的 Friendfeed
Tornado,全称Tornado Web Server,是一个用Python语言写成的Web服务器兼Web应用框架,由FriendFeed公司在自己的网站FriendFeed中使用,被Facebook 主要模块 web - FriendFeed 使用的基础 Web 框架,包含了 Tornado 的大多数重要的功能 escape - XHTML, JSON, URL 的编码/解码方法 database 生产环境下的部署 在 FriendFeed 中,我们使用 nginx 做负载均衡和静态文件伺服。 下面是 nginx 配置文件的一个示例,整体上与我们在 FriendFeed 中使用的差不多。 注意事项和社区支持 因为 FriendFeed 以及其他 Tornado 的主要用户在使用时都是基于 nginx或者 Apache 代理之后的。
2.tornado概览 tornado是一种异步网络库的python web框架,最初在 FriendFeed上开发,通过使用非阻塞网络I/O,tornado可以扫描数以万计打开的链接,让它成为给每个用户一个长链接的理想选择 Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed
这里是一个使用Tornado’s 内置的 AsyncHTTPClient 调用FriendFeed API的例 子: class MainHandler(tornado.web.RequestHandler def get(self): http = tornado.httpclient.AsyncHTTPClient() http.fetch("http://friendfeed-api.com self.write("Fetched " + str(len(json["entries"])) + " entries " "from the FriendFeed http = tornado.httpclient.AsyncHTTPClient() response = yield http.fetch("http://friendfeed-api.com self.write("Fetched " + str(len(json["entries"])) + " entries " "from the FriendFeed
背景介绍: 可能有些人不知道tornaodo为何物,ok 我简单的介绍一下:我们现在所知道的Tornado是基于Bret Taylor和其他人员为FriendFeed所开发的网络服务框架,当FriendFeed
tornado.web.asynchronous def get(self): http = tornado.httpclient.AsyncHTTPClient() http.fetch("http://friendfeed-api.com self.write("Fetched " + str(len(json["entries"])) + " entries " "from the FriendFeed self): http = tornado.httpclient.AsyncHTTPClient() response = yield http.fetch("http://friendfeed-api.com self.write("Fetched " + str(len(json["entries"])) + " entries " "from the FriendFeed
这个网站只支持从RSS地址导入数据,我自己刚添加成功,还没看到导入的效果 2.friendfeed 这个网站有中文界面,所以很简单… 注册并登录这个网站,在设置里面添加你需要导入的数据源,然后在这个页面
web.py的micro-framework,作为框架Tornado的思想主要来源于Web.py,大家在Web.py的网站首页也可以看到Tornado的大佬Bret Taylor的这么一段话(他这里说的FriendFeed 用的框架跟Tornado可以看作是一个东西): “[web.py inspired the] Web framework we use at FriendFeed [and] the webapp framework
2020" Tornado is an open-source variant of the adaptable, non-blocking web server and tools that power FriendFeed It was created for use by FriendFeed; the organization was obtained by Facebook in 2009 and Tornado was
Tornado Tornado是 FriendFeed使用的可扩展的非阻塞式 web 服务器及其相关工具的开源版本。 我们开发这个 Web 服务器的主要目的就是为了处理 FriendFeed 的实时功能 ——在 FriendFeed 的应用里每一个活动用户都会保持着一个服务器连接。
client.fetch("http://www.tornadoweb.org") # Test contents of response self.assertIn("FriendFeed self.stop) response = self.wait() # Test contents of response self.assertIn("FriendFeed
Tornado是 FriendFeed使用的可扩展的非阻塞式 web 服务器及其相关工具的开源版本。 我们开发这个 Web 服务器的主要目的就是为了处理 FriendFeed 的实时功能 ——在 FriendFeed 的应用里每一个活动用户都会保持着一个服务器连接。
image.png tornado(龙卷风) Tornado是一个Python Web框架和异步网络库,最初由FriendFeed开发。
2007年,前Google程序员布雷特•泰勒建立了一个名叫Friendfeed的网站,主打方向是社交媒体的信息聚合,其中有一项创新功能:用户可以按下一个按钮,方便快捷地对某项内容表达赞美之情。 两年后,Friendfeed被Facebook收购,这项功能也被Facebook“借用”,由此诞生了大家所熟悉的大拇指按钮。 时至今日,“点赞”已经成为社交网络应用的标配功能。
介绍 Tornado 是一个Python web框架和异步网络库起初由 FriendFeed开发.
<html> <head> <title>FriendFeed - {{ _("Home") }}</title> </head> <body>
而Friendfeed则是反其道而行之,利用关系型数据库MySQL,采用了去关系化的设计方法,去实现自己的KeyValue存储。所以NoSQL的本质是No Relational。