Comments (9)
you can embed Mosca and use its own API to do all the above things
from mosca.
could you not just use PM2 instead https://github.com/Unitech/pm2. This has a built-in loadbalancer which uses the node-cluster module.
from mosca.
This is not going to happen, as Mosca requires a database. If it's LevelDB is an embedded one, and it's impossible to use inside cluster. If it's a remote one, then you can just spawn a set of Moscas and connect them to a remote broker.
So, it's not needed.
from mosca.
It seems it will be possible to use LevelDB across multiple clustered instances with Level/party#1.
from mosca.
You can launch multiple mosca instances using Redis or Mongo.
No plans at the moment, but if you want to contribute I'll help you.
from mosca.
Thanks for your reply. I use mulitple mosca instances with MongoDB. It works.
About cluster. I just think can we use redis or something to implement cluster just like socket.io.
from mosca.
Is it possible to have plugin option in mosca ?
from mosca.
@karthik2883 what do you mean?
from mosca.
I mean custom plugin option (callbacks) .
Some Mqtt broker are giving custom plugin option (callbacks) which can be customize to fit the requirement
Example
- Authenticate user with database,
- Add or subscribe to default topics
- Save all the publish message into the db ,
- Publish message internally to the relevant topics
These are some feature can be handle via plugin.
from mosca.
Related Issues (20)
- Mosca, Docker, Reverse Proxy and Real IP
- Error: invalid schema, expected mongodb
- How we can Subscribe/Unsubscribe topics for particular client from mosca broker
- Why two processes...
- Feature request: remove retained messages
- client.on get stuck waiting for message HOT 2
- TIME_WAIT issue
- How to bridge to zmq?
- infinite loop via npm install
- Mqtt broker is disconnecting frequently even though it has a unique client id
- Strange ip address
- MQTT over WS with Mosca+Express HOT 3
- Redis TLS option not supported
- password in authenticate function is a buffer
- regex used on looking up retained messages HOT 1
- How to configure TLS correctly in Mosca HOT 2
- fullergalway/kafkamqtt not found
- Feature Request: Use Node 10 worker threads for real parallelization
- How to get a list of connected clients?
- [question]I cannot get more than 200 connections HOT 1
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 mosca.