msiakis
msiakis

Reputation: 337

Spring Boot (Spring Data JPA) - configure PostgreSQL Read Replicas

What is the simplest way to configure read replicas with Spring Boot and Spring Data JPA? I'm searching a lot and cannot find solution.

AWS RDS Aurora Postgresql gives 2 endpoints:

I want to configure my application to use this endpoints.

Upvotes: 2

Views: 1152

Answers (1)

Dor
Dor

Reputation: 96

Why do you need to configure the read replica with Spring Boot, I am guessing that you just need to connect with the read replica, right? Have you looked the aws sdk for java?

You need to look over a class there named DescribeDBClusterEndpointsResult.

Upvotes: 0

Related Questions