EP124: How does SSH work?

EP124: How does SSH work?

This week’s system design refresher:
͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­
Forwarded this email? Subscribe here for more

This week’s system design refresher:

  • How does SSH work?

  • List of Subjects That Should be Mandatory in Schools

  • 8 Common System Design Problems and Solutions

  • Why is Nginx so popular?

  • SPONSOR US


New Relic launched the industry's first fully-integrated, AI-driven Digital Experience Monitoring (DEM) solution (Sponsored)

New Relic DEM makes it easy for businesses to quickly identify and resolve user friction points across mobile, web, and AI-powered applications.

New Relic’s advanced DEM capabilities include:

  • Actionable user journeys without event duplication

  • The most comprehensive list of mobile platforms

  • Superior insights without the high costs

Get started


How does SSH work?

SSH (Secure Shell) is a network protocol used to securely connect to remote machines over an unsecured network. It encrypts the connection and provides various mechanisms for authentication and data transfer.

graphical user interface, text, application

SSH has two versions: SSH-1 and SSH-2. SSH-2 was standardized by the IETF.
It has three main layers: Transport Layer, Authentication Layer, and Connection Layer.

  1. Transport Layer
    The Transport Layer provides encryption, integrity, and data protection to ensure secure communication between the client and server.

  2. Authentication Layer
    The Authentication Layer verifies the identity of the client to ensure that only authorized users can access the server.

  3. Connection Layer
    The Connection Layer multiplexes the encrypted and authenticated communication into multiple logical channels.


An interesting list of subjects that should be mandatory in schools

While academics are essential, it's crucial to acknowledge that many elements in this diagram would have been beneficial to learn earlier.

No alt text provided for this image

Over to you: What else should be on the list? What are the top 3 skills you wish schools would teach?

Credit: Instagram accounts on startup_rules


The Train, Fine-Tune, and Deploy Large Language Models Bootcamp (Sponsored)

In the past few years, we saw a revolution with the advent of Large Language Models. Rarely has a discovery changed the world of Machine Learning that much, and the hype around LLM is real! That is something that very few experts predicted, and preparing for the future is essential. This boot camp is meant to train the new generation of engineers who will continue leading this revolution. You will learn:

  • The Transformer Architecture

  • Training LLMs to Follow Instruction

  • How to Scale Model Training

  • How to Fine-Tune LLMs

  • How to Deploy LLMs

  • How to Build the Application Layer

Enroll 20% Discount


8 Common System Design Problems and Solutions

Do you know those 8 common problems in large-scale production systems and their solutions? Time to test your skills!

graphical user interface
  1. Read-Heavy System
    Use caching to make the reads faster.

  2. High-Write Traffic
    Use async workers to process the writes
    Use databases powered by LSM-Trees

  3. Single Point of Failure
    Implement redundancy and failover mechanisms for critical components like databases.

  4. High Availability
    Use load balancing to ensure that requests go to healthy server instances.
    Use database replication to improve durability and availability.

  5. High Latency
    Use a content delivery network to reduce latency

  6. Handling Large Files
    Use block storage and object storage to handle large files and complex data.

  7. Monitoring and Alerting
    Use a centralized logging system using something like the ELK stack.

  8. Slower Database Queries
    Use proper indexes to optimize queries.
    Use sharding to scale the database horizontally.

Over to you: What other common problems and solutions have you seen?


Why is Nginx so popular?

Nginx is a high-performance web server and reverse proxy.

No alternative text description for this image

It follows a master-worker process model that contributes to its stability, scalability, and efficient resource utilization.

The master process is responsible for reading the configuration and managing worker processes. Worker processes handle incoming connections using an event-driven non-blocking I/O model.

Due to its architecture, Nginx excels in supporting multiple features such as:

  1. High-Performance Web Server

  2. Reverse Proxy and Load Balancing

  3. Content Cache

  4. SSL Termination

Over to you: Do you know any other features supported by Nginx?


SPONSOR US

Get your product in front of more than 1,000,000 tech professionals.

Our newsletter puts your products and services directly in front of an audience that matters - hundreds of thousands of engineering leaders and senior engineers - who have influence over significant tech decisions and big purchases.

Space Fills Up Fast - Reserve Today

Ad spots typically sell out about 4 weeks in advance. To ensure your ad reaches this influential audience, reserve your space now by emailing sponsorship@bytebytego.com

 
Like
Comment
Restack
 

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

Get the appStart writing


by "ByteByteGo" <bytebytego@substack.com> - 11:35 - 10 Aug 2024