Search
Lessons (40)
- Hash Maps & Sets
… A hash map is that catalogue. A hash function turns a key (like "apple" ) into a number (a …
- Caching, Consistent Hashing and Sharding
… Spread keys across cache machines with consistent hashing Consistent hashing decides which cache machine holds which key, and …
- Small Functions That Do One Thing
… this also starts a session function checkPassword(user, password) { const ok = bcrypt.compareSync(password, user.hash); if (ok …
- DSA Interview Patterns Cheat Sheet
… 4. Optimise: "The bottleneck is the inner search… a hash map makes that O(1)." Name the pattern …
- A WhatsApp OTP Is Only Single Use If You Make It So
… store a hash, check and mark it used in one step, limit wrong guesses, handle crashes, and test …
- Data Structures for Scale
… Fingerprint (hash) each block. Then hash pairs of fingerprints together, and so on up to one root fingerprint …
- Topics, Partitions & Offsets
… order-42"] -- "hash → 1" P1[Partition 1] K2["key: order-77"] -- "hash → 0" P0[Partition 0] K3["key …
- HCL, Resource Addresses, and Project Layout
… Further reading: [Configuration syntax](https://developer.hashicorp.com/terraform/language/syntax/configuration), [dependency lock file](https://developer.hashicorp …
- Your First Terraform Project
… Further reading: [CLI workflow](https://developer.hashicorp.com/terraform/cli/run).
- Environments, Workspaces, and Multiple Accounts
… Pass aliases explicitly when a module should use one: hcl Assume ./modules/private-storage declares hashicorp/aws as …
- Reusable Modules and Clear Interfaces
… Further reading: [Module development](https://developer.hashicorp.com/terraform/language/modules/develop).
- Providers and Your First AWS Resources
… Further reading: [AWS provider documentation](https://registry.terraform.io/providers/hashicorp/aws/latest/docs), [AWS authentication](https://registry …
- Imports, Moved Blocks, and Safe Refactoring
… Further reading: [Import overview](https://developer.hashicorp.com/terraform/language/import), [module refactoring](https://developer.hashicorp.com/terraform …
- Payment Retries: Prevent Duplicate Charges
… a unique key, the order, the amount, the currency, and a request hash (a short fingerprint of the …
- Variables, Locals, Outputs, and Validation
… Further reading: [Input variables](https://developer.hashicorp.com/terraform/language/values/variables), [outputs](https://developer.hashicorp.com/terraform …
- Count, for_each, Functions, and Stable Identities
… Further reading: [for each](https://developer.hashicorp.com/terraform/language/meta-arguments/for each), [functions](https://developer.hashicorp …
- Testing, Preconditions, and Policy Checks
… Further reading: [Terraform tests](https://developer.hashicorp.com/terraform/language/tests), [custom conditions](https://developer.hashicorp.com/terraform …
- Dependencies, Data Sources, and Resource Lifecycle
… Further reading: [Lifecycle reference](https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle), [data sources](https://developer.hashicorp …
- Terraform: Start Here
… Further reading: [Terraform introduction](https://developer.hashicorp.com/terraform/intro).
- State, Remote Backends, and Locking
… Current HashiCorp documentation marks DynamoDB-based locking as deprecated; use native S3 locking for these new examples. See …
- Scaling, Load Balancing & Rate Limiting
… active requests Requests vary in duration IP hash / consistent hashing Same client → same server Need stickiness or cache …
- Secrets, Ephemeral Values, and Least Privilege
… See [write-only arguments](https://developer.hashicorp.com/terraform/language/manage-sensitive-data/write-only) and [ephemeral variables …
- Authentication, Authorization & API Security
… AuthZ = what you may do (403). - Hash passwords with argon2id or bcrypt; never store or log them in …
- CI/CD and Reviewed Production Changes
… Further reading: [Terraform in automation](https://developer.hashicorp.com/terraform/tutorials/automation/automate-terraform), [HCP Terraform](https://developer …
- Rust: Types, Errors and Concurrency
… String } type Db = Arc<RwLock<HashMap<u64, User ; async fn get user(State(db): State<Db , Path(id …
- Drift, Troubleshooting, and Disaster Recovery
… Further reading: [State management](https://developer.hashicorp.com/terraform/cli/state), [refresh-only planning](https://developer.hashicorp.com …
- SQL Language, Identifiers & Data Types
… UNION vs UNION ALL UNION removes duplicates, usually with sort/hash work. UNION ALL returns every row and …
- Replication, Partitioning & Sharding
… tenant id is often safer than an arbitrary hash when tenancy is a hard isolation boundary. Avoid hot …
- Big-O Notation Made Simple
… O(1) Constant 1 Array index arr[5] , hash map lookup O(log n) Logarithmic ~10 Binary search …
- Preparing for Technical Interview Rounds
… two pointers, sliding window, hash map, BFS/DFS, binary search, heap, intervals, dynamic programming. See [Data Structures & Algorithms …
- Caching & Redis
… SET , GET , INCR , EXPIRE Cache, counters, rate limits Hash HSET , HGETALL User sessions, objects List LPUSH , RPOP , BLPOP …
- Certifications Worth Getting
… Kubernetes CKA – Certified Kubernetes Administrator DevOps / platform engineers HashiCorp Terraform Associate Infrastructure as code Linux Foundation LFCS Linux …
- Edge, Platform & Frontend Delivery
… by data classification Content Typical cache rule Reason --- --- --- Hashed JS, CSS, images long-lived immutable filename changes on …
- Indexes, EXPLAIN & Query Plans
… Seq Scan inside Hash Join Joining two large sets with no useful order Hash Batches: above 1 (spilled …
- Design a Polite Web Crawler
… After fetching, compute a content hash (a fingerprint of the page text). If two different URLs give the …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
… 5. Friday: Add incremental re-indexing with content hashes. Weekend build Put the evaluation suite in CI: every …
- Linked Lists
… on repeat (circular), LRU caches (doubly linked list + hash map), undo stacks, OS task scheduling. Technique 1: Traverse …
- Clean Architecture
… await this.passwordHasher.hash(password) }); const saved = await this.userRepository.save(user); await this.emailSender.sendWelcome(saved.email …
- Two Pointers & Sliding Window
… br/ of seen values?"} C -- Yes HM["🗂️ Hash map"] C -- No D["Consider sorting first,<br/ then …
- SQL vs NoSQL Databases
… profiles, CMS content MongoDB Key-value A giant hash map Caching, sessions, counters Redis, DynamoDB Wide-column Rows …