Skip to content

Interview Q&A — all questions by topic ​

Every chapter on this site ends with a Self-check: questions & answers section. This page lists every question, grouped by learning path and chapter and tagged with one of three importance levels, so you can decide what to study first.

Question bank generated: 2026-11-30

How to use it ​

  • Each question links to its answer on the chapter page; the chapter page has Open all / Close all buttons and a level filter for self-testing.
  • Short on time? Do the Must-know questions first, then Important.
  • The levels are editorial: they say how often the question comes up in interviews and at work, not how hard it is.

Importance levels ​

  • Must-know asked in almost every interview; you meet it at work constantly
  • Important frequent; expected at senior level
  • Good to know extra depth that sets you apart

At a glance ​

Learning pathChaptersQuestionsMust-knowImportantGood to know
Software Design2932911815655
Architecture212448410852
System Design75847293382172
DDD & Microservices15170667925
Databases46521176239106
Messaging3335612615872
Go4553621423290
Foundations18207759042
Python & FastAPI15181767530
Platform192501119841
Product113652
Total317365413451622687

Software Design ​

Software Architecture vs Software Design: Goals, History & Roles ​

Open the chapter · 11 questions

The Design Process: Conceptual Design, CRC Cards, Technical Design & Compromise ​

Open the chapter · 11 questions

Quality Attributes, Functional & Non-Functional Requirements ​

Open the chapter · 12 questions

Object-Oriented Modeling: Abstraction, Encapsulation, Decomposition, Generalization, Polymorphism ​

Open the chapter · 12 questions

UML in Practice: Class, Sequence, State, Activity, Component, Package & Deployment Diagrams ​

Open the chapter · 11 questions

Clean Code Principles: Naming, Small Units, Pure Functions & Side Effects, DRY/YAGNI/KISS and Their Failure Modes ​

Open the chapter · 13 questions

Design Quality: Complexity, Coupling & Cohesion, Information Hiding, Separation of Concerns, Conceptual Integrity ​

Open the chapter · 12 questions

Composing Objects & the Law of Demeter ​

Open the chapter · 10 questions

Code Smells, Anti-Patterns & Refactoring (the 14 smells and their moves) ​

Open the chapter · 12 questions

Low-Level Design: Classes, Responsibilities, Relationships, Structured vs OO Design ​

Open the chapter · 12 questions

Testing Strategy & TDD: Test Pyramid vs Trophy, Test Doubles, Red-Green-Refactor, BDD, Contract Tests, Flaky Tests ​

Open the chapter · 13 questions

SOLID: five principles for code that survives change ​

Open the chapter · 10 questions

Single Responsibility Principle (SRP) ​

Open the chapter · 10 questions

Open–Closed Principle (OCP) ​

Open the chapter · 10 questions

Liskov Substitution Principle (LSP) ​

Open the chapter · 12 questions

Interface Segregation Principle (ISP) ​

Open the chapter · 11 questions

Dependency Inversion Principle (DIP) ​

Open the chapter · 12 questions

Design Patterns: Origin, Why They Matter, the Three Families ​

Open the chapter · 11 questions

Creational Patterns: Singleton, Simple Factory, Factory Method, Abstract Factory, Builder, Prototype ​

Open the chapter · 11 questions

Structural Patterns: Facade, Adapter, Composite, Proxy, Decorator, Bridge, Flyweight ​

Open the chapter · 12 questions

Behavioral Patterns: Template Method, Chain of Responsibility, State, Command, Observer, Strategy, Iterator, Mediator, Memento, Visitor ​

Open the chapter · 11 questions

Applying Patterns in Real Systems: Selection, Combination & Anti-Patterns ​

Open the chapter · 11 questions

Designing for Concurrency ​

Open the chapter · 12 questions

Control Flow & Event Handling in Design ​

Open the chapter · 12 questions

Data Persistence in Design: Repositories, Mapping & Boundaries ​

Open the chapter · 11 questions

Distribution of Components: Local vs Remote, Latency & Failure as Design Inputs ​

Open the chapter · 11 questions

Error & Exception Handling and Fault Tolerance in Design ​

Open the chapter · 11 questions

Interaction & Presentation: MVC, MVP, MVVM and Data Flow ​

Open the chapter · 11 questions

Security by Design ​

Open the chapter · 11 questions

Architecture ​

What Software Architecture Is, Why It Exists, What an Architect Does ​

Open the chapter · 12 questions

Kruchten's 4+1 View Model: Logical, Process, Development, Physical & Scenarios ​

