Search
Lessons (40)
- Frontend Security
… What can go wrong in the browser and how to defend against it. The big idea The browser …
- How Browsers Render a Page
… HTML → DOM The browser reads HTML top to bottom and builds the Document Object Model , a tree of …
- S3: Store Files Safely
… Sign a short-lived upload URL with role credentials API-- Browser: URL Browser- S3: upload file directly Cost …
- Real-Time, Pub/Sub, Webhooks and CDC
Pick the right way to push updates (to browsers, to partner servers, to other services), and make sure …
- Next.js Rendering: CSR, SSR, SSG, ISR & Server Components
… The browser downloads JavaScript, runs it, fetches data, then builds the page. mermaid sequenceDiagram participant B as Browser …
- Domains, Load Balancers and HTTPS
Follow a browser request from a domain name to healthy app copies, with AWS-managed HTTPS certificates. The …
- Serverless: Lambda and API Gateway
… You still write, test, secure, and monitor the code; AWS manages the servers. mermaid flowchart LR B[Browser …
- How a Web Request Works
Follow one click from the browser to the server and back, through DNS, TCP, TLS, HTTP, load balancers …
- VPC Networking Without the Confusion
… Response ALB-- Browser: HTTPS response Create separate security groups. The app allows port 8080 from the ALB group …
- Microkernel (Plugin) Architecture
… How VS Code, browsers, Webpack and ESLint are built, how to design a plug-in contract, and the …
- Design a File Storage Service
… Bytes go straight to storage, your API keeps the records ❌ Wrong: the browser sends 2 GB to your …
- Design a URL Shortener
… But the redirect was sent as "permanent" and saved by browsers and edge servers. People keep landing on …
- Product-Scale Frontend Patterns
Design optimistic workflows, feature flags, offline behavior, multi-tenant presentation and role-aware UI without treating the browser …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… key }), ); } / A short-lived URL that lets a browser PUT one specific file straight to S3. / async presignUpload …
- Frontend Performance & Core Web Vitals
… the browser can't respond to a click until the current task finishes. mermaid gantt title A click …
- Payment Retries: Prevent Duplicate Charges
… The browser thinks it failed and sends the payment again . 5. The payment company sees what looks like …
- AWS Security Building Blocks
… For a browser login flow, use authorization code with PKCE and a suitable public app client. A browser …
- Stacks & Queues
… Two simple structures behind undo buttons, browser history, task scheduling and many interview problems. The big idea ![A …
- REST vs GraphQL vs gRPC
… connection, and nothing is parsed from text. Limits: browsers can't call gRPC directly (you need gRPC-Web …
- Networking, DNS and Traffic Routing
Follow one request from the user's browser to your server: how DNS finds you, how load balancers …
- Choosing a Programming Language
… bit of everything and works both in the browser and on the server. - A friendly power drill (Python …
- Authentication, Authorization & API Security
… the browser holds only a random ID in a cookie. mermaid sequenceDiagram participant B as Browser participant S …
- Frontend Testing Strategy
… one set of mocks for everything. End-to-end tests with Playwright E2E tests drive a real browser …
- Advanced TypeScript for Frontend
… useful when it prevents invalid combinations before the browser runs. A discriminated union gives each screen state the …
- Edge, Platform & Frontend Delivery
… handled in several places mermaid flowchart LR U[Browser] -- C[CDN cache] C -- miss E[Edge or middleware …
- Services and Ingress: Let Traffic Find Your App
… kubernetes/service-ingress.svg) mermaid flowchart LR U[Browser] -- I[Ingress] I -- S[Service: shop-api] S -- P1 …
- Timeouts, Retries & Backpressure
… if the browser, the gateway and the app all retry 3 times, one click becomes 3 × 3 × 3 …
- Scalable Frontend Architecture
… Keep browser secrets out of this layer; use server-side routes or a backend-for-frontend when credentials …
- Caching & Redis
… caches live mermaid flowchart LR U[👤 User] -- BC["Browser cache<br/ Cache-Control"] -- CDN["CDN edge<br/ images …
- Abstraction
… Write two implementations: MemoryStorage (uses a Map ) and LocalStorage (uses the browser's localStorage ). Write code that works …
- Linked Lists
… last points to first"] c1[A] -- c2[B] -- c3[C] -- c1 end Real uses: browser back/forward history …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… Even a simple health check stops answering. 3. Browsers and proxies give up after 30 to 60 seconds …
- JavaScript Essentials: Event Loop, Closures & this
… code, one function at a time Web APIs (browser) / libuv (Node) Oven, timer, delivery driver Do slow work …
- Layered (N-Tier) Architecture
… machines. mermaid flowchart LR subgraph T1["Tier 1: browser"] UI[React app] end subgraph T2["Tier 2: app …
- TypeScript Essentials
… js<br/ plain JavaScript"] JS -- Run[Runs in browser / Node] Types exist only at compile time . They're …
- Atomic Design & Component Libraries
… Prefer the browser's native element before recreating it with div plus click handlers. tsx type IconButtonProps = { label …
- React Hooks in Practice
… subscriptions, timers, browser APIs, non-React widgets. jsx useEffect(() = { // setup const onResize = () = setWidth(window.innerWidth); window.addEventListener("resize …
- Async JavaScript: Promises, async/await and Node's Event Loop
… exactly once](/img/languages/promise-states.svg) 📘 The browser event loop, call stack and the famous setTimeout vs …
- CloudFront: Faster Websites and Safer File Delivery
… Keep old assets long enough for browsers with older HTML to load them. Private origin and public delivery …
- Backend Design Scenarios
… may have come from an application cache, CDN/browser cache, a read replica with replication lag, a search …