Cloud Explainers

MySQL vs PostgreSQL: Which One Should You Use?

PostgreSQL9 min video

MySQL vs PostgreSQL for beginners, run side by side on the same data at their default settings: why MySQL calls You@Example.com a duplicate and PostgreSQL saves it, why 7 / 2 is 3.5 in one and 3 in the other, what a rolled-back migration leaves behind in each, RETURNING and extensions, a process per connection vs a thread, what 120 connections do to each, how fast each one is, and a table for picking between them.

MySQL vs PostgreSQL: Which One Should You Use?, the full picture: diagram of your app, MySQL 8.4, threads, PostgreSQL 19, processes, MySQL: one program, PostgreSQL: a process each
The whole picture, from the video's recap.

Same SQL, two answers

Your app needs a database: MySQL or PostgreSQL? One email signs up twice, once in capitals. MySQL says: duplicate. PostgreSQL saves both.

laptop: mysql (MySQL 8.4)
mysql> INSERT INTO users (email) VALUES ('you@example.com');Query OK, 1 row affected (0.00 sec)
laptop: mysql (MySQL 8.4)
mysql> INSERT INTO users (email) VALUES ('You@Example.com');ERROR 1062 (23000): Duplicate entry 'You@Example.com' for key 'users.email'
laptop: mysql (MySQL 8.4)
shop=> INSERT INTO users (email) VALUES ('you@example.com');INSERT 0 1
laptop: mysql (MySQL 8.4)
shop=> INSERT INTO users (email) VALUES ('You@Example.com');INSERT 0 1
laptop: mysql (MySQL 8.4)
shop=> SELECT * FROM users; id |      email
----+-----------------
  1 | you@example.com
  2 | You@Example.com
(2 rows)

In PostgreSQL, one person now has two accounts. We found more surprises: in math, in migrations, and in speed. By the end, you'll know which one to pick.

Text: case and accents

Both tables have one rule: each email can only be used once. So why did only MySQL call it a duplicate?

One email, saved twice: comparison table of MySQL vs PostgreSQL, The rule, you@example.com, You@Example.com, Accounts

Ask each one: are these two emails equal? MySQL says one, meaning true. PostgreSQL says f, for false.

laptop: mysql (MySQL 8.4)
mysql> SELECT 'You@Example.com' = 'you@example.com' AS same;+------+
| same |
+------+
|    1 |
+------+
1 row in set (0.00 sec)
laptop: mysql (MySQL 8.4)
shop=> SELECT 'You@Example.com' = 'you@example.com' AS same; same
------
 f
(1 row)

Now cafe, with and without its accent. MySQL: equal again. PostgreSQL: not equal. MySQL is ignoring capitals, and accents too.

laptop: mysql (MySQL 8.4)
mysql> SELECT 'café' = 'cafe' AS same;+------+
| same |
+------+
|    1 |
+------+
1 row in set (0.00 sec)
laptop: mysql (MySQL 8.4)
shop=> SELECT 'café' = 'cafe' AS same; same
------
 f
(1 row)

The reason is a setting called a collation: the rules for comparing and sorting text. MySQL's default collation is what ignored the capitals and the accent. PostgreSQL compares text exactly, letter by letter. MySQL can be strict too: ask it for a case-sensitive collation, and the same two emails are not equal.

A collation: the rules for comparing text: diagram of You@Example.com, you@example.com, MySQL's default, PostgreSQL, equal, not equal

Here's how to stop duplicate accounts in PostgreSQL. Add a rule: turn every email into small letters, and no two may match. In SQL, that kind of rule is called a unique index. But PostgreSQL won't create it yet: the duplicate from earlier is already in the table. Delete it, add the rule, then try the capital version again: refused. In PostgreSQL, you add that rule. In MySQL, its collation already did.