Open the chapter · 12 questions

Architecture Decisions: Trade-offs, ADRs, Second-Order Effects, 'No Perfect Architecture' ​

Open the chapter · 12 questions

From Requirements to Architecture ​

Open the chapter · 10 questions

Back-of-the-Envelope Capacity Estimation: Traffic, Storage, Bandwidth ​

Open the chapter · 11 questions

SLAs, SLOs, SLIs & Error Budgets ​

Open the chapter · 12 questions

Architecture Styles vs Architecture Patterns ​

Open the chapter · 11 questions

Layered Monolithic Architecture ​

Open the chapter · 11 questions

Modular Monolith ​

Open the chapter · 12 questions

Microkernel / Plugin Architecture ​

Open the chapter · 12 questions

Client-Server Architecture and Its Variants ​

Open the chapter · 12 questions

Pipe-and-Filter Architecture ​

Open the chapter · 12 questions

Service-Oriented Architecture (SOA) ​

Open the chapter · 10 questions

Microservices Architecture ​

Open the chapter · 11 questions

Big Data Architectures: 3Vs, Batch vs Stream, Lambda & Kappa ​

Open the chapter · 12 questions

Monolith vs Microservices vs Modular Monolith: Deciding ​

Open the chapter · 12 questions

Service Boundaries: Teams, Conway's Law, the Distributed Monolith and the Hidden Tax ​

Open the chapter · 12 questions

Service Communication: Sync vs Async, Contracts, Retries, Idempotency ​

Open the chapter · 12 questions

API Gateway, Backend-for-Frontend & Service Mesh ​

Open the chapter · 12 questions

Service Discovery: Client-Side vs Server-Side, DNS, Health Checks ​

Open the chapter · 12 questions

Data Ownership in Microservices: Database per Service, Shared Database, Brownfield Options ​

Open the chapter · 12 questions

System Design ​

What System Design Is and How It Evolved ​

Open the chapter · 12 questions

The 4-Step Approach: Scope, Estimate, High-Level Design, Decisions ​

Open the chapter · 12 questions

Latency Budgets, Geography & Tail Latency (p99) ​

Open the chapter · 12 questions

The Client-Server Model ​

Open the chapter · 10 questions

IP, DNS, GeoDNS, TTL & DNS as a Routing Weapon ​

Open the chapter · 11 questions

Forward vs Reverse Proxies ​

Open the chapter · 10 questions

TCP & UDP ​

Open the chapter · 11 questions

HTTP/1.1, HTTP/2, HTTP/3, Keep-Alive & HTTPS ​

Open the chapter · 12 questions

Real-Time Communication: Short/Long Polling, SSE, WebSockets, Scaling Connections, Presence ​

Open the chapter · 11 questions

REST API Design: Constraints, Resources, Idempotency, Versioning ​

Open the chapter · 12 questions

GraphQL: Schema, Resolvers, N+1, When It Wins ​

Open the chapter · 10 questions

gRPC & Protocol Buffers; REST vs GraphQL vs gRPC ​

Open the chapter · 11 questions

API Versioning & Evolution ​

Open the chapter · 10 questions

Web Sessions, Cookies, Serialization & CORS ​

Open the chapter · 12 questions

Scaling Strategies: Vertical, Horizontal, Diagonal, Stateless Design, Autoscaling ​

Open the chapter · 12 questions

Load Balancing: Algorithms, L4 vs L7, DNS & Global, Health Checks, Affinity, TLS Termination ​

Open the chapter · 11 questions

Rate Limiting: Token Bucket, Leaky Bucket, Windows, Distributed Limits ​

Open the chapter · 12 questions

CDNs: Push vs Pull, Static vs Dynamic, Video Streaming, Cache Hierarchy ​

Open the chapter · 12 questions

Caching: Levels, Cache-Aside, Read/Write-Through, Write-Behind, Invalidation, Stampedes, Eviction, Redis Clustering ​

Open the chapter · 12 questions

Object Storage, Distributed File Systems, Presigned URLs & Content-Addressable Storage ​

Open the chapter · 11 questions

Write Buffering, Batching, Coalescing, Sharded Counters & Data Locality ​

Open the chapter · 10 questions

CAP Under a Real Partition, CP vs AP, PACELC & Tunable Consistency ​

Open the chapter · 12 questions

Consistency Models: Linearizability vs Serializability, Causal, Client-Centric, Convergence ​

Open the chapter · 10 questions

ACID vs BASE ​

Open the chapter · 12 questions

