Git Product home page Git Product logo

Comments (6)

lemunozm avatar lemunozm commented on August 16, 2024 1

Maybe you can create connections between each instance, let each instance know the other, and pass the User3 info to User1, for example. From Instance1 perspective, Instance2 would be like "another" user.

from message-io.

lemunozm avatar lemunozm commented on August 16, 2024 1

Although the above would not imply "scaling" as it is. I think the best way is to redirect users belonging to the same room to the same instance.

from message-io.

lemunozm avatar lemunozm commented on August 16, 2024

Hi!

Could you expand on what you mean by scaling the application or give a bit more context? message-io supports multiple connections/listeners

from message-io.

daxartio avatar daxartio commented on August 16, 2024

Of course.

I mean that i want to launch a few instances of application in k8s.

from message-io.

lemunozm avatar lemunozm commented on August 16, 2024

I think this problem is out of the scope of message-io.

In the same way, you would solve this problem using any other library, you can apply for it.
Suppose you have a typical http server and you launch several instances in k8s, how do you share data between those instances? The same solution you use there you can use in message-io. i.e. a central coordination instance or sharing the same database among those instances

from message-io.

daxartio avatar daxartio commented on August 16, 2024

Ok, thanks

I thought there is a right way to route traffic between instances.

Maybe i need to use another library for that. More likely it will be consistent hashing by a room_id or another key
image

from message-io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.