laptop: psql (PostgreSQL 19)
shop=> CREATE UNIQUE INDEX users_email_lower ON users (lower(email));ERROR:  could not create unique index "users_email_lower"
DETAIL:  Key (lower(email::text))=(you@example.com) is duplicated.
laptop: psql (PostgreSQL 19)
shop=> DELETE FROM users WHERE email = 'You@Example.com';DELETE 1
laptop: psql (PostgreSQL 19)
shop=> CREATE UNIQUE INDEX users_email_lower ON users (lower(email));CREATE INDEX
laptop: psql (PostgreSQL 19)
shop=> INSERT INTO users (email) VALUES ('You@Example.com');ERROR:  duplicate key value violates unique constraint "users_email_lower"
DETAIL:  Key (lower(email::text))=(you@example.com) already exists.

Bad data and math

Older guides warn that MySQL quietly saves bad data. Not any more. Try saving the word free as an order's total, which has to be a number. Both refuse.

laptop: mysql (MySQL 8.4)
mysql> INSERT INTO orders (email, total) VALUES ('e@example.com', 'free');ERROR 1366 (HY000): Incorrect decimal value: 'free' for column 'total' at row 1
laptop: mysql (MySQL 8.4)
shop=> INSERT INTO orders (email, total) VALUES ('e@example.com', 'free');ERROR:  invalid input syntax for type numeric: "free"
LINE 1: ...INTO orders (email, total) VALUES ('e@example.com', 'free');
                                                               ^

But plain arithmetic is different. Seven divided by two. MySQL: three point five. PostgreSQL: three. Seven and two are both whole numbers, so PostgreSQL gives a whole-number answer, and drops the half. Write two point zero, and you get three point five. So if you work out an average this way, like total stars divided by the number of reviews, PostgreSQL can quietly drop the fraction.

laptop: mysql (MySQL 8.4)
mysql> SELECT 7 / 2;+--------+
| 7 / 2  |
+--------+
| 3.5000 |
+--------+
1 row in set (0.00 sec)
laptop: mysql (MySQL 8.4)
shop=> SELECT 7 / 2; ?column?
----------
        3
(1 row)
laptop: mysql (MySQL 8.4)
shop=> SELECT 7 / 2.0;      ?column?
--------------------
 3.5000000000000000
(1 row)

A migration that fails halfway

What happens when a change fails halfway? A migration is a script that changes your tables. Ours adds a coupon column, then a rule that every total is above zero. But one order is a free sample, with a total of zero, so the rule will fail. It runs inside a transaction: all the changes happen, or none.

A migration: two changes, all or nothing: diagram of a transaction, 1. add a column, 2. add a rule, order 3

MySQL first. Start the transaction. Add the column: it works. Add the rule: it fails, because of that zero. So roll back: undo the whole group. Now list the columns of orders. Guess first: is the coupon column still there? It is. MySQL saved it the moment that line ran. A change to a table's structure ends the transaction on its own, so the rollback had nothing left to undo. That's not a bug. The MySQL manual says so: alter table always ends the transaction first.

laptop: mysql (MySQL 8.4)
mysql> START TRANSACTION;Query OK, 0 rows affected (0.00 sec)
laptop: mysql (MySQL 8.4)
mysql> ALTER TABLE orders ADD COLUMN coupon VARCHAR(20);Query OK, 0 rows affected (0.00 sec)
Records: 0  Duplicates: 0  Warnings: 0
laptop: mysql (MySQL 8.4)
mysql> ALTER TABLE orders ADD CONSTRAINT total_positive CHECK (total > 0);ERROR 3819 (HY000): Check constraint 'total_positive' is violated.
laptop: mysql (MySQL 8.4)
mysql> ROLLBACK;Query OK, 0 rows affected (0.00 sec)
laptop: mysql (MySQL 8.4)
mysql> SELECT column_name FROM information_schema.columns WHERE table_name = 'orders' ORDER BY ordinal_position;+-------------+
| COLUMN_NAME |
+-------------+
| id          |
| email       |
| total       |
| coupon      |
+-------------+
4 rows in set (0.00 sec)

