CursosPago

System Design for Interviews and Beyond

07:53:05 Inglés Premium 18/05/2023 75 videos

Descripción del curso

Having over 15 years of industry experience, last 9 years I worked on building scalable, highly available and low latency distributed systems. For a long time, I have wondered what is the best way to learn system design. While there are many excellent resources for learning individual concepts, few provide a holistic view of how to design systems. And even after you've invested a lot of time and gained a lot of knowledge, it's still hard to develop true system design thinking. Thinking that helps answer questions like: where to start my design; where to go next; how to break this big obscure problem into sub-problems that I know how to solve; and even if I don't know the answer, can I make an educated guess? So I challenged myself to create a course that can help build and improve system design thinking. And two years later, you can see the result of this work.
System requirements (functional and non-functional requirements)
Functional requirements (how to define, working backwards approach)
High availability (time-based and count-based availability, design principles behind high availability, processes behind high availability, SLO, SLA)
Fault tolerance, resilience, reliability (error, fault, failure, fault tolerance, resilience, game day vs chaos engineering, expected and unexpected failures, reliability)
Scalability (vertical and horizontal scaling, elasticity vs scalability)
Performance (latency, throughput, percentiles, how to increase write and throughput, bandwidth)
Durability (backup (full, differential, incremental), RAID, replication, checksum, availability vs durability)
Consistency (consistency models, eventual consistency, linearizability, monotonic reads, read-your-writes (read-after-write), consistent prefix reads)
Maintainability, security, cost (maintainability aspects (failure modes and mitigations, monitoring, testing, deployment), security aspects(CIA triad, identity and permissions management, infrastructure protection, data protection), cost aspects (engineering, maintenance, hardware, software))
Summary of system requirements (a single list of the most popular non-functional requirements)
Regions, availability zones, data centers, racks, servers (how hardware helps to achieve certain qualities)
Physical servers, virtual machines, containers, serverless (pros and cons of different computing environments, what are they good for)
Synchronous vs asynchronous communication (synchronous and asynchronous request-response models, asynchronous messaging)
Asynchronous messaging patterns (message queuing, publish/subscribe, competing consumers, request/response messaging, priority queue, claim check)
Network protocols (TCP, UDP, HTTP, HTTP request and response)
Blocking vs non-blocking I/O (socket (blocking and non-blocking), connection, thread per connection model, thread per request with non-blocking I/O model, event loop model, concurrency vs parallelism)
Data encoding formats (textual vs binary formats, schema sharing options, backward compatibility, forward compatibility)
Message acknowledgment (safe and unsafe acknowledgment modes)
Deduplication cache (local vs external cache, adding data to cache (explicitly, implicitly), cache data eviction (size-based, time-based, explicit), expiration vs refresh)
Metadata cache (cache-aside pattern, read-through and write-through patterns, write-behind (write-back) pattern)
Queue (bounded and unbounded queues, circular buffer (ring buffer) and its applications)
Full and empty queue problems (load shedding, rate limiting, what to do with failed requests, backpressure, elastic scaling)
Start with something simple (similarities between single machine and distributed system concepts, interview tip)
Blocking queue and producer-consumer pattern (producer-consumer pattern, wait and notify, semaphores, blocking queue applications)
Thread pool (pros and cons, CPU-bound and I/O-bound tasks, graceful shutdown)
Big compute architecture (batch computing model, embarrassingly parallel problems)
Log (memory vs disk, log segmentation, message position (offset))
Index (how to implement an efficient index for a messaging system)
Time series data (how to store and retrieve time series data at scale and with low latency)
Simple key-value database (how to build a simple key-value database, log compaction)
B-tree index (how databases and messaging systems use B-tree indexes)
Embedded database (embedded vs remote database)
RocksDB (memtable, write-ahead log, sorted strings table (SSTable))
LSM-tree vs B-tree (log-structured merge-tree data structure, write amplification, read amplification)
Page cache (how to increase disk throughput (batching, zero-copy read))
Push vs pull (pros and cons of both models)
Host discovery (DNS, anycast)
Service discovery (server‑side and client-side discovery patterns, service registry and its applications)
Peer discovery (peer discovery options, membership and failure detection problems, seed node, how gossip protocol works and its applications)
How to choose a network protocol (when and how to choose between TCP, UDP and HTTP)
Network protocols in real-life systems (quiz: what network protocol would you choose for various system design problems)
Video over HTTP (adaptive streaming)
CDN (how to use it, how it works, point of presence (POP), benefits)
Push and pull technologies (short polling, long polling, websocket, server-sent events)
Push and pull technologies in real-life systems (quiz: what technology would you choose for various system design problems)
Large-scale push architectures (C10K and C10M problems, examples of large-scale push architectures, the most noticeable problems of handling long-lived connections at large scale)
What else to know to build reliable, scalable, and fast systems (a list of common problems in distributed systems, a list of system design concepts that help solve these problems, three-tier architecture)
Timeouts (fast failures, slow failures, connection and request timeouts)
What to do with failed requests (strategies for handling failed requests (cancel, retry, failover, fallback))
When to retry (idempotency, quiz: which AWS API failures are safe to retry)
How to retry (exponential backoff, jitter)
Message delivery guarantees (at-most-once, at-least-once, exactly-once)
Consumer offsets (log-based messaging systems, checkpointing)
Batching (pros and cons, how to handle batch requests)
Compression (pros and cons, compression algorithms and the trade-offs they make)
How to scale message consumption (single consumer vs multiple consumers, problems with multiple consumers (order of message processing, double processing))
Partitioning in real-life systems (pros and cons, applications of partitioning)
Partitioning strategies (lookup strategy, range strategy, hash strategy)
Request routing (physical and virtual shards, request routing options)
Rebalancing partitions (how to rebalance partitions)
Consistent hashing (how to implement, advantages and disadvantages, virtual nodes, applications of consistent hashing)
System overload (why it is important to protect the system from overload)
Autoscaling (scaling policies (metric-based, schedule-based, predictive))
Autoscaling system design (how to design an autoscaling system)
Load shedding (how to implement it in distributed systems, important considerations)
Rate limiting (how to use the knowledge gained in the course for solving the problem of rate limiting (step by step guide))
Synchronous and asynchronous clients (admission control systems, blocking I/O and non-blocking I/O clients)
Circuit breaker (circuit breaker finite-state machine, important considerations)
Fail-fast design principle (problems with slow services (chain reactions, cascading failures) and ways to solve them)
Bulkhead (how to implement this pattern in distributed systems)
Shuffle sharding (how to implement this pattern in distributed systems)
The end (a list of topics that we will cover in the next module of the course)