Replication Topologies: Leader-Follower, Multi-Leader, Leaderless Quorums, Conflict Resolution, Federation ​

Open the chapter · 11 questions

Sharding at System Level: Partition Keys, Hot Partitions, Rebalancing, Cross-Shard Queries ​

Open the chapter · 12 questions

Choosing a Database: Model the Queries, SQL vs NoSQL, Redis vs DynamoDB, Polyglot Persistence ​

Open the chapter · 10 questions

Cascading Failures: How One Service Takes Down Everything ​

Open the chapter · 11 questions

Timeouts, Retries & Jitter ​

Open the chapter · 12 questions

Circuit Breaker ​

Open the chapter · 12 questions

Bulkheads & Graceful Degradation ​

Open the chapter · 12 questions

Load Shedding ​

Open the chapter · 11 questions

API Idempotency: Keys, Storage, Retries ​

Open the chapter · 10 questions

Distributed Locking: Redis, Redlock, Fencing Tokens, Leases ​

Open the chapter · 11 questions

Leader Election: Exactly One Active Node ​

Open the chapter · 12 questions

Gossip Protocols, Convergence & Failure Detection ​

Open the chapter · 11 questions

Vector Clocks, Lamport Clocks & Distributed Causality ​

Open the chapter · 12 questions

Merkle Trees, Read Repair, Anti-Entropy & Tombstones ​

Open the chapter · 12 questions

CRDTs: Conflict-Free Replicated Data Types ​

Open the chapter · 11 questions

Geospatial Indexing: Geohash, Quadtree, R-Tree ​

Open the chapter · 11 questions

Top-K & Heavy Hitters ​

Open the chapter · 10 questions

Strangler Fig: Safe System Migration ​

Open the chapter · 11 questions

Security Foundations: Why Systems Get Hacked, CIA Triad, Defense in Depth, STRIDE ​

Open the chapter · 12 questions

Authentication: Passwords & Hashing, MFA, Sessions vs Tokens ​

Open the chapter · 10 questions

JWT Deep Dive ​

Open the chapter · 11 questions

OAuth 2.0, OpenID Connect & Single Sign-On ​

Open the chapter · 12 questions

Authorization Models: RBAC, ABAC, ReBAC & Zero Trust ​

Open the chapter · 12 questions

Cryptography in Practice: Symmetric vs Asymmetric, TLS/HTTPS, PKI, Encryption at Rest, Secrets ​

Open the chapter · 12 questions

OWASP Top 10: Injection, XSS, CSRF and Friends ​

Open the chapter · 12 questions

DDoS Protection, Firewalls, VPCs & Network Segmentation ​

Open the chapter · 12 questions

Mutual TLS & Securing Service-to-Service Traffic ​

Open the chapter · 12 questions

Secure SDLC, DevSecOps, Logging, Incident Response, Compliance & Breaches ​

Open the chapter · 10 questions

OWASP API Security Top 10 (2023): BOLA, BOPLA, BFLA, Business Flows, Inventory, Unsafe Consumption ​

Open the chapter · 12 questions

API Security Hardening Checklist: Input, Output Headers, Processing, Monitoring, CI/CD ​

Open the chapter · 13 questions

Observability: Logs, Metrics, Traces and the Stack ​

Open the chapter · 12 questions

Alerting That Actually Works ​

Open the chapter · 12 questions

Chaos Engineering & Game Days ​

Open the chapter · 10 questions

Containers & Kubernetes: Fundamentals, Scaling, Self-Healing, Services & Ingress ​

Open the chapter · 12 questions

Service Mesh & the Sidecar Pattern ​

Open the chapter · 12 questions

Serverless & Event-Driven Compute ​

Open the chapter · 10 questions

Capacity Planning, Failure Scenarios & Disaster Recovery ​

Open the chapter · 10 questions

Payment Processing Architecture: Idempotency, Fraud Detection, PCI ​

Open the chapter · 12 questions

Search Systems: Scoring, Elasticsearch, Typeahead, Personalization & ML Ranking ​

Open the chapter · 12 questions

ML Systems: Deployment Patterns, Feature Stores, Model Serving, Vector Databases ​

Open the chapter · 11 questions

Feeds: Fan-Out on Write vs Read, Fan-In Aggregation ​

Open the chapter · 10 questions

Case Study: Uber — Location, Driver Tracking, Matching, Pricing, Trip Storage ​

Open the chapter · 12 questions

Case Study: Netflix ​

Open the chapter · 12 questions

