Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
FORWARD: I'm not sure this work is worth it given RDS proxy is in preview. https://aws.amazon.com/about-aws/whats-new/2019/12/amazon-rds-proxy-available-in-preview/ However, if someone does want to push on this work, here are some thoughts since Aurora Serverless does support PostgreSQL.
During our initial work (#6) we did leave a good module & client structure in place so that we could mixing PostgreSQL client hacks as needed. My biggest question is, how would we handle loading, move the requires to the core ConnectionHandler?
This is very interesting. Currently the docs for the RDS Proxy preview include the points:
Meaning, RDS Proxy is not really a viable option for people who won't/can't convert from PostgreSQL (or won't be for some time).
Right now, this gem is the closest thing I have come across for Rails -> RDS Serverless PSQL ...
I believe that is their plan, but there is no timeline up yet that I could find.
It let us use the default postgresql AR adapter at the cost of slightly more AWS moving parts.
For those who find their way here before RDS Proxy is available for their use case...
So, this approach to connect from an external ActiveRecord AbstractAdapter is to make an EC2 instance (or autoscaling group of them) and a security group that opens only one TCP port and has best practice keys/certs. Then use that bastion/jump-box to tunnel through.
It takes some fiddling with the dashboards so I'm thinking to write up a gist when I get the time...
Hey @Genkilabs I started using RDS Serverless PostgreSQL from Lambda and ran into an issue where some queries would hang. I thought it was Sequel (stripped down our Lambda function from using Rails), but it might seem it's the
I had hoped to try the RDS proxy or Data API, but your research above was informative about the former... leaving the latter as an alternative to
Did you ever run into behavior where queries hung? If not, maybe it's related to Lambda and maybe how it access RDS Serverless over the network. I haven't found others reporting this issue, so I'm hoping to narrow it down to a configuration issue.