fbpx
Wikipedia

Tornado (web server)

Tornado is a scalable, non-blocking web server and web application framework written in Python.[2] It was developed for use by FriendFeed; the company was acquired by Facebook in 2009 and Tornado was open-sourced soon after.[3]

Tornado
Original author(s)FriendFeed
Developer(s)Ben Darnell, Meta, Bret Taylor
Initial release2009; 14 years ago (2009)
Stable release
6.2.0[1]  / 3 July 2022; 6 months ago (3 July 2022)
RepositoryTornado Repository
Written inPython
Operating systemCross-platform
Available inEnglish
TypeWeb server
LicenseApache licence 2.0
Websitewww.tornadoweb.org 

Performance

Tornado is noted for its high performance. Its design enables handling a large number of concurrent connections (i.e., tries to solve the "C10k problem").

Modules

  • An asynchronous MongoDB driver called Motor.
  • CouchDB drivers called corduroy and trombi.
  • Asynchronous driver for PostgreSQL wrapping psycopg called Momoko

Example

The following code shows a simple web application that displays "Hello World!" when visited:[4]

import asyncio import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self.write("Hello, world") def make_app(): return tornado.web.Application([(r"/", MainHandler),]) async def main(): app = make_app() app.listen(8888) await asyncio.Event().wait() if __name__ == "__main__": asyncio.run(main()) 

See also

References

  1. ^ "Release v6.2.0: What's new in Tornado 6.2.0".
  2. ^ "Home - tornado - GitHub". GitHub. Retrieved 2009-09-10.
  3. ^ "Facebook open-sources real-time FriendFeed facet". CNet. Retrieved 2009-09-10.
  4. ^ "Hello, world". Retrieved 2022-09-14.

External links

  • Official website  

tornado, server, this, article, multiple, issues, please, help, improve, discuss, these, issues, talk, page, learn, when, remove, these, template, messages, topic, this, article, meet, wikipedia, notability, guidelines, products, services, please, help, demons. This article has multiple issues Please help improve it or discuss these issues on the talk page Learn how and when to remove these template messages The topic of this article may not meet Wikipedia s notability guidelines for products and services Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention If notability cannot be shown the article is likely to be merged redirected or deleted Find sources Tornado web server news newspapers books scholar JSTOR March 2019 Learn how and when to remove this template message This article may rely excessively on sources too closely associated with the subject potentially preventing the article from being verifiable and neutral Please help improve it by replacing them with more appropriate citations to reliable independent third party sources March 2019 Learn how and when to remove this template message Learn how and when to remove this template message Tornado is a scalable non blocking web server and web application framework written in Python 2 It was developed for use by FriendFeed the company was acquired by Facebook in 2009 and Tornado was open sourced soon after 3 TornadoOriginal author s FriendFeedDeveloper s Ben Darnell Meta Bret TaylorInitial release2009 14 years ago 2009 Stable release6 2 0 1 3 July 2022 6 months ago 3 July 2022 RepositoryTornado RepositoryWritten inPythonOperating systemCross platformAvailable inEnglishTypeWeb serverLicenseApache licence 2 0Websitewww wbr tornadoweb wbr org Contents 1 Performance 2 Modules 3 Example 4 See also 5 References 6 External linksPerformance EditTornado is noted for its high performance Its design enables handling a large number of concurrent connections i e tries to solve the C10k problem Modules EditAn asynchronous MongoDB driver called Motor CouchDB drivers called corduroy and trombi Asynchronous driver for PostgreSQL wrapping psycopg called MomokoExample EditThe following code shows a simple web application that displays Hello World when visited 4 import asyncio import tornado web class MainHandler tornado web RequestHandler def get self self write Hello world def make app return tornado web Application r MainHandler async def main app make app app listen 8888 await asyncio Event wait if name main asyncio run main See also Edit Free and open source software portalDjango web framework FastAPI Flask web framework Pylons project Web2py Comparison of web server softwareReferences Edit Release v6 2 0 What s new in Tornado 6 2 0 Home tornado GitHub GitHub Retrieved 2009 09 10 Facebook open sources real time FriendFeed facet CNet Retrieved 2009 09 10 Hello world Retrieved 2022 09 14 External links EditOfficial website Retrieved from https en wikipedia org w index php title Tornado web server amp oldid 1110199162, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.