FlashKeepers

Computer Science · College · College and University

System Design I: Scalability Basics

Load balancing, caching, CDNs, sharding, replication, queues, consistent hashing and latency numbers.

About this set

40 basic cards for College Computer Science. Set 1 of 2 in System Design. It opens with "What is the primary goal of load balancing?" and "Name three common load balancing algorithms". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is the primary goal of load balancing?
Show answerDistribute incoming traffic evenly across multiple servers to prevent bottlenecks.
Name three common load balancing algorithms.
Show answerRound robin, least connections, and weighted round robin.
What is a health check in load balancing?
Show answerA periodic test verifying a server is responsive; unhealthy servers are removed from the pool.
What does sticky sessions mean in load balancing?
Show answerRouting all requests from the same client to the same backend server, using cookies or IP hashing.
What is the difference between layer 4 and layer 7 load balancing?
Show answerLayer 4 routes on IP protocol data; layer 7 inspects HTTP headers and can route by URL path or host.
What is the cache hit rate?
Show answerThe percentage of data requests satisfied by the cache rather than fetching from slower primary storage.
Name three common cache eviction policies.
Show answerLRU (Least Recently Used), LFU (Least Frequently Used), and FIFO (First In, First Out).
What is cache invalidation?
Show answerRemoving or updating stale data in a cache so clients do not receive outdated information.
What is a write-through cache?
Show answerData is written to both cache and underlying storage simultaneously; guarantees consistency but slower writes.
What is a write-back cache?
Show answerData is written to cache first and flushed to storage later; faster writes but risk of data loss.
What is cache stampede?
Show answerWhen a popular cache item expires, many concurrent requests hit the slow backend simultaneously.
What does a CDN do?
Show answerCaches and serves content from servers geographically close to users, reducing latency and bandwidth costs.
Name two ways a CDN reduces latency.
Show answerGeographic distribution of edge servers and local caching of popular content.
What is an edge server?
Show answerA server located closer to end users that caches and serves copies of content, part of the CDN infrastructure.
What types of content are best suited for CDN delivery?
Show answerStatic content like images, CSS, JavaScript, and video; anything that changes infrequently.

25 more cards in the app

Study this set free