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
cganterh
September 01, 2014
0
140
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 to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.8k
Making Projects Easy
brettharned
116
6.2k
Practical Orchestrator
shlominoach
188
11k
Designing Experiences People Love
moore
142
24k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
4
130
The Straight Up "How To Draw Better" Workshop
denniskardys
233
140k
Facilitating Awesome Meetings
lara
54
6.4k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Balancing Empowerment & Direction
lara
1
280
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
YesSQL, Process and Tooling at Scale
rocio
172
14k
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 ...