Hi Nik,

That code while it looks pretty much the same in WSGI server setup
would not work well for SQLAlchemy application because all database
access calls would be done in synchronous mode and that means for
instance that single query that takes long time to execute would block
entire web application for its execution time.

Also there is small but important change that should be done to that
code to make it work for long-polling requests. WSGIServer from
gevent.wsgi should be replaced by one from gevent.pywsgi.

And I personally don't like hard-coding configuration which might be
fine for quick-n-dirty prototype but doesn't "smell" good for any
serious project.

As to logging while it is off-topic for this discussion if you could
describe your problems with getting it working you'd definitely get
help from group members.

Cheers
Alex

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to