go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

read-write separation

Open jiuker opened this issue 5 years ago • 4 comments

Our program only needs to execute commands, and we don't care about the result failure. If it fails, it's just an alarm and doesn't do other operations. When I try to use pipeline, I find a problem. Pipeline will confirm the result every time, and the result will be delayed (70ms). If we have 1000 times of pipeline, that is, we need at least 70s to send it. Can I support read-write separation?

jiuker avatar Jun 11 '20 05:06 jiuker

No, that is not supported. Are you aware of any other Redis clients that support this?

vmihailenco avatar Jun 12 '20 06:06 vmihailenco

https://github.com/gomodule/redigo this pkg support,like

   go fun(){
       for{
           Receive()
       }
   }()
   for{
      Send()
      Send()
      Flush()
   }

jiuker avatar Jun 15 '20 05:06 jiuker

https://github.com/meitu/go-redis-pool

tong3jie avatar Apr 25 '22 07:04 tong3jie

@vmihailenco

tong3jie avatar Apr 25 '22 07:04 tong3jie

This issue is marked stale. It will be closed in 30 days if it is not updated.

github-actions[bot] avatar Sep 22 '23 00:09 github-actions[bot]