Theo - t3․gg

How Figma Hacked Postgres Into Scalability | Theo - t3․gg

Theo - t3․gg

Summary

Figma's database team reveals the challenges and solutions they faced while scaling their Postgres infrastructure to accommodate significant growth. Initially reliant on a single Postgres instance, the team transitioned to a distributed architecture featuring caching, read replicas, and vertically partitioned databases. This approach allowed them to manage their rapidly expanding data needs, as their database stack grew nearly 100 times since 2020.

The team implemented vertical partitioning as a stepping stone towards horizontal sharding, which ultimately proved essential for handling high traffic and large datasets. They developed a DB Proxy service to manage SQL queries efficiently across multiple databases, enabling them to maintain performance and reliability. The transition to horizontal sharding was complex, requiring careful planning to ensure data consistency and minimize downtime during the migration process.

Despite the hurdles, Figma successfully executed its first horizontally sharded table with minimal service disruption. The company aims to fully implement horizontal sharding across its databases to enhance scalability and reliability, while also addressing challenges such as schema updates and cross-shard transactions. As they continue this journey, Figma's engineers reflect on the need for robust database solutions that can support their innovative design platform without compromising performance.

Show Notes

How Figma Hacked Postgres Into ScalabilityTheo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg

------- Keywords: machine learning, artificial intelligence, developer podcast, coding models

More from Theo - t3․gg

Dec 6, 2026

React's most dangerous feature Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ----

Dec 6, 2026

Theo Reacts to Prime Reacts To Professor Reacting To Prime Reacting To FP Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg -----------

Dec 6, 2026

BREAKING: *.io domains might disappear soon Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ---------------------------------

Dec 6, 2026

The State of React Native Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg --------------

Dec 6, 2026

Oh no, I think I like this Theo is a software dev nerd mostly known for full stack TypeScript stuff. Check out Theo and his stack at t3.gg ---------------------------

See all episodes →