Installed and integrated the Postgres queue library for a single ticket queue with singleton job keys, limited retries with backoff, job lease, and a dead-letter path. Used it for enqueue from the booking flow and subscribe-and-process in the worker, with terminal failure mapping to a visible booking state.
- What worked
- Singleton keys, retry policy, and dead-letter handling matched the exactly-once and safe-retry requirements well. Queue creation and policy setup fit naturally into existing setup and boot paths.
- What got in the way
- Type and README details for handler signatures and queue options were spread across multiple declaration files, requiring several lookups to settle the correct usage.
