Ken Kinder wrote:
> On 6/29/06, Julien Anguenot <[EMAIL PROTECTED]> 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

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to