On Jul 8, 2014, at 3:22 AM, marsupo...@gmail.com wrote: > Is it possible to use flask-tryton in order to make a gevented wsgi > application ? > > Is there any trap I should avoid ?
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 [2] https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events [3] https://github.com/openlabs/nereid-chat/blob/master/application.py#L8 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
signature.asc
Description: Message signed with OpenPGP using GPGMail