etaty / rediscala

Non-blocking, Reactive Redis driver for Scala (with Sentinel support)
Apache License 2.0
790 stars 142 forks source link

RoundRobinPoolRequest overflow #86

Closed etaty closed 9 years ago

etaty commented 9 years ago

https://github.com/etaty/rediscala/blob/790d76411acaca20ebde49e9a6369b1c6ecfceae/src/main/scala/redis/Request.scala#L48

  def getNextConnection : ActorRef = {
    redisConnectionPool(next.getAndIncrement % redisConnectionPool.size)
  }

good implementation https://github.com/akka/akka/blob/master/akka-actor/src/main/scala/akka/routing/RoundRobin.scala#L26