A Redis-backed redelivery counter for the Rascal AMQP library, allowing RabbitMQ consumers to track message redelivery counts in Redis rather than in-memory. Version 0.2.4 is the latest stable release. It is a small, focused utility that integrates solely with Rascal's redeliveries configuration. Unlike Rascal's built-in counters, this enables shared redelivery limits across multiple broker instances by using a centralized Redis store.
npm install rascal-redis-counterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure Rascal with the Redis counter and subscribe to a queue with redelivery tracking.
Ensure the name in redeliveries.counters (e.g., 'redisCounter') is passed as the same key in the counters object.
Use the shared counter in all broker instances to avoid per-instance redelivery limits.
Use 'redis' v3+ or migrate to a newer package that uses 'ioredis'.
Pin to a specific minor version and test after upgrades.
Ensure the 'client' object in config has valid Redis options (e.g., host, port, db).
Set type to 'redisCounter' in the config and pass the counter as { redisCounter: ... }.Start Redis server or adjust the client config to point to a running instance.
Use require('rascal-redis-counter') directly, not its property or path.Increase the redeliveries limit in the subscription config or handle the message in dead letter.
Ensure Redis persistence is configured; or accept that counters reset after Redis restart.