[Nut-upsdev] Some questions on driver implementation and variable names

Arjen de Korte nut+devel at de-korte.org
Sun Feb 25 18:50:41 CET 2007


Arjen de Korte wrote:

> There is. Keep in mind that every change in the state of the driver will
> be pushed to all clients connected to it through the server. Even if
> they don't need it (upsmon for instance will only look at ups.status and
> nothing else). The more variables you add, the more verbose the driver
> will be and the more traffic you'll be generating. And the bigger the
> problems we'll have with growing state trees.

Never mind the above, this is only valid upon startup of a client
connection. After that, clients will have to specifically query for
variables, so the impact of additional variables will probably be
limited here.

The question remains whether the place to add additional 'variables'
should be in the driver or in the clients. I prefer the latter for the
already mentioned reasons. In addition to that, it will be clear what
the origin of such 'variable' is.

Best regards, Arjen



More information about the Nut-upsdev mailing list