~/talk

The Cost of Logging

Talkat Node Week 2017 · 2017-04-10..04-14· [nodejs]
slides:none on file

A fast JSON logger is built and benchmarked: raw HTTP hits ~21,000 rps, Express ~88,200 rps, adding Bunyan drops throughput to ~2,000 rps while switching to the new logger raises it to ~5,800 rps; claim: 10,000 logs in ~250ms or 10,000 in ~100ms with extreme mode and 4KB batching (risking that amount of data loss). Performance fixes include avoiding JSON.stringify, using epoch timestamps, flat strings, fast-safe-stringify, flame graphs (zx) and autocannon; transports run as separate processes and integrations for Express/Hapi/Koa are provided.

AI-written summary · about

  1. 0:00The performance challenge
  2. 2:27Analyzing logging costs
  3. 5:20The adapter problem
  4. 7:38Introducing Pino
  5. 11:25Framework integration
  6. 13:31Technical optimizations
  7. 18:16Performance testing tools
  8. 20:14Live benchmarking demo
  9. 25:33Pino usage and ecosystem
  10. 30:50Closing and Q&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.