Now PostgreSQL, the same steps. The column is added. The rule fails on the same zero. Roll back, and list the columns: id, email, total. No coupon. Nothing is left half done. In PostgreSQL, changes to a table's structure are part of the transaction, like any other change. So if a real migration has ten changes and the third one fails, you fix it and run the whole thing again, instead of cleaning up by hand.

laptop: psql (PostgreSQL 19)
shop=> BEGIN;BEGIN
laptop: psql (PostgreSQL 19)
shop=> ALTER TABLE orders ADD COLUMN coupon VARCHAR(20);ALTER TABLE
laptop: psql (PostgreSQL 19)
shop=> ALTER TABLE orders ADD CONSTRAINT total_positive CHECK (total > 0);ERROR:  check constraint "total_positive" of relation "orders" is violated by some row
laptop: psql (PostgreSQL 19)
shop=> ROLLBACK;ROLLBACK
laptop: psql (PostgreSQL 19)
shop=> SELECT column_name FROM information_schema.columns WHERE table_name = 'orders' ORDER BY ordinal_position; column_name
-------------
 id
 email
 total
(3 rows)

Everyday SQL and extensions

Each database speaks its own version of SQL, and your app gets written in that version, so switching later means rewriting those parts. Two everyday examples. You add a row, and the database picks its id number. You want that id. PostgreSQL hands it straight back: returning id. MySQL doesn't understand the word returning, so it's a syntax error. Instead, you insert, then ask a second question: what was the last id you made?

laptop: psql (PostgreSQL 19)
shop=> INSERT INTO users (email) VALUES ('new@example.com') RETURNING id; id
----
  4
(1 row)

INSERT 0 1
laptop: psql (PostgreSQL 19)
mysql> INSERT INTO users (email) VALUES ('new@example.com') RETURNING id;ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'RETURNING id' at line 1
laptop: psql (PostgreSQL 19)
mysql> INSERT INTO users (email) VALUES ('new@example.com');Query OK, 1 row affected (0.00 sec)
laptop: psql (PostgreSQL 19)
mysql> SELECT LAST_INSERT_ID();+------------------+
| LAST_INSERT_ID() |
+------------------+
|                3 |
+------------------+
1 row in set (0.00 sec)

Same for an upsert: add a row, or update it if it's already there. MySQL says: on duplicate key update. PostgreSQL says: on conflict, do update. Type MySQL's words into PostgreSQL, and it's a syntax error.

laptop: mysql (MySQL 8.4)
mysql> INSERT INTO products (id, name, price) VALUES (1, 'product 1', 9.99) ON DUPLICATE KEY UPDATE price = 9.99;Query OK, 2 rows affected (0.00 sec)
laptop: mysql (MySQL 8.4)
shop=> INSERT INTO products (id, name, price) VALUES (1, 'product 1', 9.99) ON CONFLICT (id) DO UPDATE SET price = 9.99;INSERT 0 1
laptop: mysql (MySQL 8.4)
shop=> INSERT INTO products (id, name, price) VALUES (1, 'product 1', 9.99) ON DUPLICATE KEY UPDATE price = 9.99;ERROR:  syntax error at or near "DUPLICATE"
LINE 1: ...id, name, price) VALUES (1, 'product 1', 9.99) ON DUPLICATE ...
                                                             ^

PostgreSQL also takes add-ons, called extensions, that teach it new tricks. This server comes with forty-seven ready to switch on. One is citext, a text type that ignores capitals: another way to fix our email problem. Another is fuzzy text search, which finds words even when they're misspelled. Bigger ones install separately: PostGIS for maps and distances, and pgvector for AI search by meaning.

laptop: psql (PostgreSQL 19)
shop=> SELECT count(*) FROM pg_available_extensions; count
-------
    47
(1 row)
laptop: psql (PostgreSQL 19)
shop=> SELECT name FROM pg_available_extensions WHERE name IN ('citext', 'pg_trgm', 'hstore', 'postgis', 'vector') ORDER BY name;  name
---------
 citext
 hstore
 pg_trgm
(3 rows)

