79824171

Date: 2025-11-19 07:52:38
Score: 1.5
Natty:
Report link

In Redis Cluster Mode, getting two expiry notifications is actually pretty common. It usually happens because your app ends up subscribing to more than one shard/node, so both nodes fire the same expiry event. Dev likely connects to only one shard, but staging doesn’t.

or or Other possible causes:

  1. A recent failover or resharding (Redis may send events from both old and new masters)

  2. Different persistence settings (AOF/RDB) causing events to replay

  3. Differences in parameter groups between Dev and Staging

There’s no Redis or ElastiCache setting that guarantees “only one notification per key.” The reliable fix is to deduplicate on the consumer side, or ensure your app subscribes only once to the correct shard. Good Luck!

Thanks, Rajat Mishra

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mst_rajatmishra