Search
Lessons (34)
- Behavioral Patterns I: Observer, Strategy, Command, State
… 0] S -- D[by weight] In JavaScript, a strategy is usually just a function . You use it every …
- Multi-Account Strategy, Governance and Security Operations
… Changing trust prevents future assumptions but is not a complete strategy for sessions already issued. Follow tested session …
- Frontend Testing Strategy
What to test and how. The testing trophy, unit tests with Vitest, component tests with Testing Library, API …
- What Are Design Patterns?
… JavaScript's first-class functions , closures and modules make several of them much simpler: - Strategy → just pass a …
- Which Pattern Do I Need?
… Facade simplifies many interfaces into one. Strategy vs State In Strategy the caller chooses. In State the object …
- Deploying & Operating Microservices
… That takes automation, careful release strategies and good visibility.  }); } When you have five notification channels, a strategy pattern may earn its place. With one, it …
- GitOps, Progressive Delivery and Observability
… 6 strategy: canary: steps: - setWeight: 10 - pause: { duration: 5m } - setWeight: 50 - pause: { duration: 10m } selector: matchLabels: { app: shop …
- Resilience, Disaster Recovery and Multi-Region Design
Define RTO and RPO, choose a DR strategy, and design for failure across AZs and regions. Start with …
- REST API Design
… Common strategies: Strategy Example --- --- URL path (most common) /v1/users , /v2/users Header Accept: application/vnd.shop.v2 …
- O — Open/Closed Principle
… plug-in strategies js // ✅ Each payment method is a separate "plug-in" with the same shape const cardPayment …
- Month 4: RAG and Knowledge Systems (Weeks 13-16)
… Keep headings, tables and page numbers. - Chunking strategies: Strategy How it splits When to use --- --- --- Fixed size + overlap …
- Caching & Redis
… 300 }); // TTL 5 min return product; } Other strategies Strategy How it works Pros Cons --- --- --- --- Cache-aside App reads …
- N+1 Queries, Loading & Pagination
… database/n-plus-one.svg) Three correct loading strategies Need Use Watch out for --- --- --- One related row per …
- Zero-Downtime Deploys & Rollbacks
… systemd's TimeoutStopSec= to that timeout. Choosing a strategy Strategy Downtime Rollback Extra resources Good for --- --- --- --- --- In-place …
- Extending Kubernetes: CRDs, Operators and Admission
… Plan versioning ( v1alpha1 , v1beta1 , v1 ) with a conversion strategy. - Use finalizers so a controller can clean up external …
- AI Specialties and Real-World Examples
… Write a one-page project brief with the input, output, baseline, data source, split strategy, metric, and three …
- How Browsers Render a Page
… script, then continues. mermaid gantt title Script loading strategies dateFormat x axisFormat %L section normal script parse HTML …
- Binary Search
… a number between 1 and 100." The smart strategy is to guess 50. "Higher!" Guess 75. "Lower!" Guess …
- Service Communication: Sync vs Async
… harder debugging, and you need idempotency and ordering strategies. Commands vs events Command Event --- --- --- Meaning "Please do this …
- What Is Software Architecture?
… Design How is one part organised? Classes, patterns (Strategy, Repository), module APIs 🟡 Medium Code How is one …
- CloudFront: Faster Websites and Safer File Delivery
… side routes need a deliberate rewrite or fallback strategy. Do not blindly turn all origin errors into HTTP …
- Backend Design Scenarios
… Each choice has a failure mode: Strategy What can break Protection --- --- --- Invalidate on write The invalidation fails, is …
- Serverless: Lambda and API Gateway
… Reserved concurrency can bound a function's concurrency; throttling still needs a client and retry strategy. A new …
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… pass the varying steps as functions (Strategy) instead of subclassing, i.e. composition over inheritance. --- 3. Iterator 📺 Analogy …
- EC2, Storage and Auto Scaling
… in deliberately managed durable storage with a backup strategy. Pricing choice Option Best simple use --- --- On-Demand Short …
- OOP Mistakes and Interview Questions
… turn OOP basics into maintainable designs. - Design Patterns: proven OOP solutions such as Strategy, Observer, Factory and Decorator.
- AWS: Start Here
… failure, but a single database without an availability strategy can still stop the entire shop. Use an account …
- Domain-Driven Design: Strategic Design
… It splits into subdomains , and not all of them are equally important. Type What it is Strategy Example …
- AWS Interview Questions: Clear Answers
… or a read replica? It is an availability strategy. The traditional RDS Multi-AZ DB instance standby does …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… That gives you a choice when a file changes: Strategy How Verdict --- --- --- Immutable unique keys Every upload gets …
- Indexes, EXPLAIN & Query Plans
… Find expensive joins and sequential scans Each join strategy suits a different situation: Join Good when Warning sign …
- The Hot SKU Alert Problem
… Ways to handle that hotspot, each with a cost: Strategy Benefit Cost --- --- --- Keep one product partition Simple ordering …