Connections: processes or threads

In 2016, Uber moved from PostgreSQL to MySQL, and one reason was what happens every time an app connects. PostgreSQL starts a new process for every connection: a separate running program, with its own memory. MySQL runs one program, and gives each connection a thread inside it. A thread is lighter: it shares the program's memory.

Here it is for real. Our app opens fifty connections to PostgreSQL, and holds them. On the server, ps lists the running processes: fifty-one, one for each connection, plus one for psql, the window we've been typing our queries into. Now fifty to MySQL. It's still one program. It was already running thirty-seven threads of its own, and now it has eighty-seven: one more for each connection.

laptop: ~
python3 connections.py postgres 50 20postgres: 50 of 50 connections open
laptop: ~
ps -e -o pid,cmd | grep '[p]ostgres: app' | head -4     81 postgres: app shop 172.18.0.5(46664) idle
     91 postgres: app shop 172.18.0.5(51098) idle
     92 postgres: app shop 172.18.0.5(51110) idle
     93 postgres: app shop 172.18.0.5(51120) idle
laptop: ~
ps -e -o pid,cmd | grep -c '[p]ostgres: app'51
laptop: ~
python3 connections.py mysql 50 20mysql: 50 of 50 connections open
laptop: ~
ps -o pid,nlwp,cmd -C mysqld    PID NLWP CMD
      1   87 mysqld

Each server also has a limit. MySQL allows a hundred and fifty-one connections by default. PostgreSQL, a hundred. So open a hundred and twenty to each. Guess first: which one says no first? PostgreSQL. Our app got ninety-six. One of the other four was our psql window, and the last three are kept spare for administrators. MySQL opened all hundred and twenty. You can raise PostgreSQL's limit, but every extra connection is another process.

laptop: ~
mysql> SELECT @@max_connections;+-------------------+
| @@max_connections |
+-------------------+
|               151 |
+-------------------+
1 row in set (0.00 sec)
laptop: ~
shop=> SHOW max_connections; max_connections
-----------------
 100
(1 row)
laptop: ~
python3 connections.py postgres 120postgres: 96 of 120 connections open
connection 97: FATAL:  remaining connection slots are reserved for roles with the SUPERUSER attribute
laptop: ~
python3 connections.py mysql 120mysql: 120 of 120 connections open

Picture visitors to a building. PostgreSQL builds every visitor a small house of their own. MySQL gives every visitor a desk in one shared office. Houses cost more, so busy PostgreSQL apps put a front desk at the door: a connection pooler, like PgBouncer. Hundreds of app connections share a few real ones.

Speed

Last, the question everyone asks: is one of them faster? The same small work from the laptop, three runs each. Ten thousand lookups by id: a tie, zero point zero four milliseconds each. Two thousand inserts, each saved on its own: PostgreSQL took 0.19 seconds. MySQL took 0.82, more than four times as long.

laptop: ~
python3 speed.py10,000 lookups by id (middle of 3 runs)
  MySQL             0.40 s   0.04 ms each
  PostgreSQL        0.40 s   0.04 ms each
  MySQL, no binlog  0.40 s   0.04 ms each
2,000 inserts, one commit each (middle of 3 runs)
  MySQL             0.82 s   0.41 ms each
  PostgreSQL        0.19 s   0.09 ms each
  MySQL, no binlog  0.23 s   0.12 ms each

That gap is mostly one default. Saving a change for good is called a commit. Both servers write each commit to a log on disk before they say done: MySQL calls it the redo log. MySQL also writes it to a second log, the binary log. Copies of your database, called replicas, read that log to stay in sync. That's one more write to disk on every commit. PostgreSQL's replicas read its one log, so it writes once.

MySQL writes each commit twice, by default: diagram of a commit, the redo log, the binary log, MySQL replicas, PostgreSQL replicas

Here's the same MySQL with the binary log switched off: twenty-three hundredths of a second, close to PostgreSQL. But without it you can't have replicas, so leave it on. With it on, MySQL's inserts stay slower, but at under half a millisecond each, a new app won't feel it. And lookups were a tie. Speed won't pick for you.

