Need advice about which tool to choose?Ask the StackShare community!
I want to use Redis non-blocking with Tornado. How I should use the Redis code using tornadis to achieve max number of connections. I had used the tornadis and with WebSocket handler, I inherited the Redis based pub/sub client inside a class and in the main loop we created the instance of a class. but it decreases the numbr of connections with a huge amount. how we should configure?
If there is a way to connect to Redis via UNIX sockets instead of TCP then it worth it to switch over. We had a busy e-commerce site with heavy Redis usage and we saw a 4-5x(!) performance improvement during testing situations with a high number of concurrent requests.
I know that the probability these days is rather low to have such a scenario where you have Redis and the app on the same host (and thus the ability to connect over UNIX sockets). But if that's the case, it's definitely worth it.
Pros of asyncio
- Cooperative Multitasking4
- I/O Wait4
- Network Call3
- I/O bound computation2
Pros of Tornado
- Open source37
- So fast31
- Great for microservices architecture27
- Websockets20
- Simple17
- Asynchronous14
- Python11
- Lightweight7
- Handles well persistent connexions3
Sign up to add or upvote prosMake informed product decisions
Cons of asyncio
Cons of Tornado
- Event loop is complicated2