[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [m2m-iwg] General MQTT Protocol Question
- From: Roger Light <roger@xxxxxxxxxx>
- Date: Tue, 29 May 2012 15:11:33 +0100
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QbXMZNmQaO1kkAMEz5BX8+mMUa2jIRsZuDm/9nBOFE4=; b=vO9vxNL7ohZ3DWevpAs+oxP3R0ZMXgxJdU9MXpXTYp9sZhyomLsX/z6eyj2olAPh0O CP0HAOJ9s6i4Jvy9F3zkFZNA+x8E9twyYQq8jHWfIm/AXCn4+oK5Xke+knGGtvRAdX0h 0uIn793glOi1RRuFp6OWKvhzyQehReNMsBys3xs1D7LvL0mQDxQ7JzTKIgLLIRLT3Hb/ y7vwKe2EEUA91gj8xHX7dxxE+ZM88PGcqX7+bNwAgUbkyoFlJvTrWteoRKqC/e3TM7fe KZNP5eFKImP1ZlwF+CqzMdLxGyBudfrVemAjWR4wQv8RiF3xt44sx75244VevGS1OOrr r0EQ==
> ÂÂÂÂÂÂÂÂÂ Does the protocol indicate that a âsubscribeâ request will always
> trigger an initial notification of the last known value for a topic?
In section 2.1 it states "When a new subscription is established on a
topic, the last retained message on that topic should be sent to the
subscriber with the Retain flag set. If there is no retained message,
nothing is sent".
Although that is only a "should", there is no way to force synchronisation.
> ÂÂÂÂÂÂÂÂÂ Are there any thoughts to supporting an alternative, more
> browser-friendly client protocol layer (probably on top of web sockets) and
> using JSON as the wire format?
There has been a bit of discussion of mqtt over websockets in the
implementation on http://dalelane.co.uk/blog/?p=1625 ) you should be
good to go. It's still mqtt over the wire, but then the payload can be
whatever you want of course.
> ÂÂÂÂÂÂÂÂÂ Are there any testing metrics available that give some
> guidelines/limitations for scalability and performance? (impact of # of
> topics, # of clients, # of connections, frequency of
> publications/notifications, etc.)
There are some benchmarking tests at
https://github.com/chirino/mqtt-benchmark but I can't comment any more