~/talk

NodeJS Scalibility Tips

Talkat CityJS Conference 2020 · 2020-09-02..09-04· [nodejs, devops-and-delivery]
slides:none on file

Shows a concrete workflow: benchmark a simple QR PNG server with autocannon (200 concurrency yields ~100 req/s, avg latency ~2s) then compare to a minimal hello world (≈53k req/s) to find headroom. Use clinic.js (doctor, flame, bubble) to locate hotspots (png rendering function ~27% of time). Scale by cluster module or worker threads/piscina for a 3–4× throughput gain on an 8‑core machine, or by functional decomposition (microservices) and partitioning (sharding). Emphasizes logs metrics traces and choosing one primary optimization goal.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 3:06Defining scalability
  3. 4:11Establish a baseline
  4. 9:30Finding bottlenecks with Clinic.js
  5. 13:21Define optimization goals
  6. 15:06Observe in production
  7. 18:39Scale your architecture
  8. 21:10Cloning with Node.js
  9. 27:28Functional decomposition
  10. 31:04Partitioning data
  11. 33:31Summary of tips
  12. 36:01Q&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.