Azathoth wrote:
Having extra packet(s) for request is imho insignificant compared to the overall resource consumption of the application, no? Even if you used memcached that's a few more TCP packets going through the stack on each request anyways (not including the session payload).
From looking at some packet captures, it isn't that big of a deal. It looks like spreading the request across two packets added about 0.32 ms, which is about 1% of the RTT in this case. For comparison, it took 2.49 ms for nginx to start sending the response after the end of the HTTP request was received. So, disregard that point.
But still...

Quote:
BTW: You say you pickle. I'm a Python user too, my fav framework is Pyramid. Did you consider simplejson instead?
I used "pickle" as a generic term. In reality, I use Django, which "takes care" of that whole thing. I believe it encodes the data upon sheep entrails. (I make it sound like I do all this cool stuff, but I don't. It just works out of the box like that.)
_________________
Code:
/* TODO: need to add signature to posts */