Running it in productionintermediate
A healthcheck is how the platform knows to restart your container, and running as a non-root user is how a bug stops being a breach.
An API and a Postgres, wired so the API does not start against a database that is not ready and the data does not vanish on `docker compose down`.
docker compose up starts cleanly from cold, and down then up still has yesterday data.
Published in full, before you start — every point is one of these and there is nothing else.
A healthcheck is how the platform knows to restart your container, and running as a non-root user is how a bug stops being a breach.
A proxy in front of a paid API needs a rate limit or one user can spend your whole budget, and a cancellation token so a closed browser tab stops the work.
IQueryable lets you build a query in pieces and send one efficient SQL statement — the classic mistake is fetching every row into memory and filtering there.
A hardcoded API secret is a secret in your git history; IOptions<T> binds configuration into a typed object your code asks for like anything else.