On Feb 15, 12:54 am, "Nicholas O'Leary" <
nick.ole...@gmail.com> wrote:
> HI Zvi,
>
> I may be misreading your post, but I think you are suggesting that QoS
> 0 retained messages do not need to be persisted - or that an
> additional flag could be added to indicate whether a retained message
> should be persisted or not.
>
> Is that right?
>
> Regards,
> Nick
>
> On 14 February 2012 22:00, Zvi <
zvi.avra...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Feb 14, 11:56 pm, Zvi <
zvi.avra...@gmail.com> wrote:
> >> Hi,
>
> >> The spec says: "Retained messages should be kept over restarts of the
> >> server."
> >> But it also says, that QoS = 0 is "Fire and Forget".
>
> >> I interpret it as: "message published with QoS are not guaranteed to
> >> be delivered to subscribers, but in case it hit broker, it should be
> >> persisted to non-volatile memory or database".
>
> > correction, should read as: "message published with QoS = 0 ..."
>
> >> It seems a little bit harsh, since broker may run for months without
> >> restarts and storing messages with QoS=0 in memory should be OK. I
> >> don't see it as it as a big deal if "Last Known Good" value will be
> >> lost, the new one will be generated after server restarts.
> >> If somebody want their retained values to persist, maybe he/she should
> >> use QoS>0 ?
>
> >> Alternatively there are should be option in PUBLISH request, to
> >> specify if retained message should be persisted or not (one additional
> >> bit).
> >> Can we add this to the next MQTT spec revision?
>
> >> BR,
> >> Zvi
>
> > --