Architecture
How the pieces of an app fit together — frontends and backends, APIs, databases, queues and caches — and how to choose between designs.
133 posts · page 1 of 6
What Is SSO (Single Sign-On)? How It Works and When Your App Needs It
Single sign-on lets people log in once with one company account — Google Workspace, Microsoft Entra, Okta — and get into many apps without separate passwords. How SSO works, SAML vs OpenID Connect, why business customers demand it, and how to add it to your own app.
What Is OAuth? "Sign in With Google" and Delegated Access Explained
OAuth is the standard that lets one app access your data in another app without ever seeing your password — it's behind "Sign in with Google" and "Connect your GitHub account". How the OAuth flow works step by step, what scopes and tokens are, OAuth vs OpenID Connect, and the mistakes to avoid.
What Is Firebase? Google's App Backend Explained for Beginners
Firebase is Google's backend-as-a-service: a database, logins, file storage, hosting and serverless functions you use from your app without running a server. What each part does, how the free and pay-as-you-go plans work, how security rules protect your data, and when Firebase is (or isn't) the right fit.
What Is Base64? Encoding Explained (and Why It Isn't Encryption)
Base64 turns any data — images, files, binary keys — into plain text made of 64 safe characters, so it can travel through systems that only handle text. How it works, where you'll see it (data URLs, JWTs, API keys, email), how to encode and decode it, and why it provides zero security.
UUIDv7 Explained: Time-Ordered IDs and Why Postgres 18 Added uuidv7()
UUIDv7 is a UUID that starts with a millisecond timestamp, so new IDs sort in creation order. Why that makes database indexes faster than random UUIDv4, the format in detail, generating them in Postgres 18, Node.js and Python, what the timestamp leaks, and when to still use v4 or bigint.
Postgres LISTEN/NOTIFY: Real-Time Events Without Another Service
LISTEN and NOTIFY let Postgres send messages to connected clients when something happens — new orders, cache invalidation, live dashboards — without Redis or a message broker. How it works, a Node.js example with triggers, the 8000-byte payload limit, why notifications aren't durable, and the PgBouncer gotcha.
pnpm Workspaces: Set Up a JavaScript Monorepo Step by Step
How to set up a monorepo with pnpm workspaces: pnpm-workspace.yaml, linking internal packages with workspace:*, running scripts across packages with --filter and -r, sharing dependency versions with catalogs, approving build scripts in pnpm 10, and deploying a single app from the repo.
Next.js Cache Components and 'use cache': The New Caching Model Explained
Cache Components replace the App Router's implicit caching with explicit 'use cache' annotations on components and functions. How to enable it, how cacheLife and cache tags work, why dynamic data must sit inside Suspense, ensureStatic in Next.js 16.4, and how to migrate an existing app.
MCP Transports: stdio vs Streamable HTTP (and What the 2026 Spec Changed)
MCP servers talk to clients over stdio (a local subprocess) or Streamable HTTP (a remote endpoint). How each works, when to choose which, how to add both to Claude Code, why the old HTTP+SSE transport is deprecated, and what the stateless 2026-07-28 specification means for building and hosting HTTP servers.
MCP's 2026-07-28 Specification: A Stateless Protocol and What Breaks
The Model Context Protocol released its 2026-07-28 specification, the first since November 2025. The core becomes stateless request/response — no initialize handshake, no Mcp-Session-Id — with routing headers, multi round-trip requests, cacheable lists, auth hardening and deprecated Roots, Sampling, Logging and HTTP+SSE. What changes for server builders and users.
Cannot Set Headers After They Are Sent to the Client: How to Fix It
"Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client" means your Express or Node.js code tried to send a second response to one request. The common causes — a missing return, callbacks and loops that respond twice, next() after res.send(), async errors — and how to fix each.
429 Too Many Requests: What It Means and How to Fix It
A 429 Too Many Requests response means you've hit a rate limit: too many requests in too short a time. How to read the Retry-After and rate-limit headers, how to retry properly with backoff, the usual causes (loops, missing caching, shared IPs, AI API limits), and how to add rate limits to your own app.
WordPress vs a Custom-Built Website: Which Should You Choose?
WordPress runs a huge share of the web and is still the fastest route to a content site. A custom app — now often built with AI — fits when your site is really software. Costs, speed, security, maintenance and SEO compared, with a simple way to decide.
What Is SaaS? Software as a Service Explained for Beginners
SaaS (software as a service) is software you use in a browser and pay for by subscription — Gmail, Slack, Notion, Shopify. What makes something SaaS, how SaaS businesses make money, the metrics that matter (MRR, churn, CAC), and what you need to build one.
What Is htmx? Interactive Pages Without a JavaScript Framework
htmx lets HTML elements make requests and swap in HTML from the server, using attributes like hx-get and hx-swap — so you can build interactive pages without React. How it works, examples, where it shines, where it doesn't, and how it pairs with Django, Flask, Rails and Go.
What Is FastAPI? Python's Modern API Framework, Explained
FastAPI is a Python framework for building APIs that uses type hints for validation and generates interactive documentation automatically. What it is, a minimal example, Pydantic models, async support, automatic docs, how it compares with Flask and Django, and why it's popular for AI backends.
What Is Express.js? The Node.js Web Framework, Explained
Express is a minimal web framework for Node.js — the most widely used way to build APIs and servers in JavaScript. What it does, routes and middleware explained, a small REST API example, Express 5, how it compares with Fastify, Hono and Next.js API routes, and what to add for production.
What Is Django? The 'Batteries Included' Python Framework
Django is a Python web framework that includes almost everything a website needs: an ORM, migrations, an admin panel, authentication, forms and security protections. What it is, how a Django project is structured, its famous admin, when it's the right choice, and how it compares with Flask and FastAPI.
What Is an AI Wrapper? (And Is Building One a Bad Idea?)
An AI wrapper is an app built on top of someone else's AI model, like Claude or GPT, adding an interface, prompts and workflow for a specific job. Why the term is used as an insult, why most successful AI products are wrappers anyway, and how to build one that's worth paying for.
What Is a Load Balancer? Spreading Traffic Across Servers
A load balancer sits in front of several copies of your app and spreads requests between them, skipping any that are unhealthy. How it works, the common algorithms, sticky sessions, health checks, and why a small app probably doesn't need one yet.
What Is a Headless CMS? And Does Your App Need One?
A headless CMS is a content editor with no website attached — it stores your content and hands it to your app through an API. How it differs from WordPress, the popular options, when it beats Markdown files or your own database, and when it's overkill.
Webhooks vs Polling: How Apps Find Out Something Changed
Polling means asking 'anything new?' on a timer; a webhook means the other service tells you when something happens. How each works, their costs and failure modes, when polling is actually the better choice, and how to combine them reliably.
WebAssembly as a Sandbox: Running Untrusted Code With Wasmtime and WASI
WebAssembly's design makes it a strong in-process sandbox: linear memory, no ambient authority, and capability-based access through WASI. How the isolation works, limiting CPU with fuel and epochs, memory limits, the component model, real uses for plugins and user code, and where it falls short.
V8 Isolates: How Edge Platforms Run Thousands of Tenants in One Process
A V8 isolate is an independent JavaScript heap and execution context inside one process. How isolates make edge runtimes start in milliseconds and pack thousands of tenants together, what isolation they provide, Spectre and the extra layers platforms add, limits, and isolates vs containers vs VMs.