question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`enableOfflineQueue` in redis client

See original GitHub issue

Question

  • Why the redis client should be configured as enableOfflineQueue: false? When I tried without this option, rate-limit does work well.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
animircommented, Aug 8, 2019

closing this. be free to re-open if something comes up

0reactions
animircommented, Aug 6, 2019

@posquit0 There was also another reason of disabling offline queue. Since this package supports both node_redis and ioredis client packages, I do not want to bring any complications to rate-limiter-flexible docs. It works different for node_redis and ioredis: node_redis uses offline queue on all Redis sever fails, but ioredis uses it only for requests sent before ready event.

Read more comments on GitHub >

github_iconTop Results From Across the Web

API - ioredis - Read the Docs
enableOfflineQueue ], boolean, true, By default, if there is no active connection ... This command will create a new connection to Redis and...
Read more >
node.js and redis cluster: handling disconnections
I'm using ioredis to connect to a redis cluster from node.js and trying ... never again try to reconnect (if enableOfflineQueue is false), ......
Read more >
Ioredis NPM - npm.io
ioredis is a robust, full-featured Redis client that is used in the world's biggest online commerce company Alibaba and many other awesome companies....
Read more >
Failing fast when Redis is down - BullMQ
In this case, you can just pass the option "enableOfflineQueue: false", ... Currently, there is a limitation in that the Redis instance must...
Read more >
luin/ioredis - Gitter
Redis#connect() will reject immediately when the connection is not alive. ... On a slightly different topic, we disabled enableOfflineQueue because it was ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found