Launchpad logo and name.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index ][Thread Index ]

Re: [Launchpad-users] launchpadlib with twisted?



On Thu, 18 Mar 2010 10:36:04 +1100, Martin Pool <mbp@xxxxxxxxxxxxx> wrote:
> If I wanted to write a launchpad api client that didn't block on every
> request, what would be the best way to do it?  Can Launchpadlib be
> used with Twisted at all?  Or is it safe to call from multiple threads
> (is the cache threadsafe?), or at least from a single thread dedicated
> to Launchpad?

A) use a native client, or failing that deferToThread I expect.

B) No.

C) No, you need a cache per thread/process. (bug 459418)

D) That would work fine.

Back to A, you could try the (experimental) native client at

  https://launchpad.net/lazr.restfulclient.tx

Contributions gratefully received.

Note that calling anything that returns a collection is currently
broken due to

  https://bugs.launchpad.net/wadllib/+bug/529998

but I have had no response about the viability of my proposed
solution.

Thanks,

James



This is the launchpad-users mailing list archive — see also the general help for Launchpad.net mailing lists.

(Formatted by MHonArc.)