April 23 2023 is World Book Day! I would like to introduce you to System Design Interview – An insider's guide by Alex Xu. This is a great book for every software engineer who wants to get started with system design.

I decided to write a blog post about this book because I learned the basics and the real-world application through this book. I would recommend this to everyone who is interested in getting started with system architecture.

The author, Alex Xu, is making these two chapters open to the public on his website, so please check out his articles as well if you are interested!

In this blog, I would like to introduce you to the system design of YouTube I learned from the book + my own research to dig a little deeper into it! Among all the variety of system design examples in the book, I chose to write about Youtube because I am a big fan of the platform! Furthermore, Youtube system architecture is a great example to go over the basics of system design.

In this blog, we will focus on two features of the Youtube platform:

Although System Design Interview – An insider's guide is to help you prepare for a system design interview, I put emphasis on system design concepts, not the interview prep part.

INDEX

Uploading a Video

What happens when you upload a video on Youtube?

The flow of an actual video

Object storage vs databases

Speeding up the upload to object storage(S3)

The flow of metadata of the video provided by the user

Watching a Video

CDN(Content Delivery Network)

Load Balancer(LB)

Database Replication

Cache

Replicating across geographical locations

How do we recover quickly when the data center fails?

Reference