Skip to content
Postgres, Performance and Rails episode artwork

EPISODE · Aug 23, 2023 · 57 MIN

Postgres, Performance and Rails

from SaaS for Developers · host Gwen

Andrew Atkinson took a Rails web application that was struggling with load, and optimized it to handle over 9000 HTTP requests per second with an average latency of 35ms end to end. Handling a much higher load, on a smaller RDS instance, with lower latencies. He then shared his expertise by writing a book: "High-Performance Postgres with Rails." Andrew and I discussed Postgres performance, scalability, design patterns, valuable tools, his career, and some Rails. I tackled Andrew with many of the biggest challenges SaaS developers encounter with Postgres, and Andrew had an answer to everything. For me, the highlights were his explanation of the N+1 problem, sharding patterns, the use of pgcopydb project to move a noisy neighbor to another DB, and the secret for scaling on a single instance. Useful links: - The book: https://pgrailsbook.com - SaaS Developer Slack - where Andrew answers Postgres questions and will share a discount for his book: http://launchpass.com/all-about-saas Tools we mentioned: - Easier multi-tenancy for Rails: https://github.com/ErwinM/acts_as_tenant - For read replicas prior to Rails 6.0: https://github.com/OutOfOrder/multidb - The fastest way to copy a DB or part of: https://github.com/dimitri/pgcopydb

Episode metadata supplied by the publisher feed · Published Aug 23, 2023

Embed this episode

Ready to play

Postgres, Performance and Rails

0:00 57:58

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of SaaS for Developers?

This episode is 57 minutes long.

When was this SaaS for Developers episode published?

This episode was published on August 23, 2023.

Can I download this SaaS for Developers episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!