eBay's Playbook for Sub-100ms API Design

TL;DR: An eBay engineer shared practical strategies for designing APIs that respond in under 100 milliseconds. The talk covers techniques like latency budgets and caching to build resilient, high-performance distributed systems for modern applications.
Key facts
- Category
- Infrastructure
- Impact
- High
- Published
- Source
- InfoQ
Full summary
Learn actionable strategies from eBay for designing resilient, low-latency APIs that respond in under 100ms, eliminating performance bottlenecks.
In a presentation for InfoQ, eBay engineer Saranya Vedagiri outlined a practical framework for achieving sub-100ms API design in complex distributed systems. As applications grow, they often rely on many interconnected services to fulfill a single user request. This complexity can introduce significant delays, frustrating users and straining infrastructure. Vedagiri shared battle-tested strategies from her experience at eBay, focusing on how to build systems that are not only fast but also resilient. The core of her approach involves a proactive, performance-first mindset, using techniques such as setting strict latency budgets for each service, optimizing data fetching patterns, and implementing robust caching. These methods are designed to systematically identify and eliminate bottlenecks, particularly the frustrating “tail-latency” issues where a small percentage of requests take an unusually long time to complete, dragging down the overall user experience.
Two key technical concepts from the presentation are hop-by-hop latency budgets and asynchronous fan-out patterns. A latency budget involves allocating a specific time limit to every service, or “hop,” in the chain of a request. For example, if the total goal is 100ms and a request involves three services, each might be given a budget of 30ms, with 10ms reserved for network overhead. This forces developers to optimize each component and provides a clear metric for identifying which service is causing a delay. The second technique, asynchronous fan-out, addresses situations where an API needs to gather data from multiple sources. Instead of calling each source one after another (serially), the system makes all the requests at the same time (in parallel). This dramatically reduces the total wait time, but it comes with tradeoffs, such as increased resource consumption on the server and greater complexity in handling potential failures from any one of the parallel calls.
The need for such deliberate performance engineering is a direct consequence of the industry-wide shift toward microservices architecture. As companies break down large, monolithic applications into dozens or even hundreds of smaller, independent services, the number of network calls required for a single operation multiplies. Each of these calls adds a small amount of latency, and without careful management, these delays can quickly accumulate to create a slow and unreliable system. While tech giants like Google and Netflix have long championed these low-latency design principles, Vedagiri’s presentation demonstrates how these practices are becoming essential for any organization operating at scale. The strategies are no longer a niche concern for hyperscalers but a foundational requirement for building modern, competitive digital products that rely on distributed systems.
For engineering leaders and developers, the primary takeaway is the need to embed performance into the design process from the very beginning, rather than treating it as an afterthought. This involves establishing a “performance-first” culture where speed and reliability are considered core features. Tools and patterns like circuit breakers, which prevent a failing service from causing a cascade of failures across the system, and careful thread pool sizing are critical for building this resilience. By adopting a systematic approach with latency budgets and optimized data access patterns, teams can move from reactively fixing performance fires to proactively engineering fast, dependable systems. Ultimately, these practices are crucial for meeting modern user expectations and ensuring that an application's architecture can scale effectively as the business grows.
Why it matters
For developers and architects, slow APIs directly degrade user experience and can cause cascading failures in microservices. These strategies from eBay offer a proven, real-world blueprint for building high-performance systems, helping teams avoid common pitfalls and reduce costly tail-latency issues that are notoriously hard to debug.
Business impact
In a competitive digital market, application speed is a key differentiator that impacts user retention and revenue. Implementing these performance-first engineering practices can reduce infrastructure costs, improve customer satisfaction, and provide a significant advantage over competitors with slower, less reliable services.
Tags
Related on Notifire
Related stories
Primary source: InfoQ