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
160
0
Share
Tornado Web Framework
Un repaso rápido de las características proncipales de Tornado.
cganterh
September 01, 2014
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.7k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
Marketing to machines
jonoalderson
1
5.3k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Utilizing Notion as your number one productivity tool
mfonobong
4
300
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
Facilitating Awesome Meetings
lara
57
6.8k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
The Pragmatic Product Professional
lauravandoore
37
7.3k
WCS-LA-2024
lcolladotor
0
590
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 ...