Comments (8)
@felipekm are you referring to Node.js cluster.fork
for running your Hapi server...?
from hapi-socketio-redis-chat-example.
Ok @nelsonic, actually I did it with Socket.IO / Redis and HapiJS ♥
Thanks for your time
from hapi-socketio-redis-chat-example.
@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.
@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.
Yes! Exactly!
from hapi-socketio-redis-chat-example.
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.
Yeah, actually I'm developing this, will give a try it clusterd tmrw and let you know.
Thanks
from hapi-socketio-redis-chat-example.
@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)
- Compiled Elm code missing from heroku HOT 10
- Error while running command npm start HOT 7
- Error. Can't run example. HOT 3
- Why do you use ports to send message instead of WebSocket.send HOT 1
- Unable to run the demo version in 2018 HOT 1
- Reply.view error HOT 2
- Send chat message from command line HOT 1
- Time and Date should be set on the serverside HOT 1
- Update Dependencies to latest version of Hapi
- Add CONTRIBUTING.md File to Repo
- Elm UI with Tachyons HOT 21
- Not working locally on npm start
- Empty message form submitting anyway HOT 1
- (DO NOT) UPDATE SOCKET.IO to v2
- Should we be using socket.io with elm? HOT 5
- Using Tachyons to replicate 'Send' form HOT 2
- Redis deprecation warnings on server start
- Epic: creating dwylchat HOT 1
- Create online users widget
- create initial design
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hapi-socketio-redis-chat-example.