Case Study: Amazon ​

Open the chapter · 11 questions

Case Study: WhatsApp ​

Open the chapter · 11 questions

Case Study: X / Twitter ​

Open the chapter · 12 questions

Case Study: YouTube & Video Streaming ​

Open the chapter · 12 questions

Case Study: OpenAI ​

Open the chapter · 10 questions

Case Study: LinkedIn ​

Open the chapter · 10 questions

Case Study: Discord ​

Open the chapter · 10 questions

Case Study: Ticketing System (end-to-end 4-step walkthrough) ​

Open the chapter · 12 questions

DDD & Microservices ​

Why DDD: Business & Technical Perspectives of Microservices, Adoption, Business Model Canvas ​

Open the chapter · 11 questions

Domains, Subdomains (Core, Supporting, Generic) & Domain Experts ​

Open the chapter · 12 questions

Ubiquitous Language ​

Open the chapter · 10 questions

Bounded Context: Discovering and Drawing the Lines ​

Open the chapter · 12 questions

Context Maps & Integration Patterns: Partnership, Shared Kernel, Customer-Supplier, Conformist, ACL, OHS/PL, Separate Ways ​

Open the chapter · 12 questions

Entities & Value Objects ​

Open the chapter · 11 questions

Aggregates & Factories ​

Open the chapter · 11 questions

Anemic vs Rich Domain Models ​

Open the chapter · 10 questions

Repositories: Collections of Aggregates, Not Table Gateways ​

Open the chapter · 11 questions

Domain, Application & Infrastructure Services ​

Open the chapter · 11 questions

Domain Events vs Integration Events ​

Open the chapter · 12 questions

Event Storming: Elements, Preparing and Running the Workshop ​

Open the chapter · 12 questions

Data Patterns: Shared Database, Database per Service, CQS → CQRS, Read-Side Replication ​

Open the chapter · 12 questions

Designing for Failure & Reliable Messaging in Microservices ​

Open the chapter · 11 questions

API Realization: REST Resources & Constraints, API Management, GraphQL Schemas ​

Open the chapter · 12 questions

Databases ​

SQL Querying Fundamentals: Relations, NULL, Joins, GROUP BY & HAVING, Subqueries, Set Operations, CTEs ​

Open the chapter · 13 questions

Database Internals: Pages, Heap, Tuples & I/O ​

Open the chapter · 11 questions

ACID & Transactions ​

Open the chapter · 12 questions

Isolation Levels: Definitions, Anomalies & Real-World Use Cases ​

Open the chapter · 10 questions

MVCC, VACUUM & Bloat in PostgreSQL ​

Open the chapter · 11 questions

Locks & Concurrency Control ​

Open the chapter · 11 questions

Deadlocks: Detection & Avoidance ​

Open the chapter · 11 questions

Optimistic vs Pessimistic Locking ​

Open the chapter · 10 questions

Indexing: B-tree, Hash, GIN & GiST ​

Open the chapter · 12 questions

B-Tree vs B+Tree in Production Databases ​

Open the chapter · 11 questions

Storage Engines: B-tree vs LSM-tree ​

Open the chapter · 11 questions

Query Planning, EXPLAIN & Join Algorithms ​

Open the chapter · 11 questions

Bloom Filters & Probabilistic Structures ​

Open the chapter · 12 questions

Pagination: Offset vs Keyset ​

Open the chapter · 12 questions

Cursors & Streaming Results ​

Open the chapter · 11 questions

Working with Billion-Row Tables ​

Open the chapter · 11 questions

Partitioning & Sharding in PostgreSQL ​

Open the chapter · 11 questions

Consistent Hashing ​

Open the chapter · 10 questions

Storage & Data Scaling: The Scale Ladder ​

Open the chapter · 12 questions

Distributed SQL, Consensus & 2PC ​

Open the chapter · 12 questions

OLTP vs OLAP & Columnar Storage ​

Open the chapter · 12 questions

Replication, Read Replicas & Failover ​

Open the chapter · 12 questions

Durability, WAL & Crash Recovery ​

Open the chapter · 11 questions

Backup, PITR & Disaster Recovery ​

Open the chapter · 12 questions

Eventual Consistency in Database Systems ​

Open the chapter · 11 questions

Database System Design: Requirements to Worked Sketches ​

Open the chapter · 12 questions

Schema Design, Normalization & Data Types ​

Open the chapter · 12 questions

Zero-Downtime Schema Migrations ​

Open the chapter · 12 questions

Connection Pooling ​

