Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-580

Support Master/Slave connections using Lettuce

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.1 M1 (Lovelace)
    • Component/s: Lettuce Driver
    • Labels:
      None

      Description

      Lettuce provides a Master/Slave API that allows slave reads. Master/Slave is either configured with a static node set (well-suited for AWS ElastiCache use) or Redis Sentinel.

      Master/Slave allows configuration of its read-behavior (i.e. slave reads).

      connection.setReadFrom(ReadFrom.MASTER_PREFERRED);
      

      LettuceConnectionFactory could be configured to use StatefulRedisMasterSlaveConnection and apply read preferences.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mp911de Mark Paluch
                Reporter:
                mp911de Mark Paluch
                Last updater:
                Oliver Drotbohm
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: