From: Daniel Veillard <veillard@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Jeremy Katz <katzj@redhat.com>,
xen-devel <xen-devel@lists.xensource.com>,
Ewan Mellor <ewan@xensource.com>, Sean Dague <japh@us.ibm.com>
Subject: Re: [RFC] Xend XML-RPC Refactoring
Date: Wed, 1 Feb 2006 04:37:55 -0500 [thread overview]
Message-ID: <20060201093755.GF3938@redhat.com> (raw)
In-Reply-To: <43DFD5E6.7090909@us.ibm.com>
On Tue, Jan 31, 2006 at 03:25:58PM -0600, Anthony Liguori wrote:
> Hi,
>
> I wanted to give the list a heads up about something a number of us
> discussed at the recent XenSummit.
>
> We would like to simplify Xend by utilizing more of the standard Python
> library and relying on less of our own code. The most obvious thing
> here is the current S-Expression/HTTP RPC interface. We would like to
> replace this with XML-RPC using Python's builtin support (xmlrpclib and
> SimpleXMLRPCServer).
>
> I've got some initial code and more details on the wiki
> (http://wiki.xensource.com/xenwiki/Xend/XML-RPC). Early estimates are
> that this would reduce the code in Xend by about 33% (5k slocs). We
> would also like to standardize this XML-RPC interface so that
> third-parties write apps to this interface without worrying about
> massive breakage.
>
> Thoughts?
Going to XML is fine by me, the only drawback I can think of is in term
of versatility and larger (but stabler) dependancies. To be a bit more
explicit on the first point if you pass an S-exp it's some kind of free
form function call, the caller may pass more arguments or a slightly different
set without breaking fundamentally the interface, the callee may still be able
to extract the set of informations he needs to prepare the call, the same
applies in terms of result set too. Think about the call gathering informations
about a running domain, version 4.0 of xen may return a superset of what 3.0
returns without harming 3.0 based clients, so there is clearly some
added flexibility compared to a normal RPC operation.
On the other hand being able to feeze a clear RPC based API would be a good
sign, that we know exactly how we intend to keep the APIs in the future.
And when it comes to the final API design, the current ones are IMHO too
name oriented when it comes to naming domains, I would really prefer the
final XML-RPC ones to be more id and uuid oriented, as I think they are
more safe (especially when one considers the rename capacity, this may lead to
numerous races between the time one client does the uuid -> name resolution
and the next name based next call).
thanks for starting this !
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
next prev parent reply other threads:[~2006-02-01 9:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 21:25 [RFC] Xend XML-RPC Refactoring Anthony Liguori
2006-01-31 21:36 ` Ronald G Minnich
2006-01-31 21:47 ` Matt Sottile
2006-01-31 21:58 ` Anthony Liguori
2006-02-01 9:53 ` Ewan Mellor
2006-02-01 9:37 ` Daniel Veillard [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-07 23:37 Ian Pratt
2006-03-08 0:07 ` Anthony Liguori
2006-03-11 20:55 ` Ewan Mellor
2006-03-11 21:36 ` Daniel Veillard
2006-03-11 22:20 ` Ewan Mellor
2006-03-12 1:46 ` Anthony Liguori
2006-03-12 9:27 ` Daniel Veillard
2006-03-12 9:57 ` Daniel Veillard
2006-03-12 17:41 ` Anthony Liguori
2006-03-12 1:44 ` Anthony Liguori
2006-03-13 10:30 ` Ewan Mellor
2006-03-14 6:58 ` Anthony Liguori
2006-03-14 8:35 ` Ewan Mellor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060201093755.GF3938@redhat.com \
--to=veillard@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=ewan@xensource.com \
--cc=japh@us.ibm.com \
--cc=katzj@redhat.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.