skip to Main Content

How to connect AWS Elasticache Redis cluster to Spring Boot app?

I have Spring Boot app which connects to Redis cluster, using Jedis Connection Factory: RedisClusterConfiguration redisClusterConfiguration = new RedisClusterConfiguration(redisProperties.getCluster().getNodes()); redisClusterConfiguration.setPassword(redisProperties.getPassword()); jedisConnectionFactory = new JedisConnectionFactory(redisClusterConfiguration); and reading list of nodes from application.yml: spring: redis: host: 127.0.0.1 port: 6379 timeout: 300s cluster:…

VIEW QUESTION

Terraform: ElastiCache Redis cluster with specified availability zones?

I use this Terraform example to create an ElastiCache Redis cluster (clustered mode enabled): https://www.terraform.io/docs/providers/aws/r/elasticache_replication_group.html#redis-cluster-mode-enabled resource "aws_elasticache_replication_group" "example" { replication_group_id = "example-group" engine_version = "5.0.5" node_type = "cache.r5.large" port = 6379 automatic_failover_enabled = true cluster_mode { replicas_per_node_group = 1 num_node_groups…

VIEW QUESTION
Back To Top
Search