Curriculum

Section 1: Module 1

  • 02 - 01 Introduction - Course Introduction 03:59
  • 03 - 02 Introduction - Who will benefit from the course and how 03:05
  • 04 - 03 Introduction - Course overview 04:51
  • 05 - 04 System requirements 06:04
  • 06 - 05 Functional requirements 04:39
  • 07 - 06 High availability 10:01
  • 08 - 07 Fault tolerance, resilience, reliability 08:24
  • 09 - 08 Scalability 06:17
  • 10 - 09 Performance 09:30
  • 11 - 10 Durability 09:13
  • 12 - 11 Consistency 10:37
  • 13 - 12 Maintainability, security, cost 09:36
  • 14 - 13 Summary of system requirements 02:11
  • 15 - 14 Regions, availability zones, data centers, servers 08:53
  • 16 - 15 Physical servers, virtual machines, containers, serverless 07:47
  • 17 - 16 Synchronous vs asynchronous communication 03:30
  • 18 - 17 Asynchronous messaging patterns 06:28
  • 19 - 18 Network protocols 07:33
  • 20 - 19 Blocking vs non-blocking IO 10:41
  • 21 - 20 Data encoding formats 06:45
  • 22 - 21 Message acknoledgement 03:01
  • 23 - 22 Deduplication cache 07:46
  • 24 - 23 Metadata cache 06:01
  • 25 - 24 Queue 03:31
  • 26 - 25 Full and empty queue problems 09:56
  • 27 - 26 Start with something simple 01:39
  • 28 - 27 Blocking queue and producer-consumer pattern 04:05
  • 29 - 28 Thread pool 05:34
  • 30 - 29 Big compute architecture 03:48
  • 31 - 30 Log 05:00
  • 32 - 31 Data store internals - Index 04:02
  • 33 - 32 Data store internals - Time series data 03:10
  • 34 - 33 Data store internals - Simple key-value database 05:27
  • 35 - 34 Data store internals - B-tree index 05:55
  • 36 - 35 Data store internals - Embedded database 04:05
  • 37 - 36 Data store internals - RocksDB 06:19
  • 38 - 37 Data store internals - LSM-tree and B-tree 04:37
  • 39 - 38 Data store internals - Page cache 07:16
  • 40 - 39 Push vs pull 04:06
  • 41 - 40 Host discovery 08:47
  • 42 - 41 Service discovery 06:32
  • 43 - 42 Peer discovery 09:05
  • 44 - 43 How to choose a network protocol 07:42
  • 45 - 44 Network protocols in real-life systems 09:53
  • 46 - 45 Video over HTTP 07:20
  • 47 - 46 CDN 05:15
  • 48 - 47 Push and pull technologies 08:04
  • 49 - 48 Push and pull technologies in real-life systems 06:25
  • 50 - 49 Large-scale push architectures 08:54
  • 51 - 50 What else to know to build reliable, scalable, and fast systems 04:58
  • 52 - 51 How to deliver data reliably - Timeouts 03:35
  • 53 - 52 How to deliver data reliably - What to do with failed requests 05:40
  • 54 - 53 How to deliver data reliably - When to retry 06:21
  • 55 - 54 How to deliver data reliably - How to retry 03:49
  • 56 - 55 How to deliver data reliably - Message delivery guarantees 06:51
  • 57 - 56 How to deliver data reliably - Consumer offsets 08:08
  • 58 - 57 How to deliver data quickly - Batching 07:25
  • 59 - 58 How to deliver data quickly - Compression 04:23
  • 60 - 59 How to deliver data at large scale - How to scale message consumption 08:07
  • 61 - 60 How to deliver data at large scale - Partitioning in real-life systems 05:03
  • 62 - 61 How to deliver data at large scale - Partitioning strategies 06:03
  • 63 - 62 How to deliver data at large scale - Request routing 06:28
  • 64 - 63 How to deliver data at large scale - Rebalancing partitions 07:46
  • 65 - 64 How to deliver data at large scale - Consistent hashing 09:58
  • 66 - 65 How to protect servers from clients - System overload 02:14
  • 67 - 66 How to protect servers from clients - Autoscaling 04:38
  • 68 - 67 How to protect servers from clients - Autoscaling system design 05:10
  • 69 - 68 How to protect servers from clients - Load shedding 09:11
  • 70 - 69 How to protect servers from clients - Rate limiting 11:48
  • 71 - 70 How to protect clients from servers - Synchronous and asynchronous clients 07:25
  • 72 - 71 How to protect clients from servers - Circuit breaker 04:08
  • 73 - 72 How to protect clients from servers - Fail-fast design principle 07:32
  • 74 - 73 How to protect clients from servers - Bulkhead 04:57
  • 75 - 74 How to protect clients from servers - Shuffle sharding 07:27
  • 76 - 75 Epilogue - The end (but not quite 00:41

About the Instructor

Instructor

Mikhail Smarshchok

Course

$0.00

$8.00
Que esta incluido?
  • Streaming Multiplataforma
  • Acceso de por vida
  • Soporte al cliente
  • Actualizaciones gratuitas