top

Package redisbroker implements a juggler broker using Redis as backend. RPC calls and results are stored in Redis lists and queried via the BRPOP command, while pub-sub events are handled using Redis' built-in pub-sub support.

Call timeouts are handled by an expiring key associated with each call request, and in a similar way for results. Keys are named in such a way that the call request list and associated expiring keys are in the same hash slot, and the same is true for results and their expiring key, so that using a redis cluster is supported. The call requests are hashed on the call URI, and the results are hashed on the calling connection's UUID.

Imported only in test by 3 package(s)

  1. github.com/PuerkitoBio/exp/juggler
  2. github.com/puerkitoBio/exp/juggler
  3. github.com/puerkitobio/exp/juggler

Imports 4 package(s)

  1. github.com/pborman/uuid
  2. github.com/PuerkitoBio/exp/juggler/msg
  3. github.com/PuerkitoBio/exp/juggler/broker
  4. github.com/garyburd/redigo/redis

Test imports 3 package(s)

  1. github.com/PuerkitoBio/exp/juggler/internal/redistest
  2. github.com/stretchr/testify/assert
  3. github.com/stretchr/testify/require