~/talk

You don't think about your Streamlit app optimization until you deploy it to AWS

Talkat Øredev 2025 · 2025-11-05..11-07· [python]
slides:none on file

A Streamlit kana OCR prototype using the Hugging Face model "mango" loads repeatedly per session because Streamlit session_state doesn’t survive new tabs, so the fix is preload the HF model during image build to avoid repeated downloads and per‑GB NAT Gateway charges (~$0.05/GB). Deployment uses ECS Fargate tasks across two AZs with autoscaling, CloudFront + ACM TLS + Shield + WAF for DDoS and WAF rules, and use AWS Secrets Manager and Cognito for credentials and auth, which proves reliable.

AI-written summary · about

  1. 0:00Streamlit app optimization
  2. 3:19What is Streamlit
  3. 5:07Model loading performance
  4. 11:57Autoscaling challenges
  5. 17:29Security for Streamlit apps
  6. 21:23Credential storage with AWS
  7. 23:56Key takeaways
  8. 25:22Q&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.