Search
Lessons (40)
- Resilient Service Calls: Retries, Breakers and Load Shedding
… Use a shared retry budget too, for example "retries may be at most 10% of normal traffic". Rule …
- Timeouts, Retries & Backpressure
When something you depend on gets slow, stop waiting forever, don't pile on retries, and say 'not …
- Resilience Patterns
… wait time before each retry" x-axis ["retry 1", "retry 2", "retry 3", "retry 4", "retry 5"] y …
- Embeddings, Semantic Search, and RAG
Use vector representations to retrieve relevant source material and ground language-model answers in your documents. The big …
- Payment Retries: Prevent Duplicate Charges
When a payment request is retried, the customer must never be charged twice. Save the attempt first, reuse …
- Putting AI Systems into Production
… Set timeouts and bounded retries with backoff; retries should not repeat unsafe side effects. Provide a clear fallback …
- Developer Learning Plan and Document-Assistant Capstone
Follow a practical study plan with deliverables, build a local retrieval baseline, and grow it into an evaluated …
- Serverless: Lambda and API Gateway
Run small event-driven code without managing servers, expose it through an HTTP API, and handle retries safely …
- Event-Driven Patterns, Step Functions and Reliable Lambdas
Build resilient serverless workflows with retries, dead-letter queues, idempotency, fan-out and orchestration. Messages are delivered at …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… if self.request.retries = self.max retries: mark failed(job.id, f"gave up after retries: {e}") raise …
- Concurrency, Resilience & Distributed Workflows
Keep backend systems correct under contention, failure and traffic spikes with idempotency, retries, circuit breakers, workers, webhooks, backpressure …
- Kafka Producers
… batching, compression, partitioning, the acks setting that trades speed for safety, retries, and the idempotent producer. The big …
- AI Evaluation, Safety, and Security
Build representative tests, measure retrieval and model quality, defend against prompt injection, and handle sensitive data responsibly. The …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
Build retrieval-augmented generation on PostgreSQL and pgvector: parsing, chunking, hybrid search, reranking, query rewriting, citations, evaluation and …
- Design a Polite Web Crawler
… 3. Retries: a page that always fails is retried a few times, then parked, not retried forever. On …
- ACID, Transactions & Locks
… Your job is to make deadlocks rare and retry safely when one happens. Fix 1: Always lock in …
- Design an E-Commerce Checkout
… hold the stock, charge once even on retries, create the order and announce it reliably. The story in …
- AWS Interview Questions: Clear Answers
… Event retry behavior depends on the caller; API Gateway does not automatically retry Lambda invocations. Example: a customer …
- Consumers & Consumer Groups
… retries and dead-letter topics What if a message can't be processed (bad data, a downstream API …
- The L6 System-Design Thinking Loop
… The buyer retries. The system has no memory of the first try, so it charges the card again …
- Kafka for Backend Services
… Use retry topics instead: shop.orders.retry.1m , shop.orders.retry.10m , each read by a consumer that …
- AWS Messaging: Queues, Topics and Events
… consumers share processing, with retry and duplicate handling SNS A topic: one message can notify many subscribers EventBridge …
- Scaling, Load Balancing & Rate Limiting
… Avoid retry storms: retry only idempotent requests or requests with an idempotency key, cap attempts, and use backoff …
- Message Queues & RabbitMQ
… Learn producers, consumers, acknowledgements, exchanges, retries and dead-letter queues with RabbitMQ. The big idea At a busy …
- REST API Design
… Idempotency for unsafe retries ⭐ Networks fail. A client sends POST /payments , the connection drops, and the client doesn …
- Creational Patterns: How to Make Objects
… 10 000, retries: 0 }; url(url) { this. config.url = url; return this; } method(method) { this. config.method = method …
- Real-Time, Pub/Sub, Webhooks and CDC
… The partner can't tell it's a repeat. - ✅ Retry with the same evt 777 . The partner sees …
- Design a Reliable Notification System
… Send the same idempotency key on any retry, if the provider supports it. 2. Record the attempt as …
- Design a Chat Application
… If Alice's app retries the same message, the database refuses to make a second copy, and the …
- Backend Design Scenarios
… The user retries. How do you prevent a double charge?]( 7-a-payment-succeeds-at-the-gateway-but …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… producer ID + sequence numbers let the broker drop retried duplicates. It's on by default in modern Kafka …
- Message Delivery: Queues, Kafka, Ordering and DLQs
… Retry a few times, then park it, and own the parked ones After a small number of retries …
- API Gateway, BFF & Service Discovery
… networking as infrastructure As services multiply, every one needs retries, timeouts, mutual TLS, metrics and tracing. Instead of …
- What to Learn in AI, and in What Order
… 5. Generative AI: Learn tokens, transformers, context windows, prompting, structured outputs, embeddings, retrieval-augmented generation (RAG), and tool …
- Database Indexing & Transactions
… 3; -- 0 rows → someone else won, reload and retry Pessimistic ( FOR UPDATE ) Optimistic ( version ) --- --- --- Idea "Lock it, then …
- Proxies, APIs and Real-Time Protocols
… They retry every driver position that fails. When the phone comes back online, it sends 60 old positions …
- Meaningful Names
… users , orderItems userList2 , arr Constant UPPER SNAKE MAX RETRIES , TAX RATE n , x mermaid flowchart LR Q{What …
- The Hot SKU Alert Problem
… A retry with the same key can't create a second alert. Rule 4: Keep bulk alerts in …
- Month 6: Reliability, Security, Fine-Tuning and Production (Weeks 21-24)
… run the full suite on every prompt, model or retrieval change and compare with the last baseline. - Pairwise …
- Abstraction
… string) { const message = this. buildMime(to, subject, body); const connection = this. connectToSmtp(); this. retry(() = connection.write(message), 3 …