~/talk

Serverless & Databases - your options and best practices

Talkat Heapcon 2024 · 2024-11-07..11-08· [serverless, databases]
name:Dan Erez
slides:none on file

Serverless functions hit limits when databases expect long‑lived connections, so practical fixes matter: raise DB max connections (defaults ~100 for Postgres, ~150 for MySQL), throttle function concurrency, add read replicas or shard by user, or move connection creation outside the handler to reuse it (observed cold start drop to ~92 ms on warm invocations). For heavy scale use a queue, a connection pooler like RDS Proxy / PgBouncer, or a RESTish Data API, consider Fauna or NoSQL, and monitor cost and capacity continuously.

AI-written summary · about

  1. 0:00Introduction to serverless
  2. 1:13Why serverless is great
  3. 5:04Serverless drawbacks and challenges
  4. 7:11Database connection problems
  5. 10:31Simple solutions for databases
  6. 14:07Static connection caching demo
  7. 16:17Using queues to decouple load
  8. 18:03Database connection proxying
  9. 19:31Ditching connections entirely
  10. 21:39Limitless Aurora overview
  11. 23:51NoSQL as an alternative
  12. 26:23Choosing the right approach
  13. 27:12Q&A session
~/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.