2,000 inserts, one commit each (seconds, middle of 3 runs): chart of MySQL (binary log on): 0.82 s, MySQL, binary log off: 0.23 s, PostgreSQL: 0.19 s, Log on: 0.41 ms an insert. Lookups: a tie

Which one to pick

So, which one should you use? PostgreSQL does exactly what you typed. That's why it saved both emails, and why it dropped the half. You get fewer hidden surprises, but you write the rules yourself. Its migrations undo cleanly, and it hands back new ids. Pick MySQL when your tools expect it, or when you need lots of connections: desks, not houses.

MySQL or PostgreSQL?: comparison table of MySQL vs PostgreSQL, Text, 7 / 2, Failed migration, New row's id, WordPress, Connections

WordPress, for example, needs MySQL or its close cousin, MariaDB. But starting fresh, with no reason either way? Start with PostgreSQL. Just decide on day one how emails should compare, and add the rule, before any duplicates get in.

Starting a new project?: diagram of WordPress, MySQL 8.4, a new project, PostgreSQL 19, your rules, day one, Your tools need MySQL, A new project

If you now know which database to install, subscribe for more side-by-side tests like this one.

The lab, the scripts, and every command are linked in the description, so you can run every test yourself, on your own laptop. Thanks for watching Cloud Explainers.

Sources

Demos: the official MySQL and PostgreSQL Docker images on a laptop. The shop data is made up; every command, output and number was real. Watch the full video on YouTube.

More videos

Kubernetes10 min

Docker vs Kubernetes: What's the Difference?

HTTP & HTTPS11 min

Every HTTP Status Code You Need to Know

PostgreSQL8 min

How to Fix PostgreSQL 'Relation Does Not Exist' Errors

Git9 min

Git Merge vs Rebase: Which One Should You Use?

APIs10 min

How API Webhooks Work

LLM infrastructure9 min

How LLM Tokens Work

Docker9 min

Docker Containers vs Virtual Machines: What's the Difference?

Local LLMs (Ollama)15 min

Ollama: Full Tutorial for Beginners

GitHub Actions15 min

GitHub Actions: Full Tutorial for Beginners

Certificates & PKI (ADCS)8 min

How to Fix Certificate Errors: 'Your Connection Is Not Private'

AWS9 min

How the Amazon Ergo AI Model Works

LLM infrastructure9 min

How to Fix LLM API Rate Limit Errors (429)

LLM infrastructure9 min

RAG vs Fine-Tuning: Which One Should You Use?

Load balancing & Nginx24 min

Nginx: Full Tutorial for Beginners

Go (Golang)5 min

Golang go func(): Starting Goroutines in 5 Minutes

Terraform23 min

Terraform: Full Tutorial for Beginners

Go (Golang)5 min

Golang Generics ([T any]) in 5 Minutes

AWS9 min

How AWS Bedrock Works

LLM infrastructure8 min

How LLM Embeddings Work

Python9 min

How to Fix Python CUDA Memory Errors in PyTorch

Go (Golang)5 min

Golang Type Assertions in 5 Minutes

LLM infrastructure10 min

CPU vs GPU for LLM Inference: What Actually Changes

Google Colab (Jupyter notebooks in the cloud)15 min

Google Colab: Full Tutorial for Beginners

AWS8 min

Amazon Bedrock vs OpenRouter: Which One Should You Use?

Go (Golang)5 min

Golang Channels (chan) in 5 Minutes

Homelab & self-hosting21 min

Tailscale: Full Tutorial for Beginners

LLM infrastructure9 min

How RAG Works

Git11 min

Every Git Setting to Change on Day One

Linux9 min

WSL vs a Linux Virtual Machine: Which One Should You Use?

PostgreSQL9 min

Every PostgreSQL Setting to Change After You Install It

Docker9 min

What Happens When You Install Docker on Ubuntu

Python8 min

