Search
Lessons (40)
- D — Dependency Inversion Principle
High-level business logic should depend on abstractions, not on concrete details like databases or email providers. The …
- Dependencies, Data Sources, and Resource Lifecycle
Understand the dependency graph, read existing infrastructure, and reason about replacements and lifecycle safeguards. References create a graph …
- Normalization & Denormalization
… depend on the whole key Rule: be in 1NF, and every non-key column must depend on the …
- Onion Architecture & Clean vs Hexagonal vs Onion
… All three share the same rule: 🎯 The business logic is at the centre and depends on nothing. Infrastructure …
- Clean Architecture
Organise an application in layers so business rules don't depend on frameworks, databases or the web. Follow …
- Resilience Patterns
… Fallbacks and graceful degradation When a non-critical dependency fails, degrade instead of erroring: Failed dependency Fallback --- --- Recommendations …
- Python Web APIs: FastAPI and Django
… raise HTTPException(401, "Invalid token") return user DB = Annotated[Session, Depends(get db)] CurrentUser = Annotated[User, Depends(current …
- Clean Architecture in Depth
… and the Dependency Rule](/img/architecture/clean-circles.svg) 📘 The Dependency Rule: source code dependencies must point only …
- Object Relationships: Association, Aggregation and Composition
… Learn dependency, association, aggregation and composition with everyday examples, code, and how to draw them in UML class …
- Resilient Service Calls: Retries, Breakers and Load Shedding
… retry at the same instant. Rule 3: Put walls around each dependency - Bulkheads: give each service you call …
- SOLID at a Glance
… microwave's buttons. D Dependency Inversion Depend on abstractions , not concrete details. Lamps depend on the socket, not …
- Putting AI Systems into Production
Design dependable model integrations with fallbacks, observability, versioning, cost controls, and human review. The big idea A production …
- Layered (N-Tier) Architecture
… layered design, the business layer depends on the persistence layer . So business rules end up shaped by database …
- Hexagonal Architecture (Ports & Adapters)
… fast and realistic. - Same Dependency Rule as Clean Architecture: nothing in the core imports an adapter.
- Scaling, Load Balancing & Rate Limiting
… Readiness can include critical dependencies, but keep it fast and define whether a degraded dependency should remove the …
- React Hooks in Practice
… When to use each, the rules of hooks, and the mistakes that cause infinite loops. The big idea …
- CI/CD Fundamentals and Pipeline Design
… Install npm ci , pip install -r , mvn dependency:go-offline Reproducible dependencies from a lock file Under 1 …
- Cross-Service Data: How to Join Without a Database JOIN
… and pipeline delay Live business rule Call the owning service Runtime dependency and latency A practical design: order …
- OOP Mistakes and Interview Questions
… their rules and expose behavior , not raw data. - Prefer small classes, shallow hierarchies, composition and injected dependencies. - In …
- Frontend Security
… your dependencies A typical frontend app has 1,000+ npm packages . One compromised package can steal data from …
- C4 Architecture Diagrams: Context, Container, Component and Code
… rules?" Component "Which method validates a coupon?" Code These diagrams prevent a common mistake: calling every dependency "our …
- Domains, Load Balancers and HTTPS
… For EC2 routing, the target type depends on how the app is deployed. Pick it to match the …
- EC2, Storage and Auto Scaling
… an ARM machine image requires compatible software and dependencies. A guided single-server web lab This lab creates …
- Composition over Inheritance
… the child depends on the parent's internals Loose: depends only on a part's interface Change at …
- Microkernel (Plugin) Architecture
… the only thing plug-ins may depend on Registry Knows which plug-ins exist, their versions, and how …
- Choosing an Architecture
… automated checks for architecture rules (dependency rules, latency budgets) Guard the architecture continuously in CI ADRs for every …
- AWS Interview Questions: Clear Answers
… IPv4 internet communication also depends on a public address and allowing network rules. A private subnet normally has …
- CloudWatch: Know What Your App Is Doing
… Combine traffic context or use a different low-volume rule. Avoid treating missing metrics as proof that the …
- AWS: Start Here
… Costs depend on use: running time, storage, data transfer, and requests. Add a budget alert before experimenting. Stop …
- L6 Production Debugging Casebook
… Split by page, customer (tenant), region and pod. ⚠️ "No unusual logs" doesn't rule out waiting : a request …
- Authentication, Authorization & API Security
… git - [ ] Security headers ( helmet in Express) - [ ] Dependencies scanned ( npm audit , Dependabot) - [ ] Log security events, but never log passwords …
- Capacity Planning, SLOs and Error Budgets
… Rule 3: Use the budget to make decisions - Load-test the peak , and the peak while a dependency …
- Edge, Platform & Frontend Delivery
… Build once from a pinned dependency lockfile. 2. Publish immutable static assets before or with the application release …
- Prompting and Structured Outputs
… It can improve consistency, but it cannot guarantee correctness or replace application-side validation. A dependable prompt shape …
- Providers and Your First AWS Resources
… The references to the bucket ID automatically make the related resources depend on the bucket. Separate resources manage …
- Database Relations & Foreign Keys
Model one-to-one, one-to-many and many-to-many data with keys, constraints and deletion rules …
- Machine Learning Fundamentals
… predict the majority class, use a simple rule, or predict the training average. If a complex model cannot …
- Debug Latency Like an Investigator
… Don't guess. Rule 2: Look at the database, not just the app Check lock waits , query plans …
- Timeouts, Retries & Backpressure
When something you depend on gets slow, stop waiting forever, don't pile on retries, and say 'not …
- Observability and Incident Response
… someone leads, someone calls, someone grabs the extinguisher. The fix in three rules Rule 1: Start from what …