~/talk

On scaling Machine Learning microservices

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [microservices, machine-learning]
links:none on file
slides:none on file

A checklist of concrete tactics: a prototype built in hours survives production with thousands of users per day by using concurrency (async or ThreadPoolExecutor) for IO, caching via functools.lru_cache or TTL caches, and FastAPI background jobs to return job IDs immediately; package apps with small multi-stage Docker images (use Dive to find bloat) and choose FaaS/PaaS/ECS based on control vs startup time; pressure-test with Locust to find the 95th-percentile choke point; expose a batch predict endpoint and use numpy/pandas for C-backed speed.

AI-written summary · about

  1. 0:00Intro
  2. 1:50Prototype
  3. 3:26Productionizing
  4. 16:17Serving
  5. 17:12Batch Predict
  6. 18:47Handling the load
  7. 19:33Farts in the wind
  8. 20:20Locust
  9. 22:25BCG
  10. 22:38Summary
  11. 23:37Questions
~/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.