How to Fix Python 'Address Already in Use' Errors

Go (Golang)5 min

Golang Interfaces and Mocks in 5 Minutes

Git7 min

How to Fix Git 'Detached HEAD' State

Linux21 min

Linux Firewall with ufw: Full Tutorial for Beginners

Go (Golang)5 min

Golang defer Statements in 5 Minutes

Auth (OAuth, JWT)9 min

How to Fix OAuth 'invalid_grant' Errors

Databases & SQL11 min

The SQL Roadmap for Beginners

Go (Golang)5 min

Golang make() for Slices and Maps in 5 Minutes

Networking7 min

How to Fix Network 'No Route to Host' Errors on Linux

Linux6 min

How to Fix Linux 'Too Many Open Files' Errors

Django (Python web framework)11 min

Every Django Concept a Beginner Needs to Know

Linux24 min

SSH on Linux: Full Tutorial for Beginners

Go (Golang)5 min

Golang for range Loops in 5 Minutes

Databases & SQL10 min

SQL Databases: SQLite vs PostgreSQL

Django (Python web framework)10 min

The Django Roadmap for Beginners

Go (Golang)5 min

Golang Structs in 5 Minutes

Caching & Redis22 min

Redis: Full Tutorial for Beginners

Go (Golang)5 min

Golang context.Context in 5 Minutes

Databases & SQL7 min

How to Fix MySQL Database Error 1045: Access Denied for User

Go (Golang)5 min

Golang Method Receivers in 5 Minutes

Python8 min

How to Fix Python SSL: CERTIFICATE_VERIFY_FAILED Errors

Django (Python web framework)9 min

How to Fix Django Static Files Not Loading in Production

OpenRouter (one API for many AI models)8 min

OpenRouter vs Direct API Keys: Which One Should You Use?

Go (Golang)5 min

Golang if err != nil Checks in 5 Minutes

Go (Golang)8 min

How to Fix Golang 'go.mod File Not Found' Errors

AI agents & MCP22 min

MCP Servers: Full Tutorial for Beginners

Go (Golang)5 min

Golang Error Return Values in 5 Minutes

Python8 min

How to Fix Python ModuleNotFoundError: No Module Named

Go (Golang)5 min

Golang Pointers in 5 Minutes

Kubernetes8 min

How to Fix a Kubernetes Pod Stuck in CrashLoopBackOff

Homelab & self-hosting9 min

How to Fix a Homelab ESXi Host Not Responding

PostgreSQL24 min

PostgreSQL: Full Tutorial for Beginners

Load balancing & Nginx9 min

How a Load Balancer Works with HAProxy

Python9 min

How Python Virtual Environments Work

Homelab & self-hosting9 min

How to Fix Cloudflare Tunnel Errors in a Homelab

APIs9 min

How to Fix API CORS Errors: No 'Access-Control-Allow-Origin'

Auth (OAuth, JWT)9 min

How Authenticator App Login Codes Work (TOTP)

Git22 min

Git and GitHub: Full Tutorial for Beginners

Homelab & self-hosting10 min

How a Homelab Hypervisor Works (VMware ESXi)

Kubernetes9 min

How to Fix Kubernetes ImagePullBackOff Errors

DNS8 min

How to Fix DNS 'Temporary Failure in Name Resolution' on Linux

AWS8 min

How to Fix AWS CLI 'Unable to Locate Credentials'

Homelab & self-hosting10 min

Proxmox vs ESXi for Your Homelab: When Each One Wins

PostgreSQL10 min

PostgreSQL UUID vs Auto Increment: Which Primary Key Should You Use?

Kubernetes21 min

Kubernetes: Full Tutorial for Beginners

Networking9 min

How TCP Sockets Work

PostgreSQL7 min

How to Fix PostgreSQL 'Could Not Connect to Server'

Claude & the Claude Developer Platform9 min

Claude Code Hooks Will Finally Make Sense After This

DevOps & CI/CD9 min

DevOps with Ansible Will Finally Make Sense After This

