Short answer: use a cron trigger to create a bounded cleanup job, let a queue consumer process it in small PostgreSQL transactions, and make the database receipt the authority for completion. Redis TTL can remove a second lookup path, but it should not be the only record when a customer-support ...
Source: [Dev.to](https://dev.to/loganpierce2073/auditable-nodejs-cron-cleanup-expired-sessions-tokens-queues-redis-ttl-webhooks-4cp4)