This repository is a visual cheatsheet on the main topics in Backend-development. All the material is divided into topics and subtopics. The structure of the material consists of three parts:
- **Visual part** - various images/tables/cheatsheets for better understanding (may not be available). All pictures and tables are made from scratch, specifically for this repository.
- **Summary** - A very brief summary with a list of key terms and concepts. The terms are hyperlinked to the appropriate section on Wikipedia or a similar reference resource.
- **References to sources** - resources where you may find complete information on a particular issue. If possible, the most authoritative sources are indicated, or those that provide information in as simple and comprehensible language as possible.
> π The repository is under active development, so it is constantly updated and supplemented
> π€ If you want to help the project, feel free to send your [Pull requests](https://github.com/cheatsnake/backend-cheats/pulls)
> π Translation into English is in progress
## Contents
1. Network & Internet
* [How the Internet works](#how-the-internet-works)
* [What is a domain name](#what-is-a-domain-name)
* [IP address](#ip-address)
* [What is DNS](#what-is-dns)
* [Web application design](#web-application-design)
* [Browsers and how they work](#browsers-and-how-they-work)
* [VPN and Proxy](#vpn-and-proxy)
* [Hosting](#hosting)
* [OSI network model](#osi-network-model)
* [HTTP Protocol](#http-protocol)
* [TCP/IP stack](#tcpip-stack)
* [Network problems](#network-problems)
* [Network diagnostics](#network-diagnostics)
2. PC device
* [Main components (hardware)](#main-components--hardware-)
* [Operating system design](#operating-system-design)
* [Processes and threads](#processes-and-threads)
* [Concurrency and parallelism](#concurrency-and-parallelism)
* [Inter-process communication](#inter-process-communication)
3. Linux Basics
* [Working with the terminal](#working-with-the-terminal)
* [Package manager](#package-manager)
* [Bash scripts](#bash-scripts)
* [Users and groups](#users-and-groups)
* [Permissions](#permissions)
* [Working with processes](#working-with-processes)
* [Working with SSH](#working-with-ssh)
* [Task Scheduler](#task-scheduler)
* [System logs](#system-logs)
* [Linux problems](#linux-problems)
4. General knowledge
* [Number systems](#number-systems)
* [Logical operations](#logical-operations)
* [Data structures](#data-structures)
* [Basic algorithms](#basic-algorithms)
* [Algorithm complexity](#algorithm-complexity)
* [Data storage formats](#data-storage-formats)
* [Text encodings](#text-encodings)
5. Programming Language
* [Classification of programming languages](#classification-of-programming-languages)
* [Language Basics](#language-basics)
* [Server development](#server-development)
* [Multithreading](#multithreading)
* [Advanced Topics](#advanced-topics)
* [Code quality](#code-quality)
6. Databases
* [Database classification](#database-classification)
* [Relational database](#relational-database)
* [MongoDB](#mongodb)
* [Redis](#redis)
* [ACID Requirements](#acid-requirements)
* [Designing databases](#designing-databases)
7. API development
* [REST API](#rest-api)
* [GraphQL](#graphql)
* [WebSockets](#websockets)
* [RPC and gRPC](#rpc-and-grpc)
* [WebRTC](#webrtc)
8. Software
* [Git version control system](#git-version-control-system)
* [Docker](#docker)
* [Postman/Insomnia](#postmaninsomnia)
* [Web servers](#web-servers)
* [Message brokers](#message-brokers)
9. Security
* [Web application vulnerabilities](#web-application-vulnerabilities)
* [Environment variables](#environment-variables)
* [Hashing](#hashing)
* [Authentication and authorization](#authentication-and-authorization)
* [SSL/TLS](#ssltls)
10. Testing
* [Unit Tests](#unit-tests)
* [Integration tests](#integration-tests)
* [E2E tests](#e2e-tests)
* [Load testing](#load-testing)
* [Regression testing](#regression-testing)
11. Optimization
- [Profiling](#profiling)
- [Caching](#caching)
- [Load balancing](#load-balancing)
12. Documentation
* [Markdown](#markdown)
* [Documentation inside code](#documentation-inside-code)
* [API Documentation](#api-documentation)
* [Static generators](#static-generators)
13. Building Architecture
* [Architectural templates](#architectural-templates)
* [Design patterns](#design-patterns)
* [Monolithic and microservice architecture](#monolithic-and-microservice-architecture)
* [Horizontal and vertical scaling](#horizontal-and-vertical-scaling)
[Additional and similar resources](#additional-and-similar-resources)
## Network & Internet
[Internet](https://en.wikipedia.org/wiki/Internet) is a worldwide system that connects computer networks from around the world into a single network for storing/transferring information. The Internet was originally developed for the military. But soon it began to be implemented in universities, and then it could be used by private companies, which began to organize networks of providers that provide Internet access services to ordinary citizens. By early 2020, the number of Internet users exceeded 4.5 billion.
- ### How the Internet works
Your computer has never been directly connected to the Internet. Because it can only see its local network to which other devices are connected via wired ([Ethernet](https://en.wikipedia.org/wiki/Ethernet)) or wirelessly (Wi-Fi, Bluetooth). To communicate with the Internet, you have a special minicomputer in your local network - [router](). It then connects you to [Internet Service Provider](https://en.wikipedia.org/wiki/Internet_service_provider) which in turn connects to other higher-level providers. Thus, your message, transits through the network of several ISPs before reaching the destination network.
The Internet is just a long wire to which a small number of [Tier 1 providers](https://en.wikipedia.org/wiki/Tier_1_network) are directly connected. The ISPs below that are just renting access.
- [Host]()
> Any device that is on any network.
- [Server]()
> A special computer on the network that serves requests from other computers.
π References
1. π [**How does the Internet work?** β MDN](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/How_does_the_Internet_work)
2. πΊ [**How does the internet work? (Full Course)** β YouTube](https://youtu.be/zN8YNNHcaZc)
- ### What is a domain name
[Domain Names](https://en.wikipedia.org/wiki/Domain_name) are human-readable addresses of web servers available on the Internet. They consist of parts (levels) separated from each other by a dot. Each of these parts provides specific information about the domain name. For example country, service name, localization, etc.
- Who owns domain names
> [The ICANN Corporation](https://en.wikipedia.org/wiki/ICANN) is the founder of the distributed domain registration system. It gives accreditations to companies that want to sell domains. In this way a competitive domain market is formed.
- How to buy a domain name
> A domain name cannot be bought forever. It is leased for a certain period of time. It is better to buy domains from [accredited registrars](https://www.icann.org/en/accredited-registrars?filter-letter=a&sort-direction=asc&sort-param=name&page=1) (you can find them in almost any country).
π References
1. π [**What is a Domain Name?** β MDN](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_domain_name)
2. πΊ [**A Beginners Guide to How Domain Names Work!** β YouTube](https://youtu.be/Y4cRx19nhJk)
- ### IP address
[IP address](https://en.wikipedia.org/wiki/IP_address) is a unique numeric address that is used to recognize a particular device on the network.
- Levels of visibility
> - External and publicly accessible IP address that belongs to your ISP and is used to access the Internet by hundreds of other users.
> - The IP address of your router in your ISP's local network, the same IP address from which you access the Internet.
> - The IP address of your computer in the local (home) network created by the router, to which you can connect your devices. Typically, it looks like 192.168.XXX.XXX.
> - The internal IP address of the computer, inaccessible from the outside and used only for communication between the running processes. It is the same for everyone - 127.0.0.1 or just _localhost_.
- [Port]()
> One device (computer) can run many applications that use the network. In order to correctly recognize where and which data coming over the network should be delivered (to which of the applications) a special numerical number - a port is used. That is, each running process on a computer which uses a network connection has its own personal port.
- [IPv4](https://en.wikipedia.org/wiki/IPv4)
> Version 4 of the IP protocol. It was developed in 1981 and limits the address space to about 4.3 billion (2^32) possible unique addresses.
- [IPv6](https://en.wikipedia.org/wiki/IPv6)
> Over time, the allocation of address space began to happen at a much faster rate, forcing the creation of a new version of the IP protocol to store more addresses. IPv6 is capable of issuing 2^128 (is huge number) unique addresses.
π References
1. πΊ [**IP addresses. Explained** β YouTube](https://youtu.be/7_-qWlvQQtY)
2. πΊ [**Public IP vs. Private IP and Port Forwarding (Explained by Example)** β YouTube](https://youtu.be/92b-jjBURkw)
3. πΊ [**What is IP address and types of IP address - IPv4 and IPv6** β YouTube](https://youtu.be/8npT9AALbrI)
- ### What is DNS
[DNS (Domain Name System)](https://en.wikipedia.org/wiki/DNS) is a decentralized Internet address naming system that allows you to create human-readable alphabetic names (domain names) corresponding to the numeric [IP addresses](#ip-address) used by computers.
π References
1. π [**What is DNS? Domain Name System explained** β freeCodeCamp](https://www.freecodecamp.org/news/what-is-dns/)
2. πΊ [**DNS (Domain Name System) explained. Types of Domain Name Servers** β YouTube](https://youtu.be/JkEYOt08-rU)
3. πΊ [**DNS as Fast As Possible** β YouTube](https://youtu.be/Rck3BALhI5c)
- ### Web application design
Modern [web applications](https://en.wikipedia.org/wiki/Web_application) consist of two parts: [Frontend and Backend](https://en.wikipedia.org/wiki/Frontend_and_backend). Thus implementing a [client-server model](https://en.wikipedia.org/wiki/Client%E2%80%93server_model).
The tasks of the Frontend are:
- Implementation of the user interface (appearance of the application)
> A special markup language [HTML](https://en.wikipedia.org/wiki/HTML) is used to create web pages.
> [CSS](https://en.wikipedia.org/wiki/CSS) style language is used to style fonts, layout of content, etc.
> [JavaScript](https://en.wikipedia.org/wiki/JavaScript) programming language is used to add dynamics and interactivity.
> As a rule, these tools are rarely used in their pure form, as so-called [frameworks](https://2020.stateofjs.com/en-US/technologies/front-end-frameworks/) and [preprocessors](https://www.freecodecamp.org/news/css-preprocessors/) exist for more convenient and faster development.
- Creating functionality for generating requests to the server
> These are usually different types of input forms that can be conveniently interacted with.
- Receives data from the server and then processes it for output to the client
Tasks of the Backend:
- Handling client requests
> Checking for permissions and access, all sorts of validations, etc.
- Implementing business logic
> A wide range of tasks can be implied here: working with databases, information processing, computation, etc. This is, so to speak, the heart of the Backend world. This is where all the important and interesting stuff happens.
- Generating a response and sending it to the client
π References
1. π [**Front-End vs. Back-End explained**](https://blog.teamtreehouse.com/i-dont-speak-your-language-frontend-vs-backend)
2. πΊ [**Everything You NEED to Know About WEB APP Architecture** β YouTube](https://youtu.be/sDlCSIDwpDs)
- ### Browsers and how they work
[Browser](https://en.wikipedia.org/wiki/Web_browser) is a client which can be used to send requests to a server for files which can then be used to render web pages. In simple terms, a browser can be thought of as a program for viewing HTML files, which can also search for and download them from the Internet.
π References
1. π [**How browsers work** β MDN](https://developer.mozilla.org/en-US/docs/Web/Performance/How_browsers_work)
2. π [**How browsers work: Behind the scenes of modern web browsers** β web.dev](https://web.dev/howbrowserswork/)
3. πΊ [**What is a web browser?** β YouTube](https://youtu.be/QzohDuGk4mM)
4. πΊ [**Anatomy of the browser 101 (Chrome University 2019)** β YouTube](https://youtu.be/PzzNuCk-e0Y)
- ### VPN and Proxy
The use of VPNs and Proxy is quite common in recent years. With the help of these technologies, users can get basic anonymity when surfing the web, as well as bypass various regional blockages.
- [VPN (Virtual Private Network)](https://en.wikipedia.org/wiki/VPN)
> A technology that allows you to become a member of a private network (similar to your local network), where requests from all participants go through a single public IP address. This allows you to blend in with the general mass of requests from other participants.
>
> - Simple procedure for connection and use.
> - Reliable traffic encryption.
> - There is no guarantee of 100% anonymity, because the owner of the network knows the IP-addresses of all participants.
> - VPNs are useless for dealing with multi-accounts and some programs because all accounts operating from the same VPN are easily detected and blocked.
> - Free VPNs tend to be heavily loaded, resulting in unstable performance and slow download speeds.
- [Proxy (proxy server)](https://en.wikipedia.org/wiki/Proxy_server)
> A proxy is a special server on the network that acts as an intermediary between you and the destination server you intend to reach. When you are connected to a proxy server all your requests will be performed on behalf of that server, that is, your IP address and location will be substituted.
>
> - The ability to use an individual IP address, which allows you to work with multi-accounts.
> - Stability of the connection due to the absence of high loads.
> - Connection via proxy is provided in the operating system and browser, so no additional software is required.
> - There are proxy varieties that provide a high level of anonymity.
> - The unreliability of free solutions, because the proxy server can see and control everything you do on the Internet.
π References
1. π [**What is VPN? How It Works, Types of VPN** β kaspersky.com](https://www.kaspersky.com/resource-center/definitions/what-is-a-vpn)
2. πΊ [**What Is a Proxy and How Does It Work?** β YouTube](https://youtu.be/ayo2EUPTEkE)
3. πΊ [**Proxy vs. Reverse Proxy (Explained by Example)** β YouTube](https://youtu.be/ozhe__GdWC8)
4. πΊ [**VPN vs Proxy Explained Pros and Cons** β YouTube](https://youtu.be/npnqyRT77Zc)
- ### Hosting
[Hosting](https://en.wikipedia.org/wiki/Web_hosting_service) is a special [service provided](https://en.wikipedia.org/wiki/Internet_hosting_service) by hosting providers, which allows you to rent space on a server (which is connected to the Internet around the clock), where your data and files can be stored. There are different options for hosting, where you can use not only the disk space of the server, but also the CPU power to run your network applications.
- [Virtual hosting](https://en.wikipedia.org/wiki/Virtual_hosting)
> One physical server that distributes its resources to multiple tenants.
- [VPS/VDS](https://en.wikipedia.org/wiki/Virtual_private_server)
> Virtual servers that emulate the operation of a separate physical server and are available for rent to the client with maximum privileges.
- [Dedicated server](https://en.wikipedia.org/wiki/Dedicated_hosting_service)
> Renting a full physical server with full access to all resources. As a rule, this is the most expensive service.
- [Cloud hosting](https://en.wikipedia.org/wiki/Cloud_storage)
> A service that uses the resources of several servers. When renting, the user pays only for the actual resources used.
- [Colocation](https://en.wikipedia.org/wiki/Colocation_centre)
> A service that gives the customer the opportunity to install their equipment on the provider's premises.
π References
1. π [**What is Web Hosting?** β namecheap.com](https://www.namecheap.com/hosting/what-is-web-hosting-definition/)
2. πΊ [**What is Web Hosting and How Does It Work?** β YouTube](https://youtu.be/H8oAvyqQwew)
3. πΊ [**Different Hosting Types Explained** β YouTube](https://youtu.be/CtNWVmt9U1M)
- ### OSI network model
| β | Level | Used protocols |
| --- | ------------------ | -------------------- |
| 7 | Application layer | HTTP, DNS, FTP, POP3 |
| 6 | Presentation layer | SSL, SSH, IMAP, JPEG |
| 5 | Session layer | APIs Sockets |
| 4 | Transport layer | TCP, UDP |
| 3 | Network layer | IP, ICMP, IGMP |
| 2 | Data link layer | Ethernet, MAC, HDLC |
| 1 | Physical layer | RS-232, RJ45, DSL |
- [Physical layer](https://en.wikipedia.org/wiki/Physical_layer)
> At this level, bits (ones/zeros) are encoded into physical signals (current, light, radio waves) and transmitted further by wire ([Ethernet](https://en.wikipedia.org/wiki/Ethernet)) or wirelessly ([Wi-Fi](https://en.wikipedia.org/wiki/Wi-Fi)).
- [Data link layer](https://en.wikipedia.org/wiki/Data_link_layer)
> Physical signals from layer 1 are decoded back into ones and zeros, errors and defects are corrected, and the sender and receiver [MAC addresses](https://en.wikipedia.org/wiki/MAC_address) are extracted.
- [Network layer](https://en.wikipedia.org/wiki/Network_layer)
> This is where traffic routing, DNS queries and [IP packet](https://en.wikipedia.org/wiki/Internet_Protocol) generation take place.
- [Transport layer](https://en.wikipedia.org/wiki/Transport_layer)
> The layer responsible for data transfer. There are two important protocols:
>
> - [TCP](https://en.wikipedia.org/wiki/Transmission_Control_Protocol) is a protocol that ensures reliable data transmission. TCP guarantees data delivery and preserves the order of the messages. This has an impact on the transmission speed. This protocol is used where data loss is unacceptable, such as when sending mail or loading web pages.
> - [UDP](https://en.wikipedia.org/wiki/User_Datagram_Protocol) is a simple protocol with fast data transfer. It does not use mechanisms to guarantee the delivery and ordering of data. It is used e.g. in online games where partial packet loss is not crucial, but the speed of data transfer is much more important. Also, requests to DNS servers are made through UDP protocol.
- [Session layer](https://en.wikipedia.org/wiki/Session_layer)
> Responsible for opening and closing communications (sessions) between two devices. Ensures that the session stays open long enough to transfer all necessary data, and then closes quickly to avoid wasting resources.
- [Presentation layer](https://en.wikipedia.org/wiki/Presentation_layer)
> Transmission, encryption/decryption and data compression. This is where data that comes in the form of zeros and ones are converted into desired formats (PNG, MP3, PDF, etc.)
- [Application layer](https://en.wikipedia.org/wiki/Application_layer)
> Allows the user's applications to access network services such as database query handler, file access, email forwarding.
π References
1. π [**Layers of OSI Model** β geeksForGeeks](https://www.geeksforgeeks.org/layers-of-osi-model/)
2. πΊ [**The OSI Model - Explained by Example** β YouTube](https://youtu.be/7IS7gigunyI)
3. πΊ [**TCP vs UDP Crash Course** β YouTube](https://youtu.be/qqRYkcta6IE)
- ### HTTP Protocol
[HTTP (HyperText Transport Protocol)](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) is the most important protocol on the Internet. It is used to transfer data of any format. The protocol itself works according to a simple principle: request -> response.
- [Structure of HTTP messages](https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages)
> Start Line > Headers > Message Body
- [Headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers)
> Additional service information that is sent with the request/response.
> Common headers: [Host](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host), [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent), [If-Modified-Since](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since), [Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie), [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer), [Authorization](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization), [Cache-Control](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control), [Content-Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type), [Content-Length](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length), [Last-Modified](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified), [Set-Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie), [Content-Encoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding).
- [Request methods](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods)
> [GET](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET) - data retrieval request
[POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) - request with data to create a new record
[PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) - request with data to change existing record
[DELETE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) - deletion request
Others: [HEAD](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD), [CONNECT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/CONNECT), [OPTIONS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/OPTIONS), [TRACE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE), [PATCH](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH).
- [Response status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)
> Each response from the server has a special numeric code that characterizes the state of the sent request. These codes are divided into 5 main classes:
>
> - 1Ρ
Ρ
- service information
> - 2Ρ
Ρ
- successful request
> - 3Ρ
Ρ
- redirect to another address
> - 4Ρ
Ρ
- client side error
> - 5Ρ
Ρ
- server side error
- [HTTPS](https://developer.mozilla.org/en-US/docs/Glossary/https)
> Same HTTP, but with encryption support
- [Cookie](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
> Because the HTTP protocol does not allow you to save any information about the status of previous requests/responses, you need to use cookies. Cookies allow the server to store various information on the client side, which the client can then send back to the server. In particular, cookies can be used for authorization or to save various settings/configurations.
- [CORS (Cross origin resource sharing)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)
> A technology that allows one domain to securely receive data from another domain.
- [CSP (Content Security Policy)](https://developer.mozilla.org/ru/docs/Web/HTTP/CSP)
> A special header that allows you to recognize and eliminate certain types of web application vulnerabilities.
- [HTTP/1.0 vs HTTP/1.1 vs HTTP/2](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Persistent_connections)
> The main innovation in version 1.1 is the permanent connection mode, which allows you to send several requests per connection. In version 2, the protocol became binary, with the ability to transmit data from multiple streams on the same channel.
π References
1. π [**How HTTP Works and Why it's Important** β freeCodeCamp](https://www.freecodecamp.org/news/how-the-internet-works/)
2. π [**Hypertext Transfer Protocol (HTTP)** β MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP)
3. πΊ [**Hyper Text Transfer Protocol Crash Course** β YouTube](https://youtu.be/0OrmKCB0UrQ)
4. π [**HTTP vs HTTPS β What's the Difference?** β freeCodeCamp](https://www.freecodecamp.org/news/http-vs-https/)
5. πΊ [**HTTP Cookies Crash Course** β YouTube](https://youtu.be/sovAIX4doOE)
6. πΊ [**Cross Origin Resource Sharing (Explained by Example)** β YouTube](https://youtu.be/Ka8vG5miErk)
7. πΊ [**When to use HTTP GET vs POST?** β YouTube](https://youtu.be/K8HJ6DN23zI)
8. πΊ [**How HTTP/2 Works, Performance, Pros & Cons and More** β YouTube](https://youtu.be/fVKPrDrEwTI)
9. πΊ [**HTTP/2 Critical Limitation that led to HTTP/3 & QUIC** β YouTube](https://youtu.be/GriONb4EfPY)
10. πΊ [**304 Not Modified HTTP Status (Explained with Code Example and Pros & Cons)** β YouTube](https://youtu.be/0QHmHR55_Lo)
11. πΊ [**What is the Largest POST Request the Server can Process?** β YouTube](https://youtu.be/0QHmHR55_Lo)
- ### TCP/IP stack
Compared to the [OSI model](https://github.com/cheatsnake/backend-cheats/blob/master/README_ENG.md#osi-network-model), the [TCP/IP](https://en.wikipedia.org/wiki/Internet_protocol_suite) stack has a simpler architecture. It is widely used and was first used as the basis for the creation of a global network, and then to describe the workings of the Internet.
π References
1. π [**What is the TCP/IP Model? Layers and Protocols Explained** β freeCodeCamp](https://www.freecodecamp.org/news/what-is-tcp-ip-layers-and-protocols-explained/)
2. πΊ [**What is TCP/IP?** β YouTube](https://youtu.be/PpsEaqJV_A0)
3. πΊ [**How TCP really works. Three-way handshake. TCP/IP Deep Dive** β YouTube](https://youtu.be/rmFX1V49K8U)
- ### Network problems
The quality of networks, much less the Internet, is far from ideal. This is due to the complex and dispersed network structure in different devices. Therefore, on the functioning of the network affects a huge number of factors. For example: the stability of the connection between the client device and its router, the quality of service of the provider, the power and performance of the server, the physical distance between the client and the server, etc.
- [Latency](https://developer.mozilla.org/en-US/docs/Web/Performance/Understanding_latency)
> The time it takes for a data packet to travel from sender to receiver. It depends more on the physical distance.
- [Packet loss](https://en.wikipedia.org/wiki/Packet_loss)
> Not all packets traveling over the network can reach their destination. This happens most often when using wireless networks or due to [network congestion](https://en.wikipedia.org/wiki/Network_congestion).
- [Round Trip Time (RTT)](https://en.wikipedia.org/wiki/Round-trip_delay)
> The time it takes for the data packet to reach its destination + the time to respond that the packet was received successfully.
- [Jitter](https://www.ir.com/guides/what-is-network-jitter)
> Delay fluctuations, unstable ping (for example, 50ms, 120ms, 35ms...).
- [Packet reordering](https://wiki.geant.org/display/public/EK/PacketReordering)
> The IP protocol does not guarantee that packets are delivered in the order in which they are sent.
π References
1. π [**Understanding latency** β MDN](https://developer.mozilla.org/en-US/docs/Web/Performance/Understanding_latency)
2. πΊ [**What is latency? What affects latency?** β YouTube](https://youtu.be/epAXDsq5SbE)
3. πΊ [**Basics of network bandwidth, latency, and jitter** β YouTube](https://youtu.be/WdbJdUh6W08)
4. πΊ [**Round Trip Time (RTT)** β YouTube](https://youtu.be/nT9F-USjtBg)
5. πΊ [**What Causes Packet Loss and How to Eliminate It In Your Network** β YouTube](https://youtu.be/Cg656nGbXe4)
- ### Network diagnostics
- [Traceroute](https://en.wikipedia.org/wiki/Traceroute)
> A procedure that allows you to trace to which nodes, with which IP addresses, a packet you send before it reaches its destination. Tracing can be used to identify computer network related problems and to examine/analyze the network.
- [Ping scan]()
> The easiest way to check the server for performance.
- [Checking for packet loss](https://www.dnsstuff.com/packet-loss-test)
> Due to dropped connections, not all packets sent over the network reach their destination.
- [Wireshark](https://en.wikipedia.org/wiki/Wireshark)
> A powerful program with a graphical interface for analyzing all traffic that passes through the network in real time.
π References
1. πΊ [**How does traceroute work?** β YouTube](https://youtu.be/G05y9UKT69s)
2. πΊ [**Traceroute (tracert) Explained - Network Troubleshooting** β YouTube](https://youtu.be/up3bcBLZS74)
3. πΊ [**Nmap - Host Discovery With Ping Sweep** β YouTube](https://youtu.be/LvCDaftsMwI)
4. πΊ [**Internet Troubleshooting - Pathping Packet Loss** β YouTube](https://youtu.be/VPdotNIXOgI)
5. πΊ [**Wireshark crash course (playlist)** β YouTube](https://youtube.com/playlist?list=PLBf0hzazHTGPgyxeEj_9LBHiqjtNEjsgt)
## PC device
- ### Main components (hardware)
- [Motherboard](https://en.wikipedia.org/wiki/Motherboard)
> The most important PC component to which all other elements are connected.
>
> - [Chipset](https://en.wikipedia.org/wiki/Chipset) - set of electronic components that responsible for the communication of all motherboard components.
> - [CPU socket](https://en.wikipedia.org/wiki/CPU_socket) - socket for mounting the processor.
> - [VRM (Voltage Regulator Module)](https://en.wikipedia.org/wiki/Voltage_regulator_module) β module that converts the incoming voltage (usually 12V) to a lower voltage to run the processor, integrated graphics, memory, etc.
> - Slots for RAM.
> - Expansion slots [PCI-Express](https://en.wikipedia.org/wiki/PCI_Express) - designed for connection of video cards, external network/sound cards.
> - Slots [Π.2](https://en.wikipedia.org/wiki/M.2) / [SATA](https://en.wikipedia.org/wiki/SATA) - designed to connect hard disks and SSDs.
- [CPU (Central processing unit)](https://en.wikipedia.org/wiki/Central_processing_unit)
> The most important device that executes instructions (programme code). Processors only work with 1 and 0, so all programmes are ultimately a set of binary code.
>
> - [Registers](https://en.wikipedia.org/wiki/Processor_register) - the fastest memory in a PC, has an extremely small capacity, is built into the processor and is designed to temporarily store the data being processed.
> - [Cache](https://en.wikipedia.org/wiki/CPU_cache) - slightly less fast memory, which is also built into the processor and is used to store a copy of data from frequently used cells in the main memory.
> - Processors can have different [architectures](https://en.wikipedia.org/wiki/Processor_design). Currently, the most common are the [x86](https://en.wikipedia.org/wiki/X86-64) architecture (desktop and laptop computers) and [ARM](https://en.wikipedia.org/wiki/ARM_architecture_family) (mobile devices as well as the latest Apple computers).
- [RAM (Random-access memory)](https://en.wikipedia.org/wiki/Random-access_memory)
> Fast, low capacity memory (4-16GB) designed to temporarily store program code, as well as input, output and intermediate data processed by the processor.
- [Data storage](https://en.wikipedia.org/wiki/Data_storage)
> Large capacity memory (256GB-1TB) designed for long-term storage of files and installed programmes.
- [GPU (Graphics card)](https://en.wikipedia.org/wiki/Graphics_card)
> A separate card that translates and processes data into images for display on a monitor. This device is also called a discrete graphics card. Usually needed for those who do 3D modelling or play games.
> [Built-in graphics card](https://en.wikipedia.org/wiki/Graphics_processing_unit#Integrated_graphics_processing_unit) is a graphics card built into the processor. It is suitable for daily work.
- [Network card](https://en.wikipedia.org/wiki/Network_interface_controller)
> A device that receives and transmits data from other devices connected to the [local network](https://en.wikipedia.org/wiki/Local_area_network).
- [Sound card](https://en.wikipedia.org/wiki/Sound_card)
> A device that allows you to process sound, output it to other devices, record it with a microphone, etc.
- [Power supply unit]()
> A device designed to convert the AC voltage from the mains to DC voltage.
π References
1. π [**Everything You Need to Know About Computer Hardware**](https://www.lifewire.com/computer-hardware-2625895)
2. πΊ [**What does what in your computer? Computer parts Explained** β YouTube](https://youtu.be/ExxFxD4OSZ0)
3. πΊ [**The Fetch-Execute Cycle: What's Your Computer Actually Doing?** β YouTube](https://youtu.be/Z5JC9Ve1sfI)
4. πΊ [**How a CPU Works in 100 Seconds // Apple Silicon M1 vs Intel i9** β YouTube](https://youtu.be/vqs_0W-MSB0)
5. πΊ [**Arm vs x86 - Key Differences Explained** β YouTube](https://youtu.be/AADZo73yrq4)
- ### Operating system design
[Operating system (OS)](https://en.wikipedia.org/wiki/Operating_system) is a comprehensive software system designed to manage a computer's resources. With operating systems, people do not have to deal directly with the processor, RAM or other parts of the PC.
OS can be thought of as an abstraction layer that manages the hardware of a computer, thereby providing a simple and convenient environment for user software to run.
- Main features
> - RAM management (space allocation for individual programms)
> - Loading programms into RAM and their execution
> - Execution of requests from user's programms (inputting and outputting data, starting and stopping other programms, freeing up memory or allocating additional memory, etc.)
> - Interaction with input and output devices (mouse, keyboard, monitor, etc.)
> - Interaction with storage media (HDDs and SSDs)
> - Providing a user's interface (console shell or graphical interface)
> - Logging of software errors (saving logs)
- Additional functions (may not be available in all OSs)
> - Organise [multitasking](https://en.wikipedia.org/wiki/Computer_multitasking) (simultaneous execution of several programms)
> - Delimiting access to resources for each process
> - [Inter-process communication](https://en.wikipedia.org/wiki/Inter-process_communication) (data exchange, synchronisation)
> - Organise the protection of the operating system itself against other programms and the actions of the user
> - Provide multi-user mode and differentiate rights between different OS users (admins, guests, etc.)
- [OS kernel]()
> The central part of the operating system which is used most intensively. The kernel is constantly in memory, while other parts of the OS are loaded into and unloaded from memory as needed.
- [Bootloader](https://en.wikipedia.org/wiki/Bootloader)
> The system software that prepares the environment for the OS to run (puts the hardware in the right state, prepares the memory, loads the OS kernel there and transfers control to it (the kernel).
- [Device drivers](https://en.wikipedia.org/wiki/Device_driver)
> Special software that allows the OS to work with a particular piece of equipment.
π References
1. π [**What is an OS? Operating System Definition for Beginners** β freeCodeCamp](https://www.freecodecamp.org/news/what-is-an-os-operating-system-definition-for-beginners/)
2. π [**Windows vs MacOS vs Linux β Operating System Handbook** β freeCodeCamp](https://www.freecodecamp.org/news/an-introduction-to-operating-systems/)
3. πΊ [**Operating Systems: Crash Course Computer Science** β YouTube](https://youtu.be/26QPDBe-NB8)
4. πΊ [**Operating System Basics** β YouTube](https://youtu.be/9GDX-IyZ_C8)
5. πΊ [**Operating System in deep details (playlist)** β YouTube](https://youtube.com/playlistlist=PLBlnK6fEyqRiVhbXDGLXDk_OQAeuVcp2O)
- ### Processes and threads
- [Process]()
> A kind of container in which all the resources needed to run a program are stored. As a rule, the process consists of:
>
> - Executable program code
> - Input and output data
> - [Call stack](https://en.wikipedia.org/wiki/Call_stack) (order of instructions for execution)
> - [Heap](https://en.wikipedia.org/wiki/Memory_management#Manual_memory_management) (a structure for storing intermediate data created during the process)
> - [Segment descriptor](https://en.wikipedia.org/wiki/Segment_descriptor)
> - [File descriptor](https://en.wikipedia.org/wiki/File_descriptor)
> - Information about the set of permissible powers
> - Processor status information
- [Thread]()
> An entity in which sequences of program actions (procedures) are executed. Threads are within a process and use the same address space. There can be multiple threads in a single process, allowing multiple tasks to be performed. These tasks, thanks to threads, can exchange data, use shared data or the results of other tasks.
π References
1. πΊ [**Difference Between Process and Thread** β YouTube](https://youtu.be/O3EyzlZxx3g)
2. πΊ [**How Do CPUs Use Multiple Cores** β YouTube](https://youtu.be/S3I5WNHbnJ0)
3. πΊ [**What is Hyper Threading Technology** β YouTube](https://youtu.be/wnS50lJicXc)
- ### Concurrency and parallelism
- [Parallelism](https://en.wikipedia.org/wiki/Parallel_computing)
> The ability to perform multiple tasks simultaneously using multiple processor cores, where each individual core performs a different task.
- [Concurrency]()
> The ability to perform multiple tasks, but using a single processor core. This is achieved by dividing tasks into separate blocks of commands which are executed in turn, but switching between these blocks is so fast that for users it seems as if these processes are running simultaneously.
π References
1. π [**Concurrency, parallelism, and the many threads of Santa Claus** β freeCodeCamp](https://www.freecodecamp.org/news/concurrency-parallelism-and-the-many-threads-of-santa-claus/)
2. πΊ [**Concurrency vs Parallelism** β YouTube](https://youtu.be/Y1pgpn2gOSg)
3. πΊ [**Concurrency is not Parallelism by Rob Pike** β YouTube](https://youtu.be/oV9rvDllKEg)
- ### Inter-process communication
A mechanism which allows to exchange data between threads of one or different processes. Processes can be run on the same computer or on different computers connected by a network. [Inter-process communication](https://en.wikipedia.org/wiki/Inter-process_communication) can be done in different ways.
- [File](https://en.wikipedia.org/wiki/Computer_file)
> The easiest way to exchange data. One process writes data to a certain file, another process reads the same file and thus receives data from the first process.
- [Signal (IPC)]()
> Asynchronous notification of one process about an event which occurred in another process.
- [Network socket](https://en.wikipedia.org/wiki/Network_socket)
> In particular, IP addresses and ports are used to communicate between computers using the TCP/IP protocol stack. This pair defines a socket (_socket_ corresponding to the address and port).
- [Semaphore]()
> A counter over which only 2 operations can be performed: increasing and decreasing (and for 0 the decreasing operation is blocked).
- [Message passing](https://en.wikipedia.org/wiki/Message_passing) & [Message queue](https://en.wikipedia.org/wiki/Message_queue)
- [Pipelines]()
> Redirecting the output of one process to the input of another (similar to a pipe).
π References
1. π [**Interprocess Communications** β Microsoft](https://learn.microsoft.com/en-us/windows/win32/ipc/interprocess-communications)
2. πΊ [**Interprocess Communication** β YouTube](https://youtu.be/dJuYKfR8vec)
3. πΊ [**Inter Process Communication** β YouTube](https://youtu.be/W0BX6geRCDQ)
## Linux Basics
Operating systems based on [Linux kernel](https://en.wikipedia.org/wiki/Linux_kernel) are the standard in the world of server development, since most servers run on such operating systems. Using Linux on servers is profitable because it is free.
There are a huge number of Linux distributions (preinstalled software bundles) to suit all tastes. One of the most popular is [Ubuntu](https://en.wikipedia.org/wiki/Ubuntu). This is where you can start your dive into server development.
[Install Ubuntu](https://ubuntu.com/download/desktop) on a separate PC or laptop. If this is not possible, you can use a special program [Virtual Box](https://www.virtualbox.org/wiki/Downloads) where you can [run other OS]() on top of the main OS. You can also run [Docker](https://www.docker.com/products/docker-desktop) [Ubuntu image container](https://hub.docker.com/_/ubuntu) (Docker is a [separate topic](#docker) that is exists in this repository).
- ### Working with the terminal
[Terminal](https://en.wikipedia.org/wiki/Computer_terminal) is a program that uses special text commands to control your computer. Generally, servers do not have graphical interfaces, so you will definitely need terminal skills.
- Basic commands for navigating the file system
```bash
ls # list directory contents
cd # go to specified directory
cd .. # move to a higher level (to the parent directory)
touch # create a file
cat > # enter text into the file (overwrite)
cat >> # enter text at the end of the file (append)
cat/more/less # to view the file contents
head/tail # view the first/last lines of a file
pwd # print path to current directory
mkdir # create a directory
rmdir # delete a directory
cp # copy a file or directory
mv # moving or renaming
rm # deleting a file or directory
find # file system search
du # output file or directory size
```
- Commands for help information
```bash
man # allows you to view a manual for any command
apropos # search for a command with a description that has a specified word
man -k # similar to the command above
whatis # a brief description of the command
```
- Super user rights
> Analogue to running as administrator in Windows
```bash
sudo # executes a command with superuser privileges
```
- Text editor
> Study any in order to read and edit files freely through the terminal.
> The easiest β [nano](https://en.wikipedia.org/wiki/GNU_nano).
> The most advanced β [Vim]().
π References
1. π [**31 Linux Commands Every Ubuntu User Should Know**](https://itsfoss.com/essential-ubuntu-commands/)
2. π [**The Linux Command Handbook** β freeCodeCamp](https://www.freecodecamp.org/news/the-linux-commands-handbook/)
3. πΊ [**The 50 Most Popular Linux & Terminal Commands** β YouTube](https://youtu.be/ZtqBQ68cfJc)
4. πΊ [**Nano Editor Fundamentals** β YouTube](https://youtu.be/gyKiDczLIZ4)
5. πΊ [**Vim Tutorial for Beginners** β YouTube](https://youtu.be/RZ4p-saaQkc)
- ### Package manager
The Package Manager is a utility that allows you to install/update software packages from the terminal.
Linux distributions can be divided into several groups, depending on which package manager they use: [apt]() (in [Debian](https://en.wikipedia.org/wiki/Debian) based distributions), [RPM](https://en.wikipedia.org/wiki/RPM_Package_Manager) (the [Red Hat](https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux) package management system) and [Pacman](https://en.wikipedia.org/wiki/Arch_Linux#Pacman) (the package manager in [Arch-like distributions](https://en.wikipedia.org/wiki/Arch_Linux))
Ubuntu is based on Debian, so it uses apt (advanced packaging tool) package manager.
- Basic Commands
```bash
apt install # install the package
apt remove # remove the package, but keep the configuration
apt purge # remove the package along with the configuration
apt update # update information about new versions of packages
apt upgrade # update the packages installed in the system
apt list --installed # list of packages installed on the system
apt list --upgradable # list of packages that need to be updated
apt search # searching for packages by name on the network
apt show # package information
```
π References
1. πΊ [**Linux Crash Course - The apt Command** β YouTube](https://youtu.be/1kicKTbK768)
2. πΊ [**Linux Package Management | Debian, Fedora, and Arch Linux** β YouTube](https://youtu.be/lkii2cGuKao)
3. π [**sudo apt-get update vs upgrade β What is the Difference?** β freeCodeCamp](<(https://www.freecodecamp.org/news/sudo-apt-get-update-vs-upgrade-what-is-the-difference/)>)
- ### Bash scripts
You can use scripts to automate the sequential input of any number of commands. In [Bash]() you can create different conditions (branching), loops, timers, etc. to perform all kinds of actions related to console input.
- [Basics of Bash Scripts](./files/linux/bash-scripts-cheatsheet.md)
> The most basic and frequently used features such as: variables, I/O, loops, conditions, etc.
- Practice
> Solve challenges on sites like [HackerRank](https://www.hackerrank.com/domains/shell) and [Codewars](https://www.codewars.com/join?language=shell).
> Start using Bash to automate routine activities on your computer. If you're already a programmer, create scripts to easily build your project, to install settings, and so on.
- [ShellCheck](https://github.com/koalaman/shellcheck) script analysis tool
> It will point out possible mistakes and teach you best practices for writing really good scripts.
- Additional resources
> Repositories such as [awesome bash](https://github.com/awesome-lists/awesome-bash) and [awesome shell](https://github.com/alebcay/awesome-shell) have entire collections of useful resources and tools to help you develop even more skills with Bash and the terminal in general.
π References
1. π [**Shell Scripting for Beginners** β freeCodeCamp](https://www.freecodecamp.org/news/shell-scripting-crash-course-how-to-write-bash-scripts-in-linux/)
2. πΊ [**Bash Scripting Full Course 3 Hours** β YouTube](https://youtu.be/e7BufAVwDiM)
- ### Users and groups
Linux-based operating systems are multi-user. This means that several people can run many different applications at the same time on the same computer. For the Linux system to be able to "recognize" a user, he must be logged in and therefore each user must have a unique name and a secret password.
- Working with users
```bash
useradd [flags] # create a new user
passwd # set a password for the user
usermod [flags] # edit a user
usermod -L # block a user
usermod -U # unblock a user
userdel [flags] # delete a user
```
- Working with groups
```bash
groupadd [flags] # create a group
groupmod [flags] # edit group
groupdel [flags] # delete group
usermod -a -G # add a user to groups
gpasswd --delete # remove a user from groups
```
- System files
```bash
/etc/passwd # a file containing basic information about users
/etc/shadow # a file containing encrypted passwords
/etc/group # a file containing basic information about groups
/etc/gshadow # a file containing encrypted group passwords
```
π References
1. π [**Managing Users, Groups and Permissions in Linux**](https://omarrrz-lounge.hashnode.dev/managing-users-groups-and-permissions-in-linux)
2. π [**Linux User Groups Explained** β freeCodeCamp](https://www.freecodecamp.org/news/linux-user-groups-explained-how-to-add-a-new-group-a-new-group-member-and-change-groups/)
3. πΊ [**Linux Users and Groups** β YouTube](https://youtu.be/b-9j2jiCOEA)
- ### Permissions
In Linux, it is possible to share privileges between users, limit access to unwanted files or features, control available actions for services, and much more. In Linux, there are only three kinds of rights - read, write and execute - and three categories of users to which they can be applied - file owner, file group and everyone else.
- Basic commands for working with rights
```bash
chown # changes the owner and/or group for the specified files
chmod # changes access rights to files and directories
chgrp # allows users to change groups
```
- Extended rights [SUID and GUID](https://en.wikipedia.org/wiki/Setuid), [sticky bit](https://en.wikipedia.org/wiki/Sticky_bit)
- [ACL (Access control list)](https://en.wikipedia.org/wiki/Access-control_list)
> An advanced subsystem for managing access rights.
π References
1. π [**An Introduction to Linux Permissions** β Digital Ocean](https://www.digitalocean.com/community/tutorials/an-introduction-to-linux-permissions)
2. πΊ [**Understanding File & Directory Permissions** β YouTube](https://youtu.be/4e669hSjaX8)
- ### Working with processes
Linux processes can be described as containers in which all information about the state of a running program is stored. If a program hangs and you need to restore it, then you need the skills to manage the processes.
- Basic Commands
```bash
ps # display a snapshot of the processes of all users
top # real-time task manager
& # running the process in the background, (without occupying the console)
jobs # list of processes running in the background
fg # return the process back to the active mode by its number
bg # start a stopped process in the background
kill # terminate the process by PID
killall # terminate all processes related to one program
```
π References
1. π [**How to Show Process Tree in Linux**](https://linuxhandbook.com/show-process-tree/)
2. π [**How To Use ps, kill, and nice to Manage Processes in Linux** β Digital Ocean](https://www.digitalocean.com/community/tutorials/how-to-use-ps-kill-and-nice-to-manage-processes-in-linux)
3. πΊ [**Linux processes, init, fork/exec, ps, kill, fg, bg, jobs** β YouTube](https://youtu.be/TJzltwv7jJs)
- ### Working with SSH
[SSH]() allows remote access to another computer's terminal. In the case of a personal computer, this may be needed to solve an urgent problem, and in the case of a server, it is generally the primary method of connection.
- Basic commands
```bash
apt install openssh-server # installing SSH (out of the box almost everywhere)
service ssh start # start SSH
service ssh stop # stop SSH
ssh -p user@remote_host # connecting to a remote PC via SSH
ssh-keygen -t rsa # RSA key generation for passwordless login
ssh-copy-id -i ~/.ssh/id_rsa user@remote_host # copying a key to a remote machine
```
π References
1. π [**What the hell is SSH?** β freeCodeCamp](PASTE)
2. πΊ [**Learn SSH In 6 Minutes - Beginners Guide to SSH Tutorial** β YouTube](https://youtu.be/v45p_kJV9i4)
- ### Task Scheduler
Schedulers allow you to flexibly manage the delayed running of commands and scripts. Linux has a built-in [cron](https://en.wikipedia.org/wiki/Cron) scheduler that can be used to easily perform necessary actions at certain intervals.
- Main commands
```bash
crontab -e # edit the crontab file of the current user
crontab -l # output the contents of the current schedule file
crontab -r # deleting the current schedule file
```
- Config files
```bash
/etc/crontab # base config
/etc/cron.d/ # crontab files used to manage the entire system
# config files for automatically run programs:
/etc/cron.daily/ # every day
/etc/cron.weekly/ # every week
/etc/cron.monthly/ # every month
```
π References
1. π [**How to schedule and manage tasks using crontab** β dev.to](https://dev.to/shaikh/how-to-schedule-and-manage-tasks-using-crontab-20dj)
2. πΊ [**Cron Jobs For Beginners | Linux Task Scheduling** β YouTube](https://youtu.be/v952m13p-b4)
- ### System logs
[Log files]() are special text files that contain all information about the operation of a computer, program, or user. They are especially useful when bugs and errors occur in the operation of a program or server. It is recommended to periodically review log files, even if nothing suspicious happens.
- Main log files
```bash
/var/log/syslog ΠΈΠ»ΠΈ /var/log/messages # information about the kernel,
# various services detected, devices, network interfaces, etc.
/var/log/auth.log ΠΈΠ»ΠΈ /var/log/secure # user authorization information
/var/log/faillog # failed login attempts
/var/log/dmesg # information about device drivers
/var/log/boot.log # operating system boot information
/var/log/cron # cron task scheduler report
```
- [lnav utility](https://lnav.org/)
> Designed for easy viewing of log files (highlighting, reading different formats, searching, etc.)
- Log rotation with [logrotate](https://github.com/logrotate/logrotate)
> Allows you to configure automatic deletion (cleaning) of log files so as not to clog memory.
- [Demon journald](https://manpages.ubuntu.com/manpages/bionic/man1/journalctl.1.html)
> Collects data from all available sources and stores it in binary format for convenient and dynamic control
π References
1. πΊ [**Linux Crash Course - Understanding Logging** β YouTube](https://youtu.be/6uP_f_z3CbM)
- ### Linux problems
- Problems with commands in the terminal
> Occur due to erroneous actions of the user. Often associated with typos, lack of rights, incorrectly specified options, etc.
- Driver problems
> All free Linux drivers are built right into its kernel. Therefore, everything should work "out of the box" after installing the system (problems may occur with brand new hardware which has just been released on the market). Drivers whose source code is closed are considered proprietary and are not included in the kernel but are installed manually (like Nvidia graphics drivers).
- Problems with kernel
> [Kernel panic]() can occur due to an error when mounting the root file system.
> This is best helped by the skill of reading the logs to find problems (`dmesg` command).
- [Segmentation fault]()
> Occurs when a process accesses invalid memory locations.
- Disk and file system problems
> Can occur due to lack of space.
π References
## General knowledge
- ### Number systems
π References
- ### Logical operations
π References
- ### Data structures
π References
- ### Basic algorithms
π References
- ### Algorithm complexity
π References
- ### Data storage formats
π References
- ### Text encodings
π References
## Programming Language
- ### Classification of programming languages
π References
- ### Language Basics
π References
- ### Server development
π References
- ### Multithreading
π References
- ### Advanced Topics
π References
- ### Code quality
π References
## Databases
- ### Database classification
π References
- ### Relational database
π References
- ### MongoDB
π References
- ### Redis
π References
- ### ACID Requirements
π References
- ### Designing databases
π References
## API development
- ### REST API
π References
- ### GraphQL
π References
- ### WebSockets
π References
- ### RPC and gRPC
π References
- ### WebRTC
π References
## Software
- ### Git version control system
π References
- ### Docker
π References
- ### Postman/Insomnia
π References
- ### Web servers
π References
- ### Message brokers
π References
## Security
- ### Web application vulnerabilities
π References
- ### Environment variables
π References
- ### Hashing
π References
- ### Authentication and authorization
π References
- ### SSL/TLS
π References
## Testing
- ### Unit Tests
π References
- ### Integration tests
π References
- ### E2E tests
π References
- ### Load testing
π References
- ### Regression testing
π References
## Optimization
- ### Profiling
π References
- ### Caching
π References
- ### Load balancing
π References
## Documentation
- ### Markdown
π References
- ### Documentation inside code
π References
- ### API Documentation
π References
- ### Static generators
π References
## Building architecture
- ### Architectural templates
π References
- ### Design patterns
π References
- ### Monolithic and microservice architecture
π References
- ### Horizontal and vertical scaling
π References
## Additional and similar resources
- [Backend Developer Roadmap: Learn to become a modern backend developer](https://roadmap.sh/backend)
- [Hussein Nasser β YouTube channel about networking](https://www.youtube.com/c/HusseinNasser-software-engineering)
- [CS50 2022 β Harvard University's course about programming](https://youtube.com/playlist?list=PLeLzIg9tqA3LQW-RiFA8zJUBcTKqUVLMU)
- [A curated and opinionated list of resources (English & Russian) for Backend developers](https://github.com/zhashkevych/awesome-backend)
Made with ♥