API work

William Reade william.reade at canonical.com
Wed Nov 6 13:30:35 UTC 2013


On Wed, Nov 6, 2013 at 1:49 PM, roger peppe <rogpeppe at gmail.com> wrote:

> FWIW I'm strongly in favour of *not* sending charms through
> the RPC interface - it is likely not incur a significant performance
> hit over a high latency connection. I don't *think* that implementing
> a PUT handler on the API server should be too much of a problem.
>

I'd like to see a slightly more detailed plan here, but I'm not against
that in principle.

It seems wrong to me too. I suggest we send the format directly
> over the wire in JSON format (we can use the struct type already
> defined in StatusCommand.Run, with component types suitable
> exported). The only problem we have sending JSON across the wire
> is when we send interface{} values, and that struct does not contain
> any of those, so I think it should Just Work.
>

D'oh. Forgot we had the structs all ready to go. SGTM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20131106/c5176c00/attachment.html>


More information about the Juju-dev mailing list