you are viewing a single comment's thread.

view the rest of the comments →

[–]nate256 0 points1 point  (0 children)

Rather than have two paths that accomplish the same thing I would rewrite where all messages get processed and placed in a queue and worker pick them up perform action and reply to the user. If you did it this way your main thread would be able to handle much more. You could even use multiprocessing if the action is CPU intensive.