Is Your Document Queue Keeping Up?

Use processing age, completion checks, and dead-letter signals together

Published

Is the Document Queue Keeping Up?: Work accepted; Processing observed; Result available.
Work accepted → Processing observed → Result available. The article explains the decisions and system responsibilities at each step.

The document API accepts new files and the uptime check stays green. Review staff still report that OCR results are arriving 45 minutes late. They need to know whether a busy queue is draining, a worker is failing, or accepted files are missing from the next stage altogether.

Measure time to the user-visible completion state and use queue metrics to locate the delay. Keep a separate alarm for dead-letter queues and verify the affected document IDs before closing the incident.

Read age and depth together

A large queue with stable age can be a short burst. Rising age and depth together suggest work is accumulating faster than it can finish. Compare the trend with worker errors, throttles, and completion counts. Judge it against your operational target for that document class, especially if large packets complete more slowly than ordinary uploads.

Measure the journey outside the source queue

The SQS metrics documentation explains that standard queues can move repeatedly received messages to the back and the age metric may exclude repeatedly failing messages. A DLQ’s age reflects time since the move. Pair both queues’ metrics with an acceptance-to-completion measurement or a synthetic document that you can track all the way through.

Read each signal against a specific question
SignalQuestion
Source queue age and depthIs unprocessed work accumulating?
Worker errors and throttlesCan the processing stage keep up with arrivals?
DLQ visible messagesHas processing exhausted retries for any items?
Completion age or canaryCan a reviewer see the expected result within the target time?

Worked example

An illustrative intake pipeline has a 15-minute review target. After a large batch, source queue depth rises for six minutes but falls as new completions appear. One supplier file still misses its deadline and appears in the DLQ. The operator links it to its document ID and opens an assigned exception.

After diagnosing and fixing the processing problem, the operator uses the documented reprocessing process and confirms that the expected OCR result is available for that ID. A quiet alarm alone would have missed the document’s incomplete business outcome.

Checklist

  • Set a completion target for each material processing path.
  • Compare queue depth and age with worker health and actual completions.
  • Alert on the DLQ and specify who resolves affected records.
  • Verify canaries and affected documents after recovery.

Measure the result reviewers need

Measure the stage the user is waiting for. Queue metrics explain the delay, while a completion check proves the result is available.

      Start with FormKiQ Core

      The open-source foundation — API-first, deployable into your own AWS account, and free to use. Right for architecture validation and early implementation.

      Get Started Free

      Deploy FormKiQ Essentials or Advanced

      Production-ready editions for departments and complex workflows. Start with a Proof-of-Value deployment or go straight to production.

      Explore Options

      Plan an Enterprise Rollout

      For governance-heavy environments with residency, sovereignty, assurance, and multi-jurisdiction requirements. Talk to us about the right deployment model.

      Book a Call