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
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
Become a Pro
speakerdeck
PRO
31
5.8k
Why Our Code Smells
bkeepers
PRO
340
58k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
410
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
A designer walks into a library…
pauljervisheath
210
24k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
160
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Deep Space Network (abreviated)
tonyrice
0
47
Discover your Explorer Soul
emna__ayadi
2
1.1k
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 ...