Open the chapter · 12 questions

ORM Pitfalls: N+1, Lazy Loading & Bulk Operations ​

Open the chapter · 12 questions

Multi-Tenancy Strategies ​

Open the chapter · 10 questions

ID Generation at Scale ​

Open the chapter · 10 questions

Database Observability ​

Open the chapter · 11 questions

Database Security: Threat Model, Roles, RLS, Injection, Audit ​

Open the chapter · 10 questions

Encryption at Rest, in Transit & in Use (TDE, Column, Homomorphic) ​

Open the chapter · 12 questions

PostgreSQL & Database Fundamentals ​

Open the chapter · 12 questions

MySQL Storage Engines: InnoDB vs MyISAM (and the rest) ​

Open the chapter · 10 questions

SQLite in Depth ​

Open the chapter · 12 questions

NoSQL: Families & Data Models ​

Open the chapter · 10 questions

Redis: Data Structures, Commands & Patterns ​

Open the chapter · 11 questions

MongoDB in Depth ​

Open the chapter · 11 questions

Wide-Column & Key-Value at Scale: Cassandra & DynamoDB ​

Open the chapter · 12 questions

Cassandra & ScyllaDB in Depth ​

Open the chapter · 12 questions

Graph Databases ​

Open the chapter · 12 questions

Open the chapter · 11 questions

Open the chapter · 12 questions

Messaging ​

Messaging Fundamentals: Queues, Topics & Async ​

Open the chapter · 11 questions

Integration Styles & Channels: File, Shared DB, RPC, Messaging ​

Open the chapter · 11 questions

Delivery Guarantees: At-Most-Once, At-Least-Once, Exactly-Once ​

Open the chapter · 11 questions

Message Acknowledgment: ack/nack, Offsets, PEL & Redelivery ​

Open the chapter · 11 questions

Ordering & Partitioning: Keys, Head-of-Line Blocking ​

Open the chapter · 11 questions

Idempotent Consumers & the Inbox Pattern ​

Open the chapter · 11 questions

Message Design & Schema Evolution ​

Open the chapter · 12 questions

Message Transformation: Translator, Enricher, Normalizer, Canonical Model ​

Open the chapter · 11 questions

RabbitMQ in Depth ​

Open the chapter · 12 questions

Kafka in Depth ​

Open the chapter · 12 questions

Redis Streams & Pub/Sub ​

Open the chapter · 11 questions

Broker Comparison & Decision Guide ​

Open the chapter · 10 questions

Other Brokers: NATS, Pulsar, SQS/SNS & Pub/Sub ​

Open the chapter · 12 questions

Routing Topologies: Fan-out, Topic & Content-Based ​

Open the chapter · 10 questions

Advanced Routing: Splitter, Aggregator, Resequencer, Scatter-Gather, Routing Slip, Process Manager ​

Open the chapter · 10 questions

Consumer & Endpoint Patterns: Polling vs Event-Driven, Selective, Durable Subscriber, Transactional Client ​

Open the chapter · 10 questions

Competing Consumers & Scaling Consumers ​

Open the chapter · 11 questions

Request-Reply over Messaging & REST vs AMQP ​

Open the chapter · 12 questions

Transactional Outbox Pattern ​

Open the chapter · 10 questions

Saga Pattern ​

Open the chapter · 10 questions

Dead-Letter Queue (DLQ) ​

Open the chapter · 10 questions

Retry, Backoff & Delayed Delivery ​

Open the chapter · 10 questions

Durable Workflows & Jobs ​

Open the chapter · 10 questions

Event-Driven Architecture ​

Open the chapter · 11 questions

Event Sourcing & CQRS ​

Open the chapter · 11 questions

Change Data Capture (CDC) ​

Open the chapter · 11 questions

Stream Processing: Windows, Watermarks & State ​

Open the chapter · 10 questions

Backpressure & Flow Control ​

Open the chapter · 11 questions

Messaging Observability & Tracing ​

Open the chapter · 10 questions

System Management Patterns: Control Bus, Wire Tap, Detour, Message Store, Test Message ​

Open the chapter · 10 questions

Laravel Queue Internals ​

Open the chapter · 11 questions

Testing Messaging Systems ​

Open the chapter · 11 questions

Messaging Security ​

Open the chapter · 11 questions

Go ​

Toolchain, Modules & Packages: go run/build, go.mod, exports, init, main ​

Open the chapter · 11 questions

Values, Variables, Constants, iota Enums & Zero Values ​

Open the chapter · 11 questions

