[pylucene-dev] PyLucene in CherryPy

Julien Anguenot ja at nuxeo.com
Thu Jun 29 14:18:52 PDT 2006


Ken Kinder wrote:
> On 6/29/06, Julien Anguenot <ja at nuxeo.com> wrote:
>> nope never checked that out.
>>
>> Just checked the documentation of PB after your mail. The thing is that
>> I don't want any Python specifics server side. I'd like to be able to
>> request the NXLucene server from Java code for instance. Am I missing
>> something here ?
> 
> Technically, Perspective Broker is not limited to Python, although the
> only other implementation I know of is actually for Java:
> http://www.itamarst.org/software/twistedjava/

ok thanks for the pointer Ken.

> One problem I've come across using xmlrpc (with Twisted) in a web
> environment, is that when traffic is high you run out of file handles
> on your server. 100 web server requests means 100 (or more) HTTP
> connections for HTTP/1.0 -- which is by far the easiest to
> implemenent. (I'm not sure Twisted's xmlrpc service supports
> HTTP/1.1!)

It is partially supported within twisted.web and will be fully supported
within twisted.web2. I'm forcing HTTP/1.1 using a custom persistent
transport on my XML-RPC connections from Zope to avoid the problem of
multiple connections you mentioned.

You can see it here :
https://svn.nuxeo.org/trac/pub/browser/Zope3/nuxeo.lucene/trunk/src/nuxeo/lucene/xmlrpc.py

Of course, this is not the best solution I do agree with you guys...

For the moment, since I'm only using the server from Zope you can't
really see the time spent via XML-RPC as a real blocker since Zope Page
Template rendering is not the fastest thing out there ;)

> So let's say you have 4 round-robin web servers all hitting a central
> server. If each of those takes 500 hits, that means 2,000 connections
> to the web server. Over PB, it means 4 connections.
> 
> And as Pete Fein mentioned, xmlrpc serialization isn't always fast,
> especially for large, complex data structures.

Yeah I'm sure about that.

Thanks for the comments. I'll give a try as soon as I can. Though, I'm
planning to use ICE at first to replace XML-RPC.

Cheers,

	J.

-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20060629/a61ab92d/signature.pgp


More information about the pylucene-dev mailing list