Rate limiting
- IP
- forwarded IP
- session id
- request id fallback
Caching
Sharing state through ctx
Middleware and hooks can attach metadata to ctx for later use in the handler:
Rule of thumb
requestis read-only metadata from the transportctxis mutable request-scoped state you want to reuse later