Giter VIP home page Giter VIP logo

Comments (8)

nelsonic avatar nelsonic commented on May 27, 2024 1

@felipekm are you referring to Node.js cluster.fork for running your Hapi server...?

from hapi-socketio-redis-chat-example.

felipekm avatar felipekm commented on May 27, 2024 1

Ok @nelsonic, actually I did it with Socket.IO / Redis and HapiJS ♥
Thanks for your time

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on May 27, 2024

@felipekm the clustering is handled by Redis. see: http://redis.io/topics/cluster-tutorial
then the we can spin up as many Hapi servers as required to handle the WebSocket load.

from hapi-socketio-redis-chat-example.

felipekm avatar felipekm commented on May 27, 2024

@nelsonic So if I ran it with cluster forks will works smoothly?
I had some troubles with my clustered core server when I started to use Redis, only the first user that subscribe to a specific publisher was able to receive messages, the second one that subscribe was only able to send data throught the websocket, Not sure if you got my point.

Thanks for your time

from hapi-socketio-redis-chat-example.

felipekm avatar felipekm commented on May 27, 2024

Yes! Exactly!

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on May 27, 2024

ahh... do you have some sample code for how you are invoking this? 💭

If you are deploying your Hapi app to your own infrastructure you typically let something like _guvnor_ handle your process(es) instead of trying to write your own clustering support for the simple reason that his has built-in monitoring, logging and re-start settings.

from hapi-socketio-redis-chat-example.

felipekm avatar felipekm commented on May 27, 2024

Yeah, actually I'm developing this, will give a try it clusterd tmrw and let you know.
Thanks

from hapi-socketio-redis-chat-example.

nelsonic avatar nelsonic commented on May 27, 2024

@felipekm this is more a question for: https://github.com/dwyl/learn-hapi
please re-open if you are still having issues. 👍

from hapi-socketio-redis-chat-example.

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.