舫摘

知人者智 自知者明 胜人者有力 自胜者强

0%

System Design Master Template

This template serves as a list of things that can be discussed during the interview.

Here is a brief introduction of some of the components involved:

API Gateway

An API Gateway (AG) is a server that acts as a single point of entry for a set of microservices. AG receives client requests, forwards them to the appropriate microservice, and then returns the server’s response to the client. AG is responsible for tasks such as routing, authentication, and rate limiting.

CDN

A Content Delivery Network (CDN) is a distributed network of servers that are deployed in multiple locations around the world. These servers are designed to deliver web content, such as images, videos, and other static files, to users based on their geographical location. The main purpose of a cdn is to improve the performance and availability of web content by caching it on servers that are closer to the users who are requesting it.

Data Partitioning

In a database, 𝗵𝗼𝗿𝗶𝘇𝗼𝗻𝘁𝗮𝗹 𝗽𝗮𝗿𝘁𝗶𝘁𝗶𝗼𝗻𝗶𝗻𝗴, also known as sharding, involves dividing the rows of a table into smaller tables and storing them on different servers or database instances. This is done to distribute the load of a database across multiple servers and to improve performance.

On the other hand, 𝘃𝗲𝗿𝘁𝗶𝗰𝗮𝗹 𝗽𝗮𝗿𝘁𝗶𝘁𝗶𝗼𝗻𝗶𝗻𝗴 involves dividing the columns of a table into separate tables. This is done to reduce the number of columns in a table and to improve the performance of queries that only access a small number of columns.

Distributed messaging systems

These are used to send messages between distributed components of a system. Examples include Apache kafka and rabbitmq.

Distributed file systems

These are file systems that are designed to store and manage files across a group of servers.

Notifications system

These are used to send notifications or alerts to users, such as emails, push notifications, or text messages.

Full-text search enables users to search for specific words or phrases within an app or website. When a user queries, the app or website returns the most relevant results. To do this quickly and efficiently, full-text search relies on an inverted index, which is a data structure that maps words or phrases to the documents in which they appear.