Search
Lessons (40)
- DBMS Foundations, Keys & Normalization
Detailed interview answers for DBMS advantages, normalization, keys, abstraction and conceptual design. Covers PDF questions 1-5, 12 …
- Topics, Partitions & Offsets
… JSON.stringify({ type: "OrderPlaced" }) }, { key: "order-42", value: JSON.stringify({ type: "OrderPaid" }) }, // same partition, after Placed { key: "order …
- Database Relations & Foreign Keys
Model one-to-one, one-to-many and many-to-many data with keys, constraints and deletion rules …
- Normalization & Denormalization
… no non-key depends on another non-key Rule: be in 2NF, and a non-key attribute must …
- Payment Retries: Prevent Duplicate Charges
… One key per attempt, reused on every retry ❌ Wrong: make a new key each time you retry. The …
- Hash Maps & Sets
… A hash function turns a key (like "apple" ) into a number (a bucket index), so the computer jumps …
- Caching, Consistent Hashing and Sharding
… Spread keys across cache machines with consistent hashing Consistent hashing decides which cache machine holds which key, and …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… this.publicUrl(key) }; } async delete(key: string) { await this.s3.send( new DeleteObjectCommand({ Bucket: this.bucket, Key: key …
- SSH, Networking & Firewalls
Log in with SSH keys instead of passwords, harden the SSH server, understand IPs, ports and DNS, test …
- REST API Design
… POST /payments, Idempotency-Key: abc123 S- DB: INSERT key abc123 (UNIQUE) → PROCESSING S- S: charge card 💳 S- DB …
- Caching & Redis
… Also add random jitter to TTLs so many keys do not expire together, and refresh genuinely hot keys …
- React Internals & Concurrent Rendering
… In a list, stable keys tell it which item is which. tsx // Good: preserves each item's identity …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… Find orders by status. Keys Key Role --- --- Partition key (PK) Hashed to choose the storage partition; must spread …
- AWS Security Building Blocks
… The KMS key policy and IAM permissions govern who may use the key. Encryption at rest protects stored …
- S3: Store Files Safely
… files plus a key (their name/path). A bucket is the top-level container. text bucket: shop-uploads …
- AWS Databases: Choose the Right One
Choose SQL, key-value, or cache storage by the problem you need to solve, then protect it with …
- Replication, Partitioning & Sharding
Scale reads with replicas, split data safely with partitions and shards, and plan for consistency, hot keys and …
- CI/CD with GitHub Actions
… a dedicated key for GitHub Actions ssh-keygen -t ed25519 -f gha deploy -N "" -C "github-actions" ssh …
- Kafka for Backend Services
… Records with the same key go to the same partition, so key by the entity whose events must …
- Backend Design Scenarios
… Key limits by API key/user, with IP as a fallback, and separate expensive endpoints from cheap ones …
- API Contracts, Gateways and Security
… If the same key arrives twice, return the first result instead of doing it again. If the same …
- Interfaces vs Abstract Classes
… Promise<string null ; set(key: string, value: string, ttlSeconds?: number): Promise<void ; } // Optional helper base: shared key prefixing …
- Structural Patterns: How to Connect Objects
… loadMesh(name) }); // heavy return treeTypes.get(key); } // Light, unique data per object (extrinsic state) const forest = Array.from …
- SQL vs NoSQL Databases
… tables, rows, relationships sql CREATE TABLE customers ( id BIGSERIAL PRIMARY KEY, email TEXT NOT NULL UNIQUE, name TEXT …
- The Hot SKU Alert Problem
… Events with the same key always go to the same lane, in order. Supermarket checkout lanes: everyone in …
- Design an E-Commerce Checkout
… Save each step, and use the same payment key on retry Don't hide the whole checkout inside …
- React Fundamentals
… Using the array index as the key causes bugs when items are reordered or removed. State: data that …
- Drift, Troubleshooting, and Disaster Recovery
… keys, provider schema, version diff Correct configuration or add a planned migration Unknown for each keys Keys derived …
- TypeScript in Practice
… T[], key: K): T[K][] { return items.map((item) = item[key]); } const users = [{ id: 1, email: "a@x …
- IAM: Who Can Do What
… An encrypted object using a customer-managed KMS key can additionally require decrypt permission and an appropriate key …
- Count, for_each, Functions, and Stable Identities
… Renaming a key still changes identity and may trigger deletion plus creation. Use a moved block when you …
- State, Remote Backends, and Locking
… If using a customer-managed KMS key, grant the required key permissions as well. Restrict state access because …
- Concurrency, Resilience & Distributed Workflows
… The reliable approach is to make boundaries explicit: mermaid flowchart LR R[Request or event] -- I[Idempotency key …
- Kafka Producers
… CompressionTypes.GZIP, messages: [ { key: order.id, // keeps all events for this order in order value: JSON.stringify({ orderId …
- Multi-Account Strategy, Governance and Security Operations
… isolate instance, disable key] Preventive controls checklist - Block public S3 access at the account level. - Enforce encryption (EBS …
- Serverless: Lambda and API Gateway
… Persist that key with the result through a concurrency-safe operation. Repeated requests with the same key should …
- Product-Scale Frontend Patterns
… A queued action needs an idempotency key so replay does not create duplicates. text client action - durable local …
- Jenkins: From Install to Your First Pipeline
… Git, Docker, Slack, Kubernetes… almost everything in Jenkins is a plugin Credentials Encrypted secrets (passwords, SSH keys, tokens …
- Edge, Platform & Frontend Delivery
… Verify the deployed route, its referenced assets and the real request path after release. Key takeaways - CDN, edge …
- Python Fundamentals
… fixed record, can be a dict key x, y = point unpacking user = {"name": "Ana", "age": 30} dict: key …