~/talk

A data scientist's guide to production web apps with Flask

Talkat PyData NYC 2018 · 2018-10-11..10-12· [developer-experience, web-performance]
links:none on file
slides:none on file

Practical checklist: precompute feeds in a MySQL RDS table rather than running models at request time when the parameter space is bounded; use Flask-SQLAlchemy to manage DB connections and a tiny params table with current_date to avoid downtime during data updates; front Flask with Gunicorn + Docker + AWS ECS, tune workers and timeouts, add Redis caching, and build pagination with offset/limit. Enforce URI limits (~2000 chars use POST), return 400 for bad queries and 200 with empty lists when queries are valid but yield nothing, and avoid runtime joins—prejoin and index instead.

AI-written summary · about

  1. 0:00Introduction
  2. 5:19Flask for data science APIs
  3. 9:55Building Flask API
  4. 17:43Query complexity with filters
  5. 22:20HTTP errors handling
  6. 25:11Latency and DB optimization
  7. 29:02Documentation and monitoring
  8. 30:12Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.