Search
Lessons (40)
- Finding Service Boundaries with DDD
… Learn bounded contexts, ubiquitous language, aggregates and context maps from Domain-Driven Design. The big idea The word …
- Domain-Driven Design: Strategic Design
… One team should own each context. 4. Context mapping: how contexts relate A context map shows the bounded …
- Go Concurrency: Goroutines, Channels and Context
… limit how much runs at once go func process(ctx context.Context, jobs []Job, workers int) []Result { jobCh …
- Go Web Services with Gin
… services take context.Context and return domain errors, mapped to HTTP in one place. - Configure server timeouts and …
- Transformers and Large Language Models
Learn tokens, next-token prediction, attention, pretraining, fine-tuning, context windows, and the limits of language models. The …
- Prompting and Structured Outputs
Write clear instructions, provide context and examples, constrain responses, and validate model output in code. The big idea …
- C4 Architecture Diagrams: Context, Container, Component and Code
… Think of a shopping mall: - The context diagram shows the mall, shoppers, bank, delivery company and nearby roads …
- Putting AI Systems into Production
… input validation, retrieval or context, provider calls, output checks, user experience, monitoring, and operational controls. The model is …
- Embeddings, Semantic Search, and RAG
… Chunking too small loses context; too large can bury the relevant sentence and consume the context budget. Overlap …
- What Is Software Architecture?
… a modular monolith , split along DDD bounded contexts , where each module uses Hexagonal/Clean architecture inside, and modules …
- Go Fundamentals
… If a type has the methods, it is that interface. go type Notifier interface { Notify(ctx context.Context …
- Observability and Incident Response
… one propagated context through HTTP, queues and background jobs. - Logs: structured, searchable events with no secrets or unnecessary …
- Kubernetes Cluster Architecture, Simply
… kubectl config current-context Which cluster/context will commands use? Always check the current context before changing anything …
- Product-Scale Frontend Patterns
… and helpful empty states from tenant and role context. It must not be the final authorization check. tsx …
- Real-Time, Pub/Sub, Webhooks and CDC
… Include event ID, schema version, ordering key and trace context; consumers deduplicate and send exhausted failures to a …
- State Management (Redux, Zustand, TanStack Query)
… Theme, logged-in user, shopping cart, sidebar open Context, Zustand , Redux Toolkit Server state Products, orders, user profiles …
- Secrets, Ephemeral Values, and Least Privilege
… persisted Terraform state/plan Only permitted in compatible contexts Write-only resource arguments Provider input omitted from persisted …
- Domain-Driven Design: Tactical Patterns
… Date; }; They let aggregates stay small and decoupled (rule 4), feed other bounded contexts (through an outbox and …
- Choosing an Architecture
… For example: a modular monolith (1), with Hexagonal modules (2), cut along DDD bounded contexts (3), talking via …
- React Hooks in Practice
… Context makes a value available to a whole subtree. jsx const ThemeContext = createContext("light"); function App() { const [theme …
- Python Fundamentals
… print("Always runs") A context manager ( with ) guarantees cleanup even when an error happens: python from pathlib import …
- Backend Languages: Node.js, Go, Python & Rust
… users/:id", func(c gin.Context) { user, err := findUser(c.Request.Context(), c.Param("id")) if err != nil …
- Behavioral Patterns I: Observer, Strategy, Command, State
… add a new strategy, don't edit the context. --- 3. Command 🧾 Analogy: A waiter writes your order …
- Observability: Logs, Metrics & Traces
… hard to search, no context console.log("Payment failed for user 42"); // ✅ Structured (pino): every field is searchable …
- Frontend Performance & Core Web Vitals
… render only the ~20 visible rows (TanStack Virtual, react-window) Context updates re-render everything Split contexts, or …
- Architecture Patterns at Scale
… failure boundaries and operational cost. The problem in context A twelve-person team runs a growing marketplace. Deployments …
- CloudWatch: Know What Your App Is Doing
… These signals complement each other. Write a useful structured log Instead of Something broke , emit safe context: json …
- Batch vs Stream and Data Modeling
… deliberately denormalize proven read bottlenecks. The problem in context A marketplace needs yesterday’s financial report and a …
- Design a Reliable Notification System
… provider failover and auditable states. The problem in context A marketplace sends password resets, order receipts and promotional …
- Big Data: ETL, Warehouses and Streaming
… layers, and explicit freshness contracts. The problem in context A retailer receives 50 million purchase and browsing events …
- Design a Polite Web Crawler
… normalize, deduplicate and schedule per host. The problem in context A search product wants to crawl 100 million …
- Releases, Observability and Production Safety
… and observable service-level outcomes. The problem in context A new checkout release changes an order column and …
- React Internals & Concurrent Rendering
… own state changes, its parent renders, a consumed context changes, or its identity/key changes. A render is …
- Time, Consistency and Distributed Transactions
… without promising impossible global certainty. The problem in context Two regions edit an account and process an order …
- Design a Logging and Monitoring Platform
… alerting useful rather than noisy. The problem in context A fleet of 5,000 services emits 200,000 …
- Data Structures for Scale
… while understanding their error bounds. The problem in context A location service must find nearby drivers, count distinct …
- Distributed Coordination: Consensus, Heartbeats and Gossip
… propagation for the right problems. The problem in context Three scheduler nodes coordinate work. A network pause makes …
- System Design Interview Framework
… trade-off-aware architecture discussion. The problem in context An interviewer asks “Design a messaging app.” There is …
- Design a File Storage Service
… metadata, authorization, sharing and synchronization. The problem in context A team uploads 2 GB video files from unreliable …
- Proxies, APIs and Real-Time Protocols
… based on the interaction shape. The problem in context A delivery app needs order creation, live driver positions …