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时,可能会遇到一个常见的错误提示:...
本地安装redis,通过安装目录下的redis客户端程序可以连接任意Redis服务(只要服务端是启动着的),命令 redis-cli -h ip -p port。如果服务端要求认证资格,可能还要输入用户名密码等参数。 Redis命令十分丰富,...
**Redis与LabVIEW的整合:RedisinLabVIEW和LabVIEWRedis工具包** Redis是一个高性能的键值数据库,常用于数据缓存和消息队列。它支持丰富的数据类型,包括字符串、哈希表、列表、集合和有序集合。在LabVIEW...
在"redis-in-action-master"这个压缩包中,你将找到与书中内容紧密相关的源码,这对于开发者、系统管理员以及对高性能数据存储感兴趣的任何人都极具价值。 Redis是一个开源的、基于键值对的NoSQL数据库,以其高性能...
《Redis in Action》是一本深度剖析Redis的书籍,而这里提到的"redis in action 源码"很显然是指该书中的源代码示例或Redis的官方源代码。Redis是一款非常流行的开源内存数据结构存储系统,它可以用作数据库、缓存和...
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 性能及高级特性需求时,查相关资料找到的,觉得内容不错
**Redis实战** Redis,全名Remote Dictionary Server,是一款开源、高性能、支持网络、基于键值对的数据存储系统。它常被用作数据库、缓存和消息中间件,因其速度快、功能强大而广受开发者喜爱。《Redis实战》一书...
通过阅读《Redis in Action》、《Redis入门指南》和《Redis实战》这三本书,你可以深入了解Redis的使用方法、最佳实践以及在实际项目中的应用。无论是初学者还是经验丰富的开发者,都能从中获益匪浅,提升自己在数据...
本资源“redis实战,redis实践-redis-in-actions.zip”可能是关于 Redis 实战应用的教程或指南,旨在帮助用户深入理解 Redis 的特性和如何在实际项目中应用。 Redis 的主要特性包括: 1. **数据类型**:Redis 支持...
《Redis实战:Redis in Action》是一本深入探讨Redis这一高性能键值存储系统的书籍。Redis以其卓越的速度、灵活性和丰富的数据结构而备受青睐,广泛应用于缓存、消息队列、数据库等多个场景。通过这本书,读者可以...
redis配置文件redis.conf
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 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 是一个开源的内存数据结构存储系统,常被用作数据库、缓存和消息代理。在Windows环境下,Redis 的安装和使用与在Linux系统中有所不同。这里我们将详细讨论Windows版Redis 5.0.14的相关知识点。 1. **Redis ...
redis-5.0.3 redis-5.0.4 redis-5.0.5
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,全称Remote Dictionary Server,是一款开源的、高性能的键值存储系统,广泛应用于缓存、消息队列、数据持久化等多种场景。它以其高效、轻量级的特性,在IT行业中备受青睐,尤其是在互联网领域。在Windows环境...