(seemingly) simple but useful WebService expansion?

Max Kanat-Alexander mkanat at bugzilla.org
Thu Jul 3 19:33:52 UTC 2008


On Thu, 3 Jul 2008 11:38:02 -0600 "Scott Saad" <saadsj at gmail.com> wrote:
> Sorry about the verbosity on that one, will definitely keep it short
> and sweet in the future. :-)
> 
> I've been following the conversations at
> https://bugzilla.mozilla.org/show_bug.cgi?id=398281:
> 
> I understand not wanting to provide more than one way of getting at
> bug information. What concerns me is the possibility that the concept
> of Bug.search may be overkill. [snip]

	Hmm. Well, one of the concerns with these sorts of interfaces
is being able to do as much as possible in one call, because there can
be a lot of latency in a single call (particularly for installations
that aren't running under mod_perl).

	Also, the basic case will look pretty simple:

	Bug.search({ match => { product => 'TestProduct' } })

	In normal API design I'd be all with you on the
one-function-one-task design (and in fact that's the way I originally
wanted to design the interface), but because this is a web service, we
need to make our individual functions fairly powerful to be useful to
the clients consuming them (from my experience talking to those
clients). Also, operations have to be atomic (particularly important
with the latency issue) which is only possible in our case with single,
powerful functions.

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list