-1

I have written a golang aws lambda application and used sqlx for database connection .

I am having problem as the number of db connection is going up too quickly and exhausting the total number connection.

After doing some read, I came across aws rds proxy, but haven't get any example how to use it with Go.

jtoberon
  • 8,706
  • 1
  • 35
  • 48
Prasenjit
  • 418
  • 3
  • 7
  • 20
  • 1
    You would just use the DB connection values provided by the proxy, instead of the connection values provided by the RDS instance. There is no extra code or anything needed, which is why you haven't found any examples. – Mark B Sep 25 '20 at 16:44

1 Answers1

1

You need to use the proxy URL for connecting to DB in the client. The authentication can be done via native way or based on IAM. The proxy configuration can be found in the below doc

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-proxy.html#rds-proxy-connecting-native

Prashanna
  • 889
  • 1
  • 8
  • 13