---
title: "Discussion on \"How to use Redis pub/sub to handle socket.io sessions across multiple instances ?\" | Hashnode"
description: "Discussion on \"How to use Redis pub/sub to handle socket.io sessions across multiple instances ?\". When horizontally scaling, new server instance can’t send the changes to those connected to the existing server using socket.io so Redis pub/sub"
url: "https://hashnode.com/posts/how-to-use-redis-pubsub-to-handle-socketio-sessions-across-multiple-instances/631aa3135abe8613b3d33440"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use Redis pub/sub to handle socket.io sessions across multiple instances ?](https://sosha.hashnode.dev/how-to-use-redis-pubsub-to-handle-socketio-sessions-across-multiple-instances?utm_source=hashnode&utm_medium=feed)

When horizontally scaling, new server instance can’t send the changes to those connected to the existing server using socket.io so Redis pub/sub

Sep 9, 2022 · 6 min read · sosha.hashnode.dev  
Read the article

-   [#redis](https://hashnode.com/tag/redis)
-   [#pubsub](https://hashnode.com/tag/pubsub)
-   [#socketio](https://hashnode.com/tag/socketio)
-   [#golang](https://hashnode.com/tag/golang)

## Written by

[Sonu Sharma](https://hashnode.com/@sosha)

@sosha

  
[View profile](https://hashnode.com/@sosha)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
