Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:30:11+00:00 2026-06-12T15:30:11+00:00

I have created a nodejs application which works fine in a single core. This

  • 0

I have created a nodejs application which works fine in a single core. This application uses socket.io for light&fast communication.

Now, I wanted to scale my application vertically, by enabling it to run on multi-core system using cluster module in nodejs.

Everything in my application stores data in Redis, therefore, there isn’t a problem dealing with some basic data & sessions.

However, when I spawn multiple worker processes using cluster, it seems that each worker has its own socket handling.

For example, lets assume there is a chat room called ‘guest’ room.

User A and user B connects to the room, and they are distributed to the different worker process.

Since they are in different processs and these processes do not share sockets listener, there is no way for user A and user B to talk to each other.

What is a good approach to solve this problem? Does socket.io supports multi-core system?

Is socket.io only for single core use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:30:12+00:00Added an answer on June 12, 2026 at 3:30 pm

    You could use socket.io as normal but with a redis store in the background. It will also support multiple instances on socket.io without any external library. It even supports rooms over multiple instances.

    Link to how to set up socket.io with redis: Using Multiples Nodes/Processes with socket.io

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an application having tab activity which in turn has 5 different
I have this code as part of a nodejs application that runs behind an
I created a Layout Control that uses the ExtLib Application Layout Control. I have
I have created a little application to convert XML which I get out of
I have a module I created for a node.js app. The app also uses
I have a WPF Path object which is created by reading nodes from a
I have two tree, which contains nodes, after I've created them, I take all
I'm creating a plugin for an application which works with a concept of families.
I have developed an application which can create Xml files from Xml schema with
I want to produce a simple enough application which uses a QTreeView widget to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.