~/talk

Boosting Python Web Apps performance with Celery and Concurrency

Talkat PyCon Italia 2025 · 2025-05-28..05-31· [python, concurrency]
name:Yash Raj
links:none on file
slides:none on file

Uses Celery with Django, a broker (Redis or RabbitMQ), and Postgres to move news scraping off the web app and into background jobs; scheduling uses celery beat and workers run with configurable pools (prefork or threads) and autoscale=10,3 so worker count grows then shrinks. A local project scrapes many sites and exposes an API; measured end-to-end scrape time drops from about 7–10 minutes to ~31 seconds. CLI flags control concurrency and pool mode for IO vs CPU work.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:07Web framework purpose and limitations
  3. 2:31What is Celery and FIFO approach
  4. 3:54Celery architecture and components
  5. 5:15Concurrency and parallelism in Celery
  6. 8:09Celery workers and task distribution
  7. 9:58CLI commands and pool options
  8. 12:25Autoscale feature and usage
  9. 13:50Threads versus processes in Python
  10. 15:15Why use Celery for web apps
  11. 16:40Live demo setup and background
  12. 22:26Live demo results and performance
  13. 23:32Q&A session begins
~/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.