Search
Lessons (40)
- Kafka Producers
… Without it, a retried batch could land after a later batch. Producing from Node.js (KafkaJS) js import …
- Batch vs Stream and Data Modeling
Decide when work runs (later in a batch, or right away in a stream) and store data correctly …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
… Enable partial batch response so one bad message does not retry the whole batch: json { "batchItemFailures": [ { "itemIdentifier": "msg …
- Big Data: ETL, Warehouses and Streaming
… Stream for speed, batch for repair, and write the rules once - Streaming keeps the dashboard fresh. - Batch backfills …
- React Internals & Concurrent Rendering
Understand reconciliation, render versus commit, batching, Suspense and concurrent rendering so React performance fixes target the work users …
- Async JavaScript: Promises, async/await and Node's Event Loop
… Process in small batches (or use a library such as p-limit ): js async function mapLimit(items, limit …
- N+1 Queries, Loading & Pagination
… N child lookups becomes a single join or batched child query; cursors avoid deep offsets](/img/database/n …
- Neural Networks and Deep Learning
… A forward pass computes predictions from a batch of examples. 2. A loss function compares predictions with targets …
- Design a Logging and Monitoring Platform
… Never let logging block the app The agent on each machine: - collects lines into batches (send 1,000 …
- Consumers & Consumer Groups
… finish the current batch, commit, leave the group Key takeaways - A consumer group shares a topic's partitions …
- StatefulSets, DaemonSets, Jobs and CronJobs
… need it. Job: run to completion yaml apiVersion: batch/v1 kind: Job metadata: name: migrate spec: backoffLimit: 3 …
- Service Communication: Sync vs Async
… users/2" U1 O1 -- "… ×50" U1 end subgraph Batched["✅ Batched or replicated"] O2[Orders page] -- "GET /users?ids …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… text = extract text(storage.get(job.object key)) chunks = split(clean(text)) done = 0 for batch in batched …
- AWS Data Pipelines in Plain Language
… Preserve raw inputs and record which batch/version produced each result. Common errors to investigate Symptom Check --- --- Query …
- Cross-Service Data: How to Join Without a Database JOIN
… Use a batch endpoint such as GET /users?ids=... , a GraphQL data loader, or a local projection. Otherwise …
- Design a Chat Application
… Hand the fan-out to background workers that send it out in batches at a safe speed, and …
- Releases, Observability and Production Safety
… 3. Backfill: fill total cents for old rows, in small batches. 4. Switch reads to total cents . 5 …
- L6 Production Debugging Casebook
… 3. Backfill old rows in small, slowed-down, restartable batches. Watch locks, replica lag and errors. 4. Check …
- Month 2: Deep Learning, PyTorch and Transformers (Weeks 5-8)
… one pass through all training data. Batch : a small group of examples processed together. - Regularization fights overfitting: dropout …
- Python and Math Foundations with Runnable Examples
… Recomputing them using test data or each incoming batch changes the representation and can introduce leakage. Compare vectors …
- Month 3: LLM Engineering (Weeks 9-12)
… Use queues, backoff and batching. Batch APIs are often about 50% cheaper for non-urgent work. - Context management …
- How Browsers Render a Page
… Use defer or async . - Changing geometry triggers expensive layout; transform and opacity are cheap. - Batch DOM reads and …
- REST vs GraphQL vs gRPC
… Fix it with DataLoader , which batches those 50 calls into one WHERE author id IN (...) . GraphQL challenges: HTTP …
- Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)
… bit - Model serving : vLLM (high throughput with continuous batching and PagedAttention, OpenAI-compatible API), TGI, Ollama (local and …
- What Is Apache Kafka?
… to network without being copied through the application. - Batching and compression: many records are sent and stored together …
- Serverless Architecture
… so long jobs need Step Functions, containers or batching Cold starts 100 ms to several seconds, depending on …
- Kafka vs RabbitMQ & the Kafka Ecosystem
… features Priorities, TTL, delays, per-message ack/nack Batches, offsets, compaction Multiple independent readers One queue per reader …
- Cost Optimization and the Well-Architected Framework
… can be interrupted with a 2-minute notice Batch, CI, stateless, fault-tolerant work Rule of thumb: commit …
- Safe AWS Deployments with IaC and CI/CD
… Backfill data in bounded batches and measure failures. 4. Switch reads only after validating the new representation. 5 …
- EC2, Storage and Auto Scaling
… Savings Plans Predictable long-running usage Spot Interruptible batch or flexible workers Auto Scaling An Auto Scaling group …
- ACID, Transactions & Locks
… user input inside a transaction. - Update in small batches (for example 1,000 rows at a time) instead …
- AI Architect Reference: Decisions, Glossary, Resources and Career
… Classic ML or a small fine-tuned model Batch API with a small LLM Strict data privacy Open …
- Debug Latency Like an Investigator
… kind of request. Happens every morning Scheduled work: batch reports, backups, many cache entries expiring at once. Restarting …
- Zero-Downtime Deploys & Rollbacks
… Migrate Backfill full name from name in batches No locks on the whole table 3. Switch Code reads …
- System Design Interview Framework
… You'd save the message once, then let background workers send it out in batches, and maybe have …
- CI/CD Fundamentals and Pipeline Design
… A pipeline that takes 45 minutes gets skipped, batched, or ignored. Aim for under 10 minutes to a …
- Database Internals, Replication and Scaling
… in place (more random disk work). Append in batches (fast, sequential). Reads One clear place to look. Good …
- Collaborative Document Editing & Real-Time Sync
… 3M Ops/sec per typist (batched) : ~2 (client batches keystrokes every 50–100 ms) Peak write ops/sec …
- Kafka for Backend Services
… process faster, use smaller batches, or call heartbeat() in long batch handlers Duplicates after rebalance Expected with at …
- Indexes, EXPLAIN & Query Plans
… two large sets with no useful order Hash Batches: above 1 (spilled to disk) Merge Join Both sides …