Closed j3r0lin closed 8 years ago
What are you quoting here? it sounds like a pretty bald faced promo for hive.
yes it is. But it really has that problem if only one consumer processes all messages from many producers. The rate of receiving messages of a single client is not enough. How could I handle this?
Works for me. You can also use topic heirarchies to split load. You can also use an alternative broker that does things differently. Hive obviously is one. VerneMQ is another, I haven't followed the docs for all known brokers, as for many people, it's perfectly reasonable to implement things with a regular client.
I prefer mosquitto, but I don't think use topic to split load is the best idea, well, I need to think another way . Close this after all.
This really depends on your message load. If you are trying to process a large number of messages per second then a client will struggle - but then so would mosquitto. Don't forget the broker is only single threaded at the moment so putting in hooks would just slow everything down. This is a separate problem that needs to be addressed for the authentication plugins anyway.
I presume you've already tried this and run into problems? What rate did you achieve with the client?
I don't mean to process messages in the plugin, but send it to a another place like AMQP. And also this is not my only requirements, another one is I need to know when clients connected and disconnected, this is another reason I wanted for a hook plugin.
according to this, can mosquitto allow developers to write plugin to add hooks(like onConnect, onPublish, etc)?