On Jul 8, 2014, at 1:59 PM, marsupo...@gmail.com wrote:

> On Tuesday, July 8, 2014 4:29:08 AM UTC+2, Sharoon Thomas wrote:
> I have not used flask-tryton itself with gevent, but I think it should just 
> work fine.
> 
> We use it with nereid and in specific for nereid-chat [1] which in turn uses 
> http
> event-streams [2] a.k.a server sent events to have long open connections. 
> Without
> greenlets this would not scale.
> 
> My guess is you would only have to run the application using the WSGIServer
> bundled with gevent.pywsgi. You can check the WSGI application file [3] we 
> use with 
> nereid-chat if it helps.
> 
> 
> [1] https://github.com/openlabs/nereid-chat
> 
> very interesting, thanks !
> just one question tough:
> aren't we supposed to do something special with psycopg2 when patching the 
> other stdlib with gevent ? Or even use psycogreen ?
> I don't understand how do you make psycopg2 not blocking with gevent.

The current example is gunicorn non-blocking + psycopg2 blocking (assuming DB 
is not the bottleneck).
However psycogreen.gevent.patch_psycopg() should make psycopg2 nonblocking as 
well.

> 
> 
> Concerning nereid, I'd like to gather more information about this project. I 
> knew it's existence but I didn't consider it and I can't remember why.
> Can you tell me where it is possible to discuss about the nereid project ? Is 
> there a dedicated forum or somthing ?
> I don't know if this group is appropriate for nereid discussion ?

As far as the mailing list is concerned, we would prefer to use the tryton 
mailing lists itself.
You can usually find us on the IRC or you are welcome to the Openlabs web based 
chat 
lounge at http://www.hipchat.com/gEgJ1dXcd

We are happy to help you get started with nereid and answer your questions.

Thanks & Regards


Sharoon Thomas
CEO & Chief Software Architect
Openlabs Technologies & Consulting (P) Limited

w: http://www.openlabs.co.in
m: +1 813.793.6736 (OPEN) Extn. 200
t: @sharoonthomas 

- We win when our customers win

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to