Postgres statement_timeout per Request: Bounding Monolith Queries
Turn an HTTP deadline into per-request Postgres statement_timeout and lock_timeout with SET LOCAL, cancel abandoned queries, and handle the errors safely.
21 min read
Tag
Turn an HTTP deadline into per-request Postgres statement_timeout and lock_timeout with SET LOCAL, cancel abandoned queries, and handle the errors safely.
21 min read
Set PostgreSQL statement_timeout per request from the remaining deadline, pair it with lock_timeout, and cancel queries when the HTTP request is abandoned.
17 min read