Python Tornado Websocket Handler blocks while receiving data -
i have 2 pretty simple tornado-based websocket handlers running in same process, each of function on own. however, when 1 receiving large amount of data (>8mb) process blocks , other unable process messages until of data has been received. there way can around , prevent tornado blocking here?
tornado works large amount of short concurrent requests. not split long request smaller ones. process blocks.
why passing big amount of data using sockets? final solution depends on answer question.
if don't have big requests - use haproxy in front of multiple tornado instances.
Comments
Post a Comment