Node.js and Python PDF job polling: backoff, timeouts, and audit boundaries
The article argues that PDF job status should be polled by job ID using exponential backoff, with a fixed overall deadline that ends in an explicit terminal state recorded in the consent record. It contends that healthtech services must also address two further boundaries: the signing provider's evidence trail and the data lifecycle covering region, retention, and deletion. The author recommends an admission endpoint paired with a queue worker, so the database rather than a live connection serves as the source of truth for job state. It also distinguishes three separate clocks: the per-request HTTP timeout, the backoff delay between polls, and the total job deadline. A Python example illustrates polling the job-status route while passing in the provider's documented terminal states instead of assuming them.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in