设为首页 收藏本站
查看: 359|回复: 0

[经验分享] redis perfermance discussion in gg group

[复制链接]

尚未签到

发表于 2016-12-19 10:25:40 | 显示全部楼层 |阅读模式
http://groups.google.com/group/redis-db/browse_thread/thread/1adb93f0b6a1460a

In JRedis you have two options if you are using a front-end that
serves a lot of concurrent processes.
For low (concurrent) number of processes (threads), you can use
JRedisService.  This connector maintains a pool of connections to
Redis and cycles through next available connection to serve service
requests.
For very high (concurrent) number of processes (thread count in the
thousands) -- specially if you will be maintaining a constant load on
the connector -- use the Pipeline with sync() semantics.  Pipeline
uses a single connection, but has much higher throughput.
/R
On Nov 22, 9:30 am, Alex <alexgen...@gmail.com> wrote:

- 隐藏被引用文字 -
> And what if there are a huge number of clients? Will a 100 or 1000
> persistant connections be a problem? Is there any upper (performance)
> limit (32 bit port number)?
> On 22 Nov., 15:14, Sergey Shepelev <temo...@gmail.com> wrote:
> > On Sun, Nov 22, 2009 at 4:02 PM, wqhhust <staywith...@gmail.com> wrote:
> > > Does redis support connection pool? Currently we are using 2,000+ java
> > > application servers to connect to mysql (memory engine), and
> > > connection pool is used. If switch mysql to redis, without connection
> > > pool, it can't handle so many connect/disconnect.
> > Redis supports peristant (keepalive) connections.
> > Your favourite or your own Redis client library may implement a connection pool.
> > But the best way would be to actually have one connection per
> > application life. A pool of 1 connection.
> > In Java it may be implemented as a static class with synchronized
> > executeCommand() method. It tries to send command to your Redis
> > server, if that fails for network reasons, it reconnects and tries
> > again. That covers initial (not connected yet) case too.
> > > --
> > > You received this message because you are subscribed to the Google Groups "Redis DB" group.
> > > To post to this group, send email to redis-db@googlegroups.com.
> > > To unsubscribe from this group, send email to redis-db+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/redis-db?hl=.

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-316317-1-1.html 上篇帖子: Redis-Cluster实战--7.Redis-Cluster水平扩容(ruby实现版) 下篇帖子: Redis 数据类型及常用命令
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表