Notes
Study notes I keep as cheatsheets, first written for interview preparation. They are shorter and less checked than the articles: a place to revise, not a reference.
Low-level design
- Object-oriented programmingEncapsulation · Abstraction · Inheritance · Polymorphism · Composition vs inheritance · Interfaces vs abstract classes
- Dependency injectionConstructor, setter, and field injection · IoC containers and lifetimes
- SOLID principlesSingle responsibility · Open/closed · Liskov substitution · Interface segregation · Dependency inversion
- Clean codeNaming · Function design · Code smells (God object, spaghetti code) · Refactoring
Design patterns
- Creational patternsSingleton and the module pattern · Factory, Factory Method, Abstract Factory · Builder · Prototype
- Structural patternsAdapter · Decorator · Facade · Proxy
- Behavioral patternsObserver · Strategy · Command · Chain of responsibility · State · Mediator
- Cloud-native patternsSaga (orchestration vs choreography) · Transactional outbox · Circuit breaker and bulkhead
- UI architecture patternsMVC, MVP, MVVM
High-level design
- High-level design fundamentalsScalability and load balancing · CAP and PACELC · Latency vs throughput · Fault tolerance
- Architecture stylesMonolith vs microservices · Modular monolith · Event-driven architecture, event sourcing, CQRS · Serverless
- Cost engineeringServerless vs containers vs reserved capacity
- API designREST, GraphQL, gRPC · Versioning and deprecation · Idempotency · Rate limiting algorithms
- System design frameworkThe six-step approach to a design interview · Worked designs: URL shortener, ride-hailing, chat · Bloom filters
- Example: high-throughput ingestionHigh-throughput ingestion (millions of devices)
Distributed systems
- Consensus and coordinationConsensus basics · Leader election and failover · Service discovery
- Consistency modelsStrong vs eventual consistency · Conflict resolution (CRDTs, vector clocks)
- Reliability patternsTimeouts and fallbacks · Circuit breaker · Retry and backoff · Bulkhead · Rate limiting
- Messaging and queuesPub/sub · Queues: Kafka vs RabbitMQ · Delivery guarantees · Dead letter queues
- Stream processingExactly-once effects in stream processing · Watermarks and late events · Backpressure
- Data pipelinesETL vs ELT · Orchestration (Airflow, Data Factory) · Data lineage and backfills
Database design
- SQL in depthIndexing · Joins · Normalization · Transactions and isolation levels · CTEs and window functions
- NoSQL databasesKey-value · Document · Wide-column · Graph
- Database scalingReplication · Sharding · Read replicas · Partitioning vs sharding
- Caching strategiesCache-aside · Write-through · Write-back · Invalidation strategies · Cache stampede
Backend engineering
JavaScript
- JavaScript fundamentalsDeclarations, types, equality, modules
- TypeScriptTypeScript types, unions, and narrowing · Generics and utility types
- JavaScript internalsClosures · Hoisting and the temporal dead zone · Prototype chain · this binding · V8 engine internals
- Event loop and promisesEvent loop · Microtasks vs macrotasks · Promises and async/await
- Advanced JavaScriptMemory leaks · Debounce and throttle · Functional programming
- Node.jsEvent-driven architecture · Streams · Cluster vs worker threads
- Frontend patternsMicro-frontends · State management (Redux, Zustand, signals) · Core Web Vitals and bundle size · SharedArrayBuffer and Atomics
Python
Concurrency
Cloud and infrastructure
- Containers and orchestrationDocker · Kubernetes basics
- Kubernetes networkingKubernetes Services and Ingress · Gateway API
- Deployment and scalingAutoscaling · CI/CD · Rolling, blue-green, and canary deployments
- TerraformTerraform providers, resources, and modules · Terraform state and locking
- HelmHelm charts, values, and releases · Helm vs Kustomize
- NGINXNGINX as a reverse proxy · HTTPS with Let's Encrypt · NGINX caching and load balancing
- WebSocket toolingWebSocket API vs ws vs Socket.IO · Testing WebSocket servers
- Cloud servicesIAM, serverless, and object storage · Azure services · Azure, AWS, and GCP equivalents
Observability
AI and modern systems
Core fundamentals
- Data structures and algorithmsHash maps, tries, DAGs, LSM trees · Amortized cost and cache locality · Problem patterns (two pointers, sliding window, DP, greedy, graphs)
- Operating systems and networkingI/O models (blocking, non-blocking, epoll) · Virtual memory and page faults · TCP, TLS 1.3, HTTP/3
- Security fundamentalsOWASP Top 10 (injection, broken access control, SSRF) · Zero trust
- Engineering toolboxTools to know: Git, CI/CD, cloud, testing, observability