Networking9 min

How SNMP Network Monitoring Works

Git8 min

How to Fix GitHub 'Permission Denied (publickey)' Errors

Docker21 min

Docker: Full Tutorial for Beginners

PostgreSQL7 min

How to Fix PostgreSQL 'Password Authentication Failed'

Linux8 min

Why One Linux Server Handles More Users Than You Think

Networking7 min

How to Fix Network 'Connection Refused' Errors

DevOps & CI/CD9 min

DevOps Pipelines: Jenkins vs GitHub Actions

Linux11 min

Linux Nginx Reverse Proxy: Full Tutorial for Beginners

Networking11 min

Every Networking Term a Beginner Needs in 12 Minutes

Docker6 min

How to Fix Docker 'Permission Denied' on docker.sock

Git7 min

How to Fix Git 'Updates Were Rejected' When You Push

Linux7 min

How to Fix nginx 502 Bad Gateway Errors on Linux

Linux8 min

How to Fix Linux apt 'Could Not Get Lock' Errors (Ubuntu)

Networking9 min

How Email Works on the Internet (SMTP) in 10 Minutes

Python8 min

The Python Roadmap for Beginners

Go (Golang)21 min

Golang REST API with Gin: Full Tutorial for Beginners

Networking10 min

How a WireGuard VPN Network Works

Linux9 min

Linux Makefiles Will Finally Make Sense After This

Auth (OAuth, JWT)9 min

SAML vs OAuth vs OpenID Connect: What's the Difference?

Python7 min

How to Fix Python cron Jobs That Never Run

Linux22 min

Linux Bash Scripting: Full Tutorial for Beginners

Networking10 min

How PXE Network Boot Works

Active Directory9 min

How Active Directory Works

Linux10 min

How to Fix a Linux systemd Service That Won't Start

Linux9 min

Linux Logs: syslog vs journald

Auth (OAuth, JWT)9 min

JWT vs Session Cookies: Which One Should You Use?

Docker10 min

Docker vs Docker Compose: Which One Should You Use?

Docker9 min

How to Fix Docker Compose Containers That Can't Talk to Each Other

Django (Python web framework)22 min

Django Full Tutorial for Beginners

Linux9 min

How Linux systemd Works

Networking8 min

How to Fix 'Windows Cannot Access' Network Share Errors (SMB)

APIs10 min

REST vs gRPC: Which One Should You Use?

Certificates & PKI (ADCS)9 min

How to Fix SSL Certificate Chain Errors (Missing Intermediate)

Python9 min

Every Python Concept for Beginners in 10 Minutes

Databases & SQL9 min

Every SQL Join Type in 10 Minutes

OpenRouter (one API for many AI models)9 min

Why OpenRouter Free Models Hit Their Limit So Fast

Gemini API & Google AI Studio9 min

Why Your Gemini API Free Tier Runs Out So Fast

OpenRouter (one API for many AI models)10 min

OpenRouter Will Finally Make Sense After This

Caching & Redis10 min

How Redis Caching Works

Gemini API & Google AI Studio10 min

Gemini API vs Vertex AI: Which One Should You Use?

Gemini API & Google AI Studio8 min

How to Fix a Leaked Gemini API Key

Go (Golang)9 min

Why Golang Uses Goroutines Instead of Threads

Gemini API & Google AI Studio9 min

How to Fix Gemini API Error 429: Resource Exhausted

Claude & the Claude Developer Platform10 min

Claude Token Pricing Will Finally Make Sense After This

Python11 min

Why Python Web Scraping Returns Nothing (and the Fix)

Python10 min

Python uv vs pip: Which One Should You Use?

Python22 min

Python Automation: Full Tutorial for Beginners

Auth (OAuth, JWT)9 min

How OAuth Login Works

Gemini API & Google AI Studio10 min

Google AI Studio Will Finally Make Sense After This

Docker10 min

What Happens When You Run a Docker Container

Claude & the Claude Developer Platform8 min

