~/talk

Packaging for serverless: effortless? Doubtless!

Talkat PyCon AU 2023 · 2023-08-18..08-22· [serverless]
slides:none on file

Claim: switching from pip install inside Docker to the Pants build system plus PEX cuts Python AWS Lambda packaging from painful to fast. Using the old script with Docker produces an echo lambda in ~5s and a matplotlib plot lambda in ~100s; native execution without Docker via Pants yields ~2s and <8s, respectively. Builds for the infra drop from 3 minutes to 90 seconds, and local tests go from ~5.5 minutes to ~10 seconds. The artifacts are ZIP packages for AWS Lambda and they work.

AI-written summary · about

  1. 0:00Serverless packaging challenges
  2. 2:29AWS Lambda Python requirements
  3. 5:57Python build system for Lambda
  4. 9:26Build system pitfalls and Docker
  5. 13:14Dependency management issues
  6. 16:28Pants as a build tool
  7. 19:57Pants for Lambda packaging
  8. 22:02Pants dependency inference
  9. 23:25Pants performance: parallelism and caching
  10. 25:55Pants performance powers
  11. 26:58Real-world impact of Pants
~/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.