~/talk

Tips for Writing a Web Server and Beyond

Talkat Rust Belt Rust 2019 · 2019-10-18..10-19· [rust, web-platform]
slides:none on file

Fin is a working non‑trivial web server implemented for Rust that demonstrates concrete decisions: Postgres for storage, Diesel tradeoffs vs raw SQL, and a puskás Postgres mapper derive to avoid brittle row indexing. Migrations run both for runtime and for tests, where integration tests create a new database per test to allow parallel runs. Logging uses slog with structured key/value drains and considers tracing for async distributed contexts. Error strategy is a single app error type with codes and user messages to shrink the surface area.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Designing with Lifetimes
  3. 4:56Database Management
  4. 14:15Logging
  5. 19:07Code hardening
~/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.