Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Tornado Web Framework
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
Practical Orchestrator
shlominoach
191
11k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
77
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
Paper Plane
katiecoart
PRO
0
46k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Designing Powerful Visuals for Engaging Learning
tmiket
0
230
First, design no harm
axbom
PRO
2
1.1k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Making Projects Easy
brettharned
120
6.6k
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 ...