-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection to multiple Redis Enterprise DB from single application #343
Comments
Theoretically yes, but I haven't tested it. I'll try to put a test for this in the next few weeks and add it to the README |
I am interested in this kind of feature too because I am trying to make two connections: one for write and one for read. Can you share the status of it please? I have tried to do it creating different JedisConnectionFactory and RedisTemplate but the application only injects the primary configuration in spite of I am setting the template for the @EnableRedisDocumentRepositories specifically: @configuration Thanks in advance. |
@bsbodden , I have the same problem and situation. I have even created support ticket for the same. |
After researching this it seems a bit more complex that it should be... Basically there would have to be a way to bind different Entities/Repository classes to specific connections. There doesn't seem to be anything built-in in Spring Data Redis to make this simple, so we'll work on our own way to do it, but it will probably take at least a month to get a proper implementation. |
@bsbodden Reading and write to the same, and also writing to another at the same time. I tried getting creative before I found this GitHub issue.
|
I have two Redis Enterprise Cluster Databases with 2 different ports, and I need to connect to both databases from single redisom application. Can this be done ?
The text was updated successfully, but these errors were encountered: