Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] MQTT-SN to MQTT Gateway

"So, you are seeing this as more of a toolkit or framework, with integration with other components at the code level, rather then a service which would be integrated at the system level."

I'm not sure what you mean by this.  The intent is just to make sure the gateway is portable to any network stack and operating system, within reason.   A service can be built out of the core plus plug in "modules".

The primary goal I had in mind for this gateway was to be small, for embedded environments, in the first instance.   For a transparent gateway, a few tens of clients sounds reasonable.  If we can included aggregation, many more MQTT-SN clients  become feasible. 

For greater scale, we could have a Java or Python implementation.  Or, maybe part of Kura.

Ian

On 02/22/2016 04:25 PM, Paul Kierstead wrote:

On Sat, 20 Feb 2016 at 06:12 Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Paul,

my plan is that the networking classes be replaceable, as they are for MQTTClient.  The intention is that networking classes can then be written for UDP, ZigBee or any suitable networking transport, even serial.

So, you are seeing this as more of a toolkit or framework, with integration with other components at the code level, rather then a service which would be integrated at the system level.

Do you have an intended scale in mind? If we keep the gateway super tight and constrained, I'd have some concerns with a lot of clients; for example, if I have a couple of hundred MQTTSN clients or more, and we run without threads or async calls, there could be quite a bit of data loss while we spin up TCP connections to the MQTT server (especially if TLS is used) as the MQTTSN clients will be blocked, and there is a fair chance they are using poorly buffered serial connections. Using async or threads would likely demand usage of dynamic memory usage or considerably more complexity.

Maybe two should target two gateway profiles: A "powerful" one intended run on something with lax constrains (lets say raspberry pi as the lower end) and a very constrained one, intended for fewer clients. 

Or maybe (as has been known to happen) I am worrying for nothing.

In any case, I'm certainly willing to run some testing.


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


Back to the top