~/talk

Stuck in the Middle: Leverage the power of Rack Middleware

Talkat RailsConf 2016 · 2016-05-04..05-06· [ruby-on-rails]

Explains how to write and install custom Rack middleware, with concrete examples: a Ping Pong endpoint that short-circuits and returns 200 Pong, a request-response timer that records elapsed time and sends JSON to Splunk, and a rate-limiting limiter (Rack Throttle) that returns rate-limit responses before the app sees them. Covers order issues (Warden must come after session middleware), moving redirects for addons.heroku.com to middleware to simplify routes, and making middleware thread-safe via dup + _call.

AI-written summary · about

  1. 0:00Start
  2. 20:47Middleware can simplify your application
  3. 22:47Middleware can protect your application
  4. 23:28Middleware sees both the request & response object
  5. 24:24Middleware can be a code sharing mechanism
~/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.