Sharing data between multiple tornado instances
问题 I have nginx server proxying requests to a few tornado instances. Each tornado instance is based on the long-polling chat demo that comes with Tornado. The script has an array that stores the callbacks, which are then used to dispatch messages back to the client. The problem I have is that when there are multiple tornado instances, nginx uses a round-robin strategy. Since the callbacks are stored per instance (and not maintained centrally), depending on when the request is made, it goes to