How to Fix Claude Code Billing Your API Key Instead of Your Plan

Auth (OAuth, JWT)9 min

Why Passkeys Can't Be Phished Like Passwords

PowerShell10 min

PowerShell vs Bash: Which One Should You Learn?

Linux10 min

The Linux Roadmap for Beginners

Django (Python web framework)9 min

Django vs FastAPI: Which One Should You Use?

Databases & SQL10 min

Why SQLite Is the Most Used Database in the World

Databases & SQL11 min

How a NoSQL Database Like MongoDB Works

Python11 min

How to Fix Python pip error: externally-managed-environment

Databases & SQL9 min

How to Fix MySQL Too Many Connections Database Errors

Go (Golang)9 min

Golang Concurrency Will Finally Make Sense After This

AWS10 min

How Amazon S3 Works

Kubernetes10 min

How Kubernetes Works

Git10 min

How Git Works

Docker10 min

How to Fix Docker Port Already Allocated Errors

PostgreSQL10 min

How PostgreSQL Works

Git8 min

How to Fix Git Merge Conflicts

Linux9 min

How to Fix No Space Left on Device in Linux

Networking10 min

How the Internet Works

Databases & SQL9 min

SQL vs NoSQL: When Each One Wins

Auth (OAuth, JWT)8 min

How to Fix JWT Token Expired Errors (401 Unauthorized)

Claude & the Claude Developer Platform9 min

Claude API vs Claude Pro: Why Your Subscription Doesn't Include It

AI agent skills9 min

Why AI Agent Skills Beat Giant Prompts

Linux10 min

Linux Cron Jobs Will Finally Make Sense After This

Cybersecurity10 min

Security Logs Will Finally Make Sense After This

Cybersecurity8 min

How to Fix a Security Leak: An API Key Pushed to GitHub

DNS9 min

DNS Will Finally Make Sense After This

Cybersecurity9 min

Never Ignore a Security Update

Auth (OAuth, JWT)9 min

Two-Factor Authentication Will Finally Make Sense

Networking8 min

Never Expose a Database to the Internet

Cybersecurity10 min

SSH Keys vs Passwords: Which Is Safer for Security?

Linux10 min

The 5 Levels of Linux Boot: From Power On to Login

Networking12 min

The 5 Levels of Network Firewalls

Cybersecurity10 min

Password Security: Why Hackers Crack Weak Passwords

Linux9 min

Why Your Linux Server Runs Out of Memory

Networking10 min

HTTP vs HTTPS: What Actually Changes on Your Network

Linux12 min

Every Linux File Permission You Need to Know

Linux10 min

Linux Processes vs Threads: When Each One Wins

Networking11 min

The OSI Model Will Finally Make Sense After This

Git11 min

The 7 Levels of Git

Networking10 min

Every Network Troubleshooting Command You Need

Cybersecurity10 min

Hashing vs Encryption in Cybersecurity: When Each One Wins

Networking11 min

Why the Internet Ran Out of IP Addresses

Linux11 min

Linux Package Managers: apt vs Snap vs Flatpak

Python9 min

Why Python Is Slow (and When It Doesn't Matter)

Networking11 min

TCP vs UDP: When Each One Wins

Linux8 min

Stop Running Linux as Root (Do This Instead)

Linux11 min

Linux Users and Groups Will Finally Make Sense

Cybersecurity9 min

Why Phishing Beats Good Security (and How to Spot It)

Docker12 min

The 7 Levels of Docker

AI agents & MCP12 min

AI Agents Will Finally Make Sense After This

Git8 min

Stop Using git push --force (Use This Instead)

AI agent skills10 min

Agent Skills vs MCP: When Each One Wins

Networking12 min

Networking Will Finally Make Sense After This

Linux12 min

Every Linux Command You Actually Need

Cybersecurity12 min

The 7 Levels of Cybersecurity

System design12 min

Every System Design Concept You Need, in One Diagram

PostgreSQL10 min

Why PostgreSQL Ignores Your Index