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 tha
Solution 1:
There is no ready recipe, you can use mmap or message provider like RabbitMQ or simple noSQL DB like Redis. In your case I would have try ZeroMQ maybe.
Solution 2:
If it's a "chat" style application, you might be better off looking at Redis and the Pub/Sub handling that is implemented there.
This is a good Question that was asked about the pub/sub. What is the proper way to handle Redis connection in Tornado ? (Async - Pub/Sub)
Post a Comment for "Sharing Data Between Multiple Tornado Instances"