← Back to team overview

launchpad-dev team mailing list archive

Re: performance tuesday - services design progress

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11-06-01 12:02 PM, Barry Warsaw wrote:
> On Jun 01, 2011, at 10:23 AM, Aaron Bentley wrote:
> 
>> In simple REST implementations, the fact that every URL is an object can
>> be a significant performance issue, because you must access them once at
>> a time, instead of as a group.  If we go this route, we should be sure
>> that it's easy do do things like retrieving a ProductSeries and its
>> linked branch in a single call.
> 
> You do that by defining a resource that represents the group of things you
> want to operate on.  It can be tricky sometimes, but it's doable.

Oh, absolutely.  I was pointing out a pothole that we can certainly
avoid if we are careful.

On the other hand, we could wind up with too many groups if we took that
approach.  And rather than defining such groups in advance, a system
that gave us the flexibility to define the group we need at call-time
might be a better solution.

e.g. not

http://launchpad.net/+productseries-and-branch/foo

but

http://launchpad.net?productseries=%22foo%22&branch=productseries/branch

> BTW, lazr.restful is only REST-ish because it defines backdoor function calls.

Yes, and this makes me doubt that pure REST is actually a good way to do
RPC.  Dirty REST?  Maybe...

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3mcowACgkQ0F+nu1YWqI3VHACeJnsO4B+APGGcakYloQu4ovRt
tIAAnROJWkJWaJPpLn3tji7t6kpGHukD
=gpBW
-----END PGP SIGNATURE-----


Follow ups

References