On 22/08/11 09:55 -0500, Rob Martin wrote:
> Cédric, would you describe this change? It seems like it could open some
> very cool possibilities for Tryton, at least that's how it appears to me.

It is not specially cool :-)
The change is just to add the possibity to run trytond undert a wsgi server.

> What is the motivation for adding wsgi support?

Tryton was design to be run into many processes but the default implementation
only use threads. It is good for simple usage and on common hardware.
So even if we could run multiple instance of trytond, it required some
development to get a good way to dispatch requests to each processes.

The first idea was to implement some process forking with multiprocessing but
it will require some re-work of the current BaserServer.
The second idea was to use existing framework to do the job for us and it
comes that wsgi is the common interface for such task in Python world for such
tasks (and also because of dropping Net-RPC and having only HTTP protocols).

So the modivation was to provide an easy way to take benefit of the design of
trytond on large multi-core server (as Python can run on only one at a time).


-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpVVSX6ijeWr.pgp
Description: PGP signature

Reply via email to