Control Flow: if/else, switch, for, labels, break/continue ​

Open the chapter · 11 questions

Functions: Multiple Returns, Variadics, Closures, Recursion, Function Types ​

Open the chapter · 10 questions

Errors, Wrapping, Panic, Recover & Defer ​

Open the chapter · 11 questions

Pointers & Memory Model Basics ​

Open the chapter · 11 questions

Arrays, Slices & Maps: make, append, capacity, aliasing, range ​

Open the chapter · 12 questions

Structs, Methods, Constructors, Embedding & Struct Tags ​

Open the chapter · 10 questions

Interfaces, Type Assertions, Type Switches & any ​

Open the chapter · 11 questions

Generics: Type Parameters, Constraints, Where They Help ​

Open the chapter · 10 questions

Strings, Runes, fmt Verbs, text/template & regexp ​

Open the chapter · 12 questions

time.Time, Formatting/Parsing, Time Zones, Timers, math/rand & Number Parsing ​

Open the chapter · 11 questions

Files, Directories, Paths, Temp Files, bufio & embed ​

Open the chapter · 12 questions

The io Package: Readers, Writers, Pipes & Composition ​

Open the chapter · 12 questions

JSON, XML, Struct Tags, Encoder/Decoder, Base64 ​

Open the chapter · 10 questions

Hashing & Crypto: SHA-256/512, bcrypt, Argon2, crypto/rand ​

Open the chapter · 10 questions

CLI Flags, Subcommands, Environment Variables & Logging (log/slog) ​

Open the chapter · 12 questions

OS Processes, Signals & Graceful Shutdown ​

Open the chapter · 12 questions

reflect: When and How ​

Open the chapter · 11 questions

Goroutines & Channels: Unbuffered, Buffered, Directions, Closing, range ​

Open the chapter · 11 questions

select: Multiplexing, Non-Blocking Ops, Timeouts, for-select ​

Open the chapter · 12 questions

context: Cancellation, Deadlines, Values ​

Open the chapter · 12 questions

sync & atomic: WaitGroup, Mutex, RWMutex, Cond, Once, Pool, Atomic Counters ​

Open the chapter · 12 questions

Worker Pools, Pipelines, Fan-Out/Fan-In, errgroup, Bounded Concurrency ​

Open the chapter · 12 questions

Race Conditions, the Race Detector, Deadlocks, Concurrency vs Parallelism ​

Open the chapter · 11 questions

Rate Limiting in Go: Token Bucket, Fixed Window, Leaky Bucket, x/time/rate ​

Open the chapter · 11 questions

Testing & Benchmarking: Table-Driven Tests, Subtests, Coverage, httptest ​

Open the chapter · 13 questions

Mocking with Interfaces, Dependency Injection for Testability, testify ​

Open the chapter · 12 questions

Project Layout, golangci-lint, Makefile, Docker & Multi-Binary Builds ​

Open the chapter · 13 questions

net/http: Server, Client, 1.22 Routing, Path & Query Params ​

Open the chapter · 14 questions

Middlewares: Chaining, Security Headers, CORS, Compression, Response Time, Rate Limiter, Logging, Recover ​

Open the chapter · 14 questions

A REST API in Go: Planning, CRUD, Validation, Repository Pattern, DI, Pagination, Swagger ​

Open the chapter · 13 questions

Authentication in Go: Argon2/bcrypt, Sessions, JWT, Middleware, CSRF, Sanitization, Password Reset ​

Open the chapter · 14 questions

html/template: Layouts, Caching, Forms, Flash Messages ​

Open the chapter · 13 questions

HTTP/2, HTTPS, TLS & mTLS in Go; Benchmarking with wrk and h2load ​

Open the chapter · 12 questions

gRPC & Protobuf in Go: proto files, codegen, streaming, metadata, interceptors, TLS, validation, gRPC-gateway ​

Open the chapter · 12 questions

GraphQL in Go with gqlgen: Schema, Resolvers, DI, Testing ​

Open the chapter · 12 questions

database/sql & pgx: Connections, Prepared Statements, Transactions, Repository Pattern ​

Open the chapter · 12 questions

MongoDB with Go: CRUD, Filters, Generics Helpers, Relationships ​

Open the chapter · 13 questions

Event-Driven Go: Watermill, RabbitMQ Emitters/Consumers, SQS, RPC between Services ​

Open the chapter · 12 questions

File Uploads, S3 & Serving from a CDN ​

Open the chapter · 13 questions

