是否有必要在异步 redis 客户端中使用池
Is there any necessary to use pool in async redis client
我在我的项目中使用async redis api(hiredis) 一个连接,因为非阻塞io,所以我认为一个连接对我来说足够了,但我想弄清楚顺序是否命令将按照先进先出的顺序执行
文档似乎表明它是先进先出的。
https://github.com/redis/hiredis
In an asynchronous context, commands are automatically pipelined due
to the nature of an event loop
是的,您不需要游泳池。一个连接就足够了。
我在我的项目中使用async redis api(hiredis) 一个连接,因为非阻塞io,所以我认为一个连接对我来说足够了,但我想弄清楚顺序是否命令将按照先进先出的顺序执行
文档似乎表明它是先进先出的。 https://github.com/redis/hiredis
In an asynchronous context, commands are automatically pipelined due to the nature of an event loop
是的,您不需要游泳池。一个连接就足够了。