`
waveeee
  • 浏览: 52748 次
  • 来自: 上海
社区版块
存档分类
最新评论

redis perfermance discussion in gg group

    博客分类:
  • db
阅读更多
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=.
分享到:
评论

相关推荐

    关于Jedis连接Linux上的redis出现 DENIED Redis is running in protected mode问题的解决方案

    ### 关于Jedis连接Linux上的Redis出现DENIED Redis is running in protected mode问题的解决方案 #### 一、问题背景 在尝试使用Jedis客户端通过网络连接Linux服务器上的Redis时,可能会遇到一个常见的错误提示:...

    redis获取命令字典的方法及全部的group命令.txt

    本地安装redis,通过安装目录下的redis客户端程序可以连接任意Redis服务(只要服务端是启动着的),命令 redis-cli -h ip -p port。如果服务端要求认证资格,可能还要输入用户名密码等参数。 Redis命令十分丰富,...

    REDIS_redis的工具包_redisinlabview_labviewredis_labview调用redis_redis

    **Redis与LabVIEW的整合:RedisinLabVIEW和LabVIEWRedis工具包** Redis是一个高性能的键值数据库,常用于数据缓存和消息队列。它支持丰富的数据类型,包括字符串、哈希表、列表、集合和有序集合。在LabVIEW...

    redis-in-action:Redis实战源代码

    在"redis-in-action-master"这个压缩包中,你将找到与书中内容紧密相关的源码,这对于开发者、系统管理员以及对高性能数据存储感兴趣的任何人都极具价值。 Redis是一个开源的、基于键值对的NoSQL数据库,以其高性能...

    redis in action 源码

    《Redis in Action》是一本深度剖析Redis的书籍,而这里提到的"redis in action 源码"很显然是指该书中的源代码示例或Redis的官方源代码。Redis是一款非常流行的开源内存数据结构存储系统,它可以用作数据库、缓存和...

    Redis in Action

    It's free, open source, and easy to utilize from most standard programming languages., Redis in Action introduces Redis and walks you through examples that demonstrate how to use it effectively....

    Redis in action 中文版

    优化 redis 性能及高级特性需求时,查相关资料找到的,觉得内容不错

    《Redis实战》 高清扫描完整中文版带书签PDF

    **Redis实战** Redis,全名Remote Dictionary Server,是一款开源、高性能、支持网络、基于键值对的数据存储系统。它常被用作数据库、缓存和消息中间件,因其速度快、功能强大而广受开发者喜爱。《Redis实战》一书...

    Redis in action,Redis入门指南和Redis实战三本书

    通过阅读《Redis in Action》、《Redis入门指南》和《Redis实战》这三本书,你可以深入了解Redis的使用方法、最佳实践以及在实际项目中的应用。无论是初学者还是经验丰富的开发者,都能从中获益匪浅,提升自己在数据...

    redis实战,redis实践-redis-in-actions.zip

    本资源“redis实战,redis实践-redis-in-actions.zip”可能是关于 Redis 实战应用的教程或指南,旨在帮助用户深入理解 Redis 的特性和如何在实际项目中应用。 Redis 的主要特性包括: 1. **数据类型**:Redis 支持...

    redis 实战-redis-in-action.zip

    《Redis实战:Redis in Action》是一本深入探讨Redis这一高性能键值存储系统的书籍。Redis以其卓越的速度、灵活性和丰富的数据结构而备受青睐,广泛应用于缓存、消息队列、数据库等多个场景。通过这本书,读者可以...

    redis配置文件redis.conf

    redis配置文件redis.conf

    CentOS7安装redis

    Description=Redis In-Memory Data Store After=network.target [Service] User=redis Group=redis ExecStart=/path/to/redis-6.x.x/src/redis-server /etc/redis/redis.conf ExecStop=/path/to/redis-6.x.x/src/...

    redis-5.0.3 redis-5.0.4 redis-5.0.5

    redis-5.0.3 redis-5.0.4 redis-5.0.5

    Redis Essentials

    Redis is the most popular in-memory key-value data store. It's very lightweight and its data types give it an edge over the other competitors. If you need an in-memory database or a high-performance ...

    redis-6.0.3-win64.7z

    Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning ...

    redis-windows-Redis7.0.0.zip

    Redis,全称Remote Dictionary Server,是一款开源的、高性能的键值存储系统,广泛应用于缓存、消息队列、数据持久化等多种场景。它以其高效、轻量级的特性,在IT行业中备受青睐,尤其是在互联网领域。在Windows环境...

    StackExchange.Redis Redis客户端

    最近需要在C#中使用Redis,在Redis的官网找到了ServiceStack.Redis,最后在测试的时候发现这是个坑,4.0已上已经收费,后面只好找到3系列的最终版本,最后测试发现还是有BUG或者是我不会用。没有办法,最好找到了...

Global site tag (gtag.js) - Google Analytics