Project: Broker, Auth, Logger & Mailer Microservices with REST, RPC, gRPC and RabbitMQ ​

Open the chapter · 13 questions

Project: E-Commerce API — Services, Handlers, Cart, Orders, SMTP, Events, Swagger ​

Open the chapter · 14 questions

Project: An MCP Server in Go (JSON-RPC, stdio, tools, inspector) ​

Open the chapter · 12 questions

Project: RAG & LLM Apps in Go — Ollama, pgvector, Embeddings, Chunking, Retrieval, Vision, Prompt-Injection Defense ​

Open the chapter · 14 questions

Foundations ​

Bits, Bytes & Text Encoding: ASCII, Unicode, UTF-8/16, Normalization, Endianness ​

Open the chapter · 11 questions

Binary-to-Text Encoding: Base64, Base32, Hex, Percent-Encoding, Data URIs ​

Open the chapter · 12 questions

Serialization Formats: JSON, Protobuf, MessagePack, Avro, CBOR, XML ​

Open the chapter · 11 questions

Compression: Entropy, Huffman, LZ77, gzip/zlib/deflate, Brotli, zstd, lz4, snappy ​

Open the chapter · 12 questions

Checksums & Hashing: Parity, CRC32/CRC32C, xxHash, Murmur, SHA-2/3, BLAKE3, Content Addressing ​

Open the chapter · 12 questions

Cryptography Fundamentals: AES-GCM, ChaCha20, RSA/ECC/Ed25519, ECDH, KDFs, HMAC, Signatures, Randomness ​

Open the chapter · 11 questions

Password Hashing & Signed Tokens: bcrypt, Argon2, Salts & Peppers, HMAC-Signed URLs, JWT/PASETO Signing ​

Open the chapter · 12 questions

TLS in Practice: Handshake on the Wire, Certificates & Chains, SNI/ALPN, mkcert, openssl s_client, Certs in Docker & Kubernetes ​

Open the chapter · 11 questions

Network Models: OSI vs TCP/IP, Encapsulation, What Happens When You Open a URL ​

Open the chapter · 11 questions

IP Addressing: IPv4/IPv6, Private Ranges, CIDR & Subnet Math, Gateways, Routing Tables, ARP/NDP ​

Open the chapter · 12 questions

NAT, PAT & Port Forwarding; DHCP Lease Flow; CGNAT; Hairpin NAT ​

Open the chapter · 12 questions

DNS Resolution for Developers: Resolvers, Records, TTL & Caching, /etc/hosts, resolv.conf, Split DNS, DNS in Containers ​

Open the chapter · 10 questions

Ports, Sockets & Connections: Ephemeral Ports, TIME_WAIT, Keepalive, Backlog, conntrack; ss, lsof, tcpdump, nc, curl, dig ​

Open the chapter · 11 questions

Firewalls: iptables/nftables, Security Groups, Network ACLs, Egress Control ​

Open the chapter · 12 questions

Docker Networking: bridge, host, none, overlay, macvlan; Port Publishing, Embedded DNS, Compose Networks, the iptables Rules Docker Writes, MTU ​

Open the chapter · 12 questions

Kubernetes Networking: Pod Network & CNI, ClusterIP/NodePort/LoadBalancer, kube-proxy (iptables/IPVS), CoreDNS, Ingress & Gateway API, NetworkPolicy, Egress NAT ​

Open the chapter · 12 questions

VPNs & Tunnels: SSH Port Forwarding, Bastions, WireGuard, Site-to-Site vs Client VPN, Zero-Trust Access ​

Open the chapter · 12 questions

Network Troubleshooting Playbook: Connection Refused vs Timeout, DNS Failures, MTU/Fragmentation, conntrack & Ephemeral Port Exhaustion, Packet Capture ​

Open the chapter · 11 questions

Python & FastAPI ​

Python Project Tooling: uv, Virtual Environments, Ruff, pyproject, Dependency Locking ​

Open the chapter · 12 questions

Typing & Pydantic v2: Annotated, Models, Validators, Serialization, Settings ​

Open the chapter · 12 questions

Async Python: asyncio, Event Loop, await, Tasks, Blocking Calls, Thread Pools ​

Open the chapter · 12 questions

FastAPI Fundamentals: ASGI, Routes, Path & Query Parameters, Status Codes, OpenAPI Docs ​

Open the chapter · 12 questions

Request Validation: Pydantic Query/Body Models, Cookies, Headers, Custom Validators, Error Responses ​

Open the chapter · 12 questions

Dependency Injection with Depends: Sub-dependencies, Caching, Global & Router Dependencies, Overrides ​

Open the chapter · 12 questions

APIRouter & Project Structure: Layers vs Features, Prefixes, Tags, Lifespan, Settings ​

Open the chapter · 12 questions

Exceptions & Responses: HTTPException, Custom Handlers, Problem Details, Response Models, StreamingResponse & SSE, Static Files ​

Open the chapter · 12 questions

SQLAlchemy 2 & SQLModel: Engine, Sessions, Models, Relationships, Eager Loading, Async Sessions ​

Open the chapter · 12 questions

Queries in Practice: Filtering, Pagination, exists, Counts, Date Ranges, Cascade Rules ​

Open the chapter · 12 questions

Alembic Migrations, Transactions & Indexes from the ORM ​

Open the chapter · 12 questions

Authentication in FastAPI: Password Hashing, OAuth2PasswordBearer, JWT, Refresh Tokens, Password Reset, API-Key Headers ​

Open the chapter · 12 questions

Testing FastAPI: TestClient, Fixtures, Database Fixtures, Dependency Overrides, Mocking HTTP Clients ​

Open the chapter · 12 questions

FastAPI in Production: Uvicorn/Gunicorn Workers, Lifespan, Settings, Logging, Docker Image, Performance ​

Open the chapter · 12 questions

Background Tasks, Caching & External APIs: BackgroundTasks, httpx, Retries, In-Memory & Redis Caching ​

Open the chapter · 13 questions

Platform ​

Linux for Developers: Processes, Users & Permissions, Filesystems, Packages, systemd, Monitoring ​

Open the chapter · 13 questions

Shell Scripting & Text Processing: Bash, Pipes, grep, sed, awk, jq, Safe Scripts ​

Open the chapter · 14 questions

Git & Version Control: Object Model, Branching Strategies, Rebase vs Merge, PRs, Hosting ​

Open the chapter · 14 questions

Containers Under the Hood: Namespaces, cgroups v2, OverlayFS, OCI, containerd, runc, LXC ​

Open the chapter · 14 questions

Images & Dockerfiles: Layers, Caching, Multi-Stage, Multi-Arch, Tagging, Registries, Artifacts ​

Open the chapter · 13 questions

Running Containers: docker run, Runtime Options, Volumes & Bind Mounts, Compose, Dev Workflow ​

Open the chapter · 13 questions

Container Security: Rootless, Capabilities, seccomp, AppArmor/SELinux, Image Scanning, Pod Security ​

Open the chapter · 14 questions

Kubernetes Architecture & Setup: Control Plane, Nodes, kubectl, Local & Managed Clusters, kubeadm ​

Open the chapter · 13 questions

Kubernetes Workloads: Pods, Probes, Deployments, StatefulSets, DaemonSets, Jobs, Rollouts ​

Open the chapter · 12 questions

Kubernetes Config, Secrets & Storage: ConfigMaps, Secrets, ESO, PV/PVC, CSI, Database Operators ​

Open the chapter · 14 questions

Resources, Scheduling & Autoscaling: Requests/Limits, QoS, Quotas, Taints, Spread, Priorities, HPA/VPA ​

Open the chapter · 13 questions

Kubernetes Security: RBAC, ServiceAccounts, Pod Security Admission, Policy Engines, Audit ​

Open the chapter · 13 questions

Packaging for Kubernetes: Helm Charts, Values, Releases, Kustomize Overlays ​

Open the chapter · 13 questions

Kubernetes Observability & Troubleshooting: Events, Logs, kube-state-metrics, CrashLoopBackOff, OOMKilled ​

Open the chapter · 13 questions

CI/CD Pipelines: Stages, GitHub Actions in Depth, GitLab CI, Jenkins, Caching, Environments, OIDC ​

Open the chapter · 12 questions

Deployment Strategies: Rolling, Blue-Green, Canary, Progressive Delivery, Rollbacks ​

Open the chapter · 14 questions

GitOps: Principles, Argo CD, Flux, Drift, Image Automation ​

Open the chapter · 13 questions

Infrastructure as Code: Terraform State, Modules, Plan/Apply, Pulumi, CDK, CloudFormation ​

Open the chapter · 12 questions

Configuration Management: Ansible Playbooks & Roles, Chef, Puppet, Salt ​

Open the chapter · 13 questions

Product ​

Requirements: PRDs, User Stories, Job Stories & Agent Specs ​

Open the chapter · 13 questions

Last updated:

Built by Morteza Negahi