...

>

Copy-Design

Copy-Design

High-level design

Interviewer: How do you think the components are related to each other.

Candidate: The high-level design shows how the various components will be interconnected to support the functional and non-functional requirements.

Interviewer: How does this work?

Candidate: The workflow for the abstract design is provided below:

  1. The user uploads a video to the server.
  2. The server stores the metadata and the accompanying user data to the database and, at the same time, hands over the video to the encoder for encoding.
  3. The encoder along with the transcoder, compresses the video and transforms it into multiple qualities (like 2160p, 1440p, 1080p, etc.) for streaming.
  4. The videos are stored on the server’s file system (similar to GFS or S3) as well as forwarded to the CDN.
  5. The CDN, because of its vicinity to the user, lets the user stream the video with low latency. However, CDN is not the only infrastructure for serving videos to the end-user. Let me get back to that in the detailed design.
1.

Interviewer: Why don’t we upload the video directly to the Encoder instead of the server? Isn’t the current strategy introducing an additional delay?

Show Answer
Did you find this helpful?

API design

Interviewer: That’s a start. At this point, it will be a good idea to know the design of functionality in the form of an API outline.

Candidate: Sure, a good idea to start designing APIs is to translate our feature set into technical ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy