Live data from Hacker News

Amazon RDS Proxy for AWS Lambda

aws.amazon.com

11–20 of 32 posts

Re: Amazon RDS Proxy for AWS Lambda

#11
post #7

This is awesome. We were just looking at throwing up PgBouncer in front of RDS in the coming year. Looking forward to PostgreSQL support!

As an aside, why isn't pgbouncer basically built into Postgres, at least as an option? I'm sure there's a good reason, but as a lay-user, pgbouncer seems to just do connections better than Postgres. It's just a pain to both with it when cloud databases are so easy to launch in comparison.

Re: Amazon RDS Proxy for AWS Lambda

#12
post #4

TL;DR: AWS now has a managed connection pooling service for MySQL on RDS only (public preview right now). The article talks about using it in conjunction with Lambda.

It took me over half the article before I could parse "Amazon RDS Proxy for AWS Lambda" as a coherent sentence rather than a series of semi-related words strung together.

Re: Amazon RDS Proxy for AWS Lambda

#13
Does anyone know why RDS Postgres always seems to lag behind their MySQL offering? I can imagine Postgres is that much more difficult to develop a connection pooling service for, especially since PGBouncer and PGPool-II both already exist and are widely used.

Re: Amazon RDS Proxy for AWS Lambda

#14
post #7

This is awesome. We were just looking at throwing up PgBouncer in front of RDS in the coming year. Looking forward to PostgreSQL support!

As an aside, why isn't pgbouncer basically built into Postgres, at least as an option? I'm sure there's a good reason, but as a lay-user, pgbouncer seems to just do connections better than Postgres. It's just a pain to both with it when cloud databases are so easy to launch in comparison.

Culture in Pg community once favored separate, single purpose solutions. This was the replication story for a long time. So here's hoping they'll build-in something to help with the high costs of individual connections.

Re: Amazon RDS Proxy for AWS Lambda

#15

Earlier quoted context omitted.

As an aside, why isn't pgbouncer basically built into Postgres, at least as an option? I'm sure there's a good reason, but as a lay-user, pgbouncer seems to just do connections better than Postgres. It's just a pain to both with it when cloud databases are so easy to launch in comparison.

Culture in Pg community once favored separate, single purpose solutions. This was the replication story for a long time. So here's hoping they'll build-in something to help with the high costs of individual connections.

Some work as started to have a built-in connection poller on January 2019 so it will probably be available in PostgreSQL someday.

Re: Amazon RDS Proxy for AWS Lambda

#16
post #8
post #7

This is awesome. We were just looking at throwing up PgBouncer in front of RDS in the coming year. Looking forward to PostgreSQL support!

I really hope it can replace PgBouncer. We've spent way too much time getting it running in ECS, mostly due to us needing a separate PgBouncer service for the primary and replica RDS instances. And then a third ECS service running HAProxy in TCP mode to load balance between the PgBouncer services, to provide a read-only endpoint that balances between the primary and replica. Add issues like: having to patch in HAProx…

Why did you not use ECS with EC2 instead of patching HAProxy? With the Amazon AMI it is pretty straightforward.

Re: Amazon RDS Proxy for AWS Lambda

#18
post #13

Does anyone know why RDS Postgres always seems to lag behind their MySQL offering? I can imagine Postgres is that much more difficult to develop a connection pooling service for, especially since PGBouncer and PGPool-II both already exist and are widely used.

I think both for the reasons you named, and because more people use MySQL maybe?

Re: Amazon RDS Proxy for AWS Lambda

#19
post #8
post #7

This is awesome. We were just looking at throwing up PgBouncer in front of RDS in the coming year. Looking forward to PostgreSQL support!

I really hope it can replace PgBouncer. We've spent way too much time getting it running in ECS, mostly due to us needing a separate PgBouncer service for the primary and replica RDS instances. And then a third ECS service running HAProxy in TCP mode to load balance between the PgBouncer services, to provide a read-only endpoint that balances between the primary and replica. Add issues like: having to patch in HAProx…

I, too, am curious how it'll fare compared to DIY PgBouncer. Related, I am building something related that solves a superset of these classes of struggles. I'd love to pick your brain, if you're interested! Do you mind shooting me a message? (email in profile)

Re: Amazon RDS Proxy for AWS Lambda

#20
I wonder how this compares to Aurora Serverless Data API. This is an HTTP API that you POST a query to and get results data back.

The result format is a bit clunky but there's all the column information you'd expect.

I found this golang database interface which ended up dropping in as expected with a few tweaks.

https://github.com/Clever/rds/tree/birthday

My bill for Aurora Serverless Postgres last month was less than a dollar.

Post reply on HN