I'm using gevent to build a server which do some redis stuff and return the result to client. But the performance is bad. After some research I found that there is only one connection to redis. It looks like there is only one greenlet spawned. Here is my program:
<script src="https://gist.github.com/amazingjxq/5274574.js"></script>
Is there something wrong with my program? Why there is only one connection to redis?
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I'm using gevent to build a server which do some redis stuff and return the result to client. But the performance is bad. After some research I found that there is only one connection to redis. It looks like there is only one greenlet spawned. Here is my program:
<script src="https://gist.github.com/amazingjxq/5274574.js"></script>
Is there something wrong with my program? Why there is only one connection to redis?
--