AI Engineer

Building Turbopuffer: Gergely Orosz (@pragmaticengineer ) × Simon Eskildsen (CEO)

Published 2026-08-03 · Duration 56:30

Summary

The discussion provides a deep dive into building highly scalable and resilient infrastructure, focusing heavily on state management challenges in large-scale distributed systems. Key engineering lessons include moving beyond simple benchmarks to model real-world failure modes (e.g., connection layer failures), optimizing for P99 latency when using object storage like S3, and adapting architecture to current cloud constraints, particularly the increasing demand for CPUs driven by AI/RL workloads.

Download summary

Key takeaways

  1. Modeling Failure in CI 20:46

    To ensure system reliability, it is crucial to simulate low-level failures (like database connection loss) rather than just mocking components. The use of custom proxies or tools like `GDB` allows testing the application's failure handling at the connection layer, uncovering issues that are difficult to reproduce in production.

  2. The Importance of P99 Latency 30:27

    When designing large-scale systems, especially those involving multiple round trips (like navigating a tree structure on S3), optimization must focus on the P99 latency, not just the average (P50). This is critical for accurate performance prediction.

  3. CPU Scarcity in AI Workloads 47:25

    The demand curve for CPUs is shifting right due to AI and Reinforcement Learning (RL) workloads, which require significant CPU cycles for training and general-purpose agent execution. This scarcity is a major constraint that cloud providers are managing through power allocation.

  4. Architectural Simplicity Wins 51:27

    The principle of 'simplicity above everything' was key to the development philosophy, allowing for rapid iteration and focusing on core functionality rather than complex features. This approach helped achieve significant cost reductions (e.g., reducing a client's bill by 95%).

Technical details

  • Database Resilience & Failure Simulation 1246s

    The discussion highlighted techniques for testing distributed state, including implementing a Layer 7 proxy (like `Toxyroxy`) that sits between the application and the database. This allows simulating failures like data corruption or connection loss without relying on simple mocks.

  • Vector Storage & S3 Optimization 1827s

    For storing vectors (used in AI/search), the architecture can leverage Amazon S3 for durability. Performance optimization involves clustering algorithms and minimizing round trips, as P99 latency is dictated by the cumulative time of multiple requests.

  • Cloud Infrastructure Constraints 2845s

    Scaling in hyperscale cloud environments (AWS, GCP, Azure) requires careful planning for resource allocation. Current constraints include CPU scarcity due to AI/RL demand and the need to manage complex machine types (e.g., C4s on GCP) rather than relying solely on single instance types.

Mentioned resources

  • Turbopuffer (Database/Search Infrastructure)
  • Napkin Math Project (GitHub Repository (Cost/Performance Modeling))

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.