Search
Lessons (40)
- State Management (Redux, Zustand, TanStack Query)
Where should data live in a frontend app? Learn the four kinds of state, when local state is …
- Behavioral Patterns I: Observer, Strategy, Command, State
… In Strategy the client picks the algorithm. In State the object switches itself as its state changes. --- Cheat …
- Stacks & Queues
… Avoid shift() on large arrays; use a proper queue. - Stacks: undo, call stack, bracket matching, DFS, monotonic-stack …
- State, Remote Backends, and Locking
Share state through S3, enable native locking, migrate safely, and protect recovery data. Why state exists A resource …
- Views, Triggers & Stored Procedures
Interview answers for views, materialized views, triggers and stored procedures. Covers PDF questions 20, 24 and 27-30 …
- StatefulSets, DaemonSets, Jobs and CronJobs
… Stable identity and storage: StatefulSet. - Node agents: DaemonSet. - Jobs need restartPolicy of Never or OnFailure , plus backoffLimit and …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… validate(event) perform operation with stable idempotency key(event.operationId) persist confirmed result or recoverable pending state() This …
- Rust: Ownership, Borrowing and Lifetimes
… Covers Cargo, move vs copy vs clone, &T vs &mut T, String vs &str, slices and reading borrow …
- Production Capstone and Interview Practice
Combine modules, isolated environments, remote state, tests, and reviewed delivery in a production-style storage project. Build a …
- TypeScript in Practice
… T } { status: "error"; error: string }; function render(state: RemoteData<User[] ): string { switch (state.status) { case "idle": return "Press …
- TypeScript Essentials
… model states safely ts type RequestState<T = { status: "loading" } { status: "error"; error: string } { status: "success"; data: T }; function …
- Batch vs Stream and Data Modeling
… Run streaming fraud checks with stable event IDs and event-time windows; define how late arrivals update a …
- Design a File Storage Service
Upload bytes directly to object storage while the API owns durable metadata, authorization, sharing and synchronization. The problem …
- Advanced TypeScript for Frontend
Model real UI states safely with generics, discriminated unions, conditional types and runtime schema validation at API boundaries …
- Dynamic Programming
… tabulation"] direction TB b1["Start from the smallest case"] -- b2["Fill a table step by step"] -- b3["Last …
- EC2, Storage and Auto Scaling
… A running EC2 status alone does not prove Apache started successfully. If it fails, inspect instance status checks …
- Rust: Types, Errors and Concurrency
… Vec::new(), status: Status::Pending } } fn describe(&self) - String { match &self.status { Status::Pending = "waiting for payment".into …
- Configuration, Secrets and Storage
… Opaque stringData: DATABASE URL: "replace-with-real-value" yaml envFrom: - secretRef: name: shop-api-secrets Base64 encoding is …
- Storage, Search and Location Queries
… Store photo bytes in object storage and keep ownership plus publication state in transactional metadata. 2. Build text …
- Go Fundamentals
… small language, fast compiler, one static binary](/img/languages/go-overview.svg) Setup and structure bash go mod …
- Arrays & Strings
The most-used data structure. See how arrays live in memory, why some operations are instant and others …
- Terraform: Start Here
… 2. Intermediate, lessons 6–10: dependencies, stable resource identities, modules, shared state, and environments. 3. Advanced, lessons 11 …
- Go Web Services with Gin
… c.JSON(http.StatusNotFound, gin.H{"error": "not found"}) case errors.Is(err, ErrInvalidTitle): c.JSON(http.StatusUnprocessableEntity …
- Prompting and Structured Outputs
… A strong prompt makes the task, context, boundaries, and expected output explicit. It can improve consistency, but it …
- Domain-Driven Design: Strategic Design
… string; STAT CD: "A" "I" "B" }; // …our Billing context wants this. type BillingCustomer = { id: string; fullName: string; canBeInvoiced …
- Node.js and Express
What Node.js is and how it serves thousands of connections on one thread, then Express step by …
- Flash Sale: 10 Million Buyers, No Oversell
A queue smooths traffic but does not reserve stock. The durable inventory owner decides the winner atomically. The …
- Extending Kubernetes: CRDs, Operators and Admission
… a controller watches the desired state , compares it with the actual state , and acts to close the gap …
- Serverless Architecture
… a cold start . mermaid gantt title Cold vs warm invocation dateFormat x axisFormat %L section Cold start start …
- Drift, Troubleshooting, and Disaster Recovery
Diagnose common failures, recover after partial applies, and operate state without destructive guesswork. Start with the failing layer …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
Move slow document processing out of the HTTP request with object storage, a job table, a task queue …
- Storage Engines & Database Operations
… a bounded pool protects the primary while WAL, backups and replicas provide recoverability](/img/database/storage-operations.svg …
- C4 Architecture Diagrams: Context, Container, Component and Code
… For Acme Shop, this is enough: mermaid flowchart LR Customer["👤 Customer"] Staff["👩💼 Store staff"] Shop["🛒 Acme Shop …
- AWS: Start Here
… running time, storage, data transfer, and requests. Add a budget alert before experimenting. Stop or delete test resources …
- CQRS & Event Sourcing
Separate the model you write with from the model you read with, and store every change as an …
- Clean Architecture in Depth
… OrderLine[], private status: "PENDING" "PAID" "CANCELLED", ) {} static create(id: string, customerId: string, lines: OrderLine[]): Order { if (lines.length …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… The standby does not serve reads in the classic single-standby setup. - Aurora stores data in six copies …
- Kubernetes: Start Here
… 1. Desired state — what you asked for. Example: “three copies.” 2. Actual state — what is running right now …
- Big Data: ETL, Warehouses and Streaming
Build reliable analytical pipelines with batch/stream processing, lake and warehouse layers, and explicit freshness contracts. The problem …
- AWS Databases: Choose the Right One
Choose SQL, key-value, or cache storage by the problem you need to solve, then protect it with …