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

Enable the ability for the spring application to still start if Redis is unavailable #3588

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbf154
Copy link

@jbf154 jbf154 commented Apr 30, 2021

In some use cases, using a redis cache isn't required for a service to still function. In these cases, it would be helpful to still allow a spring boot application to start even if a redis instance is unavailable or unreachable. This is particularly true in a Kubernetes environment where the pod running your service may get rescheduled etc. If redis isn't available during that period where your service is being restarted, then the application will not start.

These changes capture the exception around the Redisson.create() method and give the end-user the ability to do something else if redis is unavailable. I've updated the README with a simple example of using the NoOpCacheManager.

…t if redis is not reachable

Signed-off-by: Ben Fisler <[email protected]>
@jbf154 jbf154 force-pushed the feature/allow_startup_when_redis_unavailable branch from bc9d512 to 90593e2 Compare April 30, 2021 20:50
@jbf154
Copy link
Author

jbf154 commented May 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant