On Thu, 18 Mar 2010 10:36:04 +1100, Martin Pool <[email protected]> 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

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to