YouTube API Design Evaluation and Latency Budget
Learn how our API meets non-functional requirements and what is the estimated response time for streaming a video.
Introduction
In the previous lesson, we learned how a streaming service's functional requirements are met. In this lesson, we’ll focus on some interesting aspects of the non-functional requirements of the design. We’ll try to answer some of the common questions that might have come to your mind regarding API performance.
Non-functional requirements
The subsequent sections discuss how the non-functional requirements are met.
Scalability
YouTube-like systems need to scale in both aspects, that is, horizontally and vertically. We provide loosely coupled services by executing independent tasks statelessly and in parallel. Since it is not possible to serve numerous users requesting large-sized videos simultaneously, YouTube uses
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.