Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Tornado Web Framework
Search
cganterh
September 01, 2014
0
160
Tornado Web Framework
Un repaso rápido de las características proncipales de Tornado.
cganterh
September 01, 2014
Tweet
Share
Featured
See All Featured
How GitHub (no longer) Works
holman
316
140k
Embracing the Ebb and Flow
colly
88
4.9k
Why Our Code Smells
bkeepers
PRO
340
57k
YesSQL, Process and Tooling at Scale
rocio
174
15k
The Language of Interfaces
destraynor
162
25k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
51k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.8k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
1
100
Transcript
Tornado Cristóbal Ganter
Que es Tornado • Biblioteca Python • Servidor web •
Framework web • Poco estructurado • Elegante • IO no bloqueante
Que NO es Tornado • Framework Estructurado • Servidor de
archivos estáticos
Hello world!
El Framework: Application • Enruta los requerimientos a los handlers
• Responsable de la configuración global – autoreload – debug – compress_response – static_path
El Framework: RequestHandler • Hacen la mayor parte del trabajo
• Hay que heredar de RequestHandler – Definir métodos get(), post(), etc. • Obtener los datos→Elaborar respuesta→Enviar resultado
El Framework: Templates
El Framework: Autenticación • current_user, get_current_user() y @authenticated • ¡Nunca
manejar cuentas de usuario nosotros mismos! (Tom Scott, How NOT to Store Passwords!, Computerphile, YouTube) • Autenticación con Google, Facebook, Twitter, FriendFeed, etc. (OpenID y OAuth)
El Servidor: IO no bloqueante • Tornado se ejecuta en
un solo thread→Código no bloqueante • IOLoop: loop de eventos • Corrutinas
El Servidor: WebSocket • Conexión persistente para interacción en tiempo
real • Full Duplex • Compatible con redes institucionales • Menor overhead
Y mucho mas ...