Skip to content

What happens if Redis server is down? Doesn't it crash my application? #425

@awesomelike

Description

@awesomelike

I have connected my socket.io server to Redis adapter.
I have set up retry_strategy for Redis to try reconnecting every 5 seconds.

What happens if the Redis server is down?
Does it break my socket.io functionality? Does it crash my application?
Should I take some action/handle errors to prevent the app from crashing on socket.io side?
I have already set up error handlers for subClient and pubClient.

Currently, I see that, I have these logs:

Error: Redis connection in broken state: connection timeout exceeded.
at RedisClient.connection_gone
at Socket.<anonymous> 
at Socket.EventEmitter.emit

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions