Thumbtack Jul 12, 2023

Migrating to Apollo 1.0 for iOS

Article Summary

Scott Southerland from Thumbtack reveals how their iOS app hit a breaking point: 8-minute builds, mysterious crashes, and 80,000-line auto-generated files that finally stopped compiling altogether.

Thumbtack adopted Apollo iOS for GraphQL back in 2018, but by 2022 their code generation had spiraled out of control. The culprit? Apollo 0.5's fragment handling created exponentially more types instead of consolidating them, bloating their codebase until the Swift compiler literally gave up.

Key Takeaways

Critical Insight

Migrating from Apollo 0.5 to 1.0 delivered an 80% code reduction, 92% faster release builds, and 25% smaller binaries while rescuing Thumbtack from a complete development standstill.

The article breaks down exactly why Apollo's old fragment system created exponentially bloating code and the specific refactoring challenges teams will face during migration.

Recent from Thumbtack

Related Articles