EP87: ByteByteGo System Design Course Black Friday Deals

EP87: ByteByteGo System Design Course Black Friday Deals

This week’s system design refresher: ByteByteGo Newsletter Black Friday Deal ByteByteGo System Design Interview Course Black Friday Deal Top 8 Most Popular Network Protocols Explained (Youtube video) System design cheat sheet 🆕 🆓 Free DORA metrics dashboard from LinearB (Sponsored)  ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
Forwarded this email? Subscribe here for more

This week’s system design refresher:

  • ByteByteGo System Design Interview Course Black Friday Deal

  • Top 8 Most Popular Network Protocols Explained (Youtube video)

  • System design cheat sheet


 🆕 🆓 Free DORA metrics dashboard from LinearB (Sponsored)

High-performing engineering teams love DORA metrics. But it’s not always simple to access up-to-date data—and it’s often expensive. 

Not anymore. LinearB is giving ByteByteGo subscribers early access to free DORA metrics with no limitations on contributors, repos, or team size. Out of the box you’ll get a dashboard that includes:

✔️ All four DORA metrics — Cycle Time, Deploy Frequency, CFR, MTTR — based on your team’s data

✔️ Industry standard Benchmarks to help define team performance and set data-backed goals

✔️ Additional leading metrics including Merge Frequency and Pull Request Size (a great indicator of quality and efficiency)

Get Your Free Metrics


📚ByteByteGo System Design Course Black Friday Promo 📚

Image preview

The Black Friday sale is now up! Use code BF2023 at checkout for 30% off the system design interview online course. Ends Nov 26.

It features content from two system design books.

We have already finished the first draft of Volume 3, and the content will be added early next year.

Get it here


Top 8 Most Popular Network Protocols Explained


System design cheat sheet

We are often asked to design for high availability, high scalability, and high throughput. What do they mean exactly?

The diagram below is a system design cheat sheet with common solutions.

No alternative text description for this image
  1. High Availability
    This means we need to ensure a high agreed level of uptime. We often describe the design target as “3 nines” or “4 nines”. “4 nines”, 99.99% uptime, means the service can only be down 8.64 seconds per day.

    To achieve high availability, we need to design redundancy in the system. There are several ways to do this:

    - Hot-hot: two instances receive the same input and send the output to the downstream service. In case one side is down, the other side can immediately take over. Since both sides send output to the downstream, the downstream system needs to dedupe.

    - Hot-warm: two instances receive the same input and only the hot side sends the output to the downstream service. In case the hot side is down, the warm side takes over and starts to send output to the downstream service.

    - Single-leader cluster: one leader instance receives data from the upstream system and replicates to other replicas.

    - Leaderless cluster: there is no leader in this type of cluster. Any write will get replicated to other instances. As long as the number of write instances plus the number of read instances are larger than the total number of instances, we should get valid data.

  2. High Throughput
    This means the service needs to handle a high number of requests given a period of time. Commonly used metrics are QPS (query per second) or TPS (transaction per second).

    To achieve high throughput, we often add caches to the architecture so that the request can return without hitting slower I/O devices like databases or disks. We can also increase the number of threads for computation-intensive tasks. However, adding too many threads can deteriorate the performance. We then need to identify the bottlenecks in the system and increase its throughput. Using asynchronous processing can often effectively isolate heavy-lifting components.

  3. High Scalability
    This means a system can quickly and easily extend to accommodate more volume (horizontal scalability) or more functionalities (vertical scalability). Normally we watch the response time to decide if we need to scale the system.

Over to you: Do you have other things to share in your design toolbox?

 
Like
Comment
Restack
 

© 2023 ByteByteGo
548 Market Street PMB 72296, San Francisco, CA 94104
Unsubscribe

Get the appStart writing


by "ByteByteGo" <bytebytego@substack.com> - 11:35 - 25 Nov 2023