nredis-proxy高性能Redis中间件服务
nredis-proxy 是一个以redis 协议为主的高性能稳定的代理中间件服务,不侵入业务代码,与业务毫无联系,不需要改任何应用代码,天然支持分布式部署。
一:功能特点:
1:自带连接池,性能高效 2:提供分片策略,扩展性强,可自定义分片算法 3:提供读写分离,一主多从,从按照权重读取 4:提供自动监听功能,主挂了,提供选举算法,从作为主 5:可HA分布式部署,节点随意扩展
二:nredis-proxy 架构图
三:nredis-proxy 部署架构图
四:例子配置文件:
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:redisProxy="http://www.nredisproxy.com/redisProxy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.nredisproxy.com/redisProxy http://www.nredisproxy.com/redisProxy/redisProxy.xsd" > <!--redis 主从配置 --> <redisProxy:redisProxyNode id="wandaredisnode" redisProxyHost="127.0.0.1" redisProxyPort="6379" algorithm-ref="loadMasterBalance" address="127.0.0.1:2181"> <redisProxy:redisProxyMaster id="wandaredismasters" host="127.0.0.1" port="6380" timeout="5000" maxActiveConnection="5000" maxIdleConnection="500" minConnection="50" algorithm-ref="loadClusterBalance"> <redisProxy:redisProxyCluster id="wandarediscluster0" host="127.0.0.1" port="6381" timeout="5000" maxActiveConnection="5000" maxIdleConnection="500" minConnection="50" weight="1"></redisProxy:redisProxyCluster> </redisProxy:redisProxyMaster> </redisProxy:redisProxyNode> <bean name="loadMasterBalance" class="com.opensource.netty.redis.proxy.core.cluster.impl.ConsistentHashLoadBalance"></bean> <bean name="loadClusterBalance" class="com.opensource.netty.redis.proxy.core.cluster.impl.RoundRobinLoadBalance"></bean> </beans>
评论
Message-Middlewarekafka 中间件服务
消息发布-订阅中间件服务为了促进产品的平台化建设,把kafka消息队列从服务中抽象出来。让消息队列只关注消息的订阅和发布,使用微服务,减少与业务逻辑的耦合,该服务支持多实例部署。使用方法:只需要在mo
Message-Middlewarekafka 中间件服务
0
Message-Middlewarekafka 中间件服务
消息发布-订阅中间件服务为了促进产品的平台化建设,把 kafka 消息队列从服务中抽象出来。让消息队
Message-Middlewarekafka 中间件服务
0
WQS消息服务中间件
WQS是微博开源的消息服务中间件。功能特性多租户支持;多IDC支持;多协议支持memcached、http1/2、motan轻客户端。(去zk依赖、无partition感知)支持pub/sub、lon
WQS消息服务中间件
0
Redis Cluster运行 Redis 服务
RedisCluster提供一种方法来运行Redis服务,并且多个节点间会自动分享数据。RedisCluster在分区期间也提供了一定程度的可用性,也就是在实际操作中,当一些节点发生故障或无法通信时,
Redis Cluster运行 Redis 服务
0
CloudWeGo微服务中间件集合
CloudWeGo是一套开源微服务中间件集合,具备高性能、强扩展性和高可靠的特点,专注于解决微服务通信与治理的难题,满足不同业务在不同场景的诉求。项目官网:https://www.cloudwego.
CloudWeGo微服务中间件集合
0
uller_log高性能日志服务
uller_log 是一个高性能日志服务。它可以把一定时间段内的相同的多条日志信息归为单条的日志信息并加以计数,支持C/S结构(tcp长链),以用户指定的存储形式(文件、数据库)存储。举例:30秒内A
uller_log高性能日志服务
0