
Indie hacker building AI tools for brands at https://www.nitter.cf/t.co/R1OX2tRfGx — now building the internet’s skyline with https://www.nitter.cf/t.co/HY614onX2F.
Joined June 2009
- Tweets931
- Following663
- Followers3.6K
- Likes6K
My servers cost the same every month. The only bill that can jump overnight is the AI API. I don't want to depend on a provider alert arriving on time, so I'm thinking of a daily token counter per account in Postgres that blocks requests over a limit. How do you cap yours?
1
1
141
The web app and the Rust workers connect to Postgres with different roles, so each gets its own statement_timeout. A slow query from a page gets cancelled fast, and a long job in a worker can keep going. It only applies to new connections, so restart both after changing it.
110









