Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize the Redis connection lazily #558

Closed
ash2k opened this issue Jun 7, 2024 · 2 comments
Closed

Initialize the Redis connection lazily #558

ash2k opened this issue Jun 7, 2024 · 2 comments

Comments

@ash2k
Copy link
Contributor

ash2k commented Jun 7, 2024

If Redis is down (e.g. temporarily), my application fails to start. It'd be more consistent that client construction was separate from actually trying to talk to Redis. If Redis is available, then application starts fine, then Redis becomes unavailable and Redis I/O just fails - application still works otherwise. Would be more consistent if startup of my application was not affected by Redis availability.

Would it be possible to change the behavior like this? Try to connect to Redis asynchronously or on first use?

@SoulPancake
Copy link
Contributor

@ash2k like this #489?

@ash2k
Copy link
Contributor Author

ash2k commented Jun 7, 2024

Yes, it's the same issue. Thanks.

@ash2k ash2k closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants