Giter Site home page Giter Site logo

Comments (8)

snicoll avatar snicoll commented on May 17, 2024 1

The team is not planning to do this at this time.

from jobrunr.

rdehuyss avatar rdehuyss commented on May 17, 2024

Hey @snicoll ,

thanks for your valuable input. I'm a bit lost of what to do with the Lettuce and Redis related autoconfiguration.

I see the LettuceConnectionConfiguration but it does not export a RedisClient bean. Same goes for the JedisConnectionConfiguration which does not export a JedisPool bean. Do you know in which configuration I can find them or am I missing something?

from jobrunr.

snicoll avatar snicoll commented on May 17, 2024

As you've noticed yourself, we don't export those. If your code is relying on that, users will have to create the bean.

from jobrunr.

mp911de avatar mp911de commented on May 17, 2024

Jedis and Lettuce drivers use different client implementations (RedisClient/Jedis/JedisPool/JedisSentinelPool vs. RedisClusterClient/JedisCluster) depending on the mode of operation (standalone, Sentinel, Cluster). That makes the actual client object an implementation detail of Spring Data Redis' RedisConnectionFactory. Exposing these details makes probably sense to some extent (e.g. via JedisConnectionFactory/LettuceConnectionFactory.getNativeClient) but it doesn't make sense to expose these objects as beans since their lifecycle is tied to RedisConnectionFactory.

If we consider an arrangement without Spring Data Redis, then client object beans such as RedisClient would make sense on their own as that would be the primary interaction API.

from jobrunr.

rdehuyss avatar rdehuyss commented on May 17, 2024

If we consider an arrangement without Spring Data Redis, then client object beans such as RedisClient would make sense on their own as that would be the primary interaction API.

This is indeed how it is done for others like the MongoDB driver.

Are you guys planning to do it also for the Lettuce/Jedis?

from jobrunr.

mp911de avatar mp911de commented on May 17, 2024

Part of the rationale is that configuring the right client correctly is tied to a lot of complexity (Pooling vs. non pooling, Standalone, Sentinel, Cluster, Master/Replica operation modes) and that complexity is already encapsulated in Spring Data Redis.

from jobrunr.

rdehuyss avatar rdehuyss commented on May 17, 2024

Part of the rationale is that configuring the right client correctly is tied to a lot of complexity (Pooling vs. non pooling, Standalone, Sentinel, Cluster, Master/Replica operation modes) and that complexity is already encapsulated in Spring Data Redis.

I completely understand - supporting all the different data stores in JobRunr, also took me quite some time to understand how each client library uses pooling/ non-pooling/ ... .

from jobrunr.

rdehuyss avatar rdehuyss commented on May 17, 2024

I'll then close this issue as the requested change is done for the other providers (ElasticSearch, MongoDB and Sql DataSource)

from jobrunr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.