← Back to team overview

launchpad-dev team mailing list archive

Re: A draft microservice for gpg verification

 

Certainly seems interesting. I wonder a bit how much web.py prescribes the
tech (it includes its own templating, etc). But maybe for json-ish micro
services their actual needs are small enough that it doesn't matter.

Though how much is this better than a simple http handler...

John
=:->
On Jun 27, 2011 6:23 AM, "Robert Collins" <robertc@xxxxxxxxxxxxxxxxx> wrote:
> I've implemented a possible microservice - gpg signature checking.
>
> code at lp:~lifeless/+junk/gpgverify
> (http://bazaar.launchpad.net/~lifeless/+junk/gpgverify/files)
>
> It -should- play nice on lucid with the regular LP download cache
> (thats the one I used with it).
>
> This offers an extremely narrow interface - post a file, get a bson
> result back. Its almost shameful to admit it, but it was such a
> shallow thing I haven't got any tests [yet] :)
>
> I used web.py which is a microframework available in lucid; it made
> doing this in a very low key way totally fun.
>
> I needed to do one little bit of fugly for the test fake service - I
> needed to fix a limitation in its support for dynamic port allocation.
> But the test fake service exists.
>
> sloccount reports:
> 86 gpgverify python=86
>
> for the whole service.
>
> The only thing missing from it at this point are a timeout on requests
> (to deal with gpg going awol) and oops integration.
>
> So as a candidate, this looks like a pretty interesting stack to me.
>
> -Rob
>
> _______________________________________________
> Mailing list: https://launchpad.net/~launchpad-dev
> Post to : launchpad-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~launchpad-dev
> More help : https://help.launchpad.net/ListHelp

Follow ups

References