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 3 of 6
HTTP Headers Explained: The Hidden Part of Every Request
Every web request and response carries headers — extra information about the content, the client, authentication, caching and security. The headers you'll meet most (Content-Type, Authorization, Cookie, Cache-Control, CORS), how to see them in DevTools, and how to set them.
How to Build an AI App: A Beginner's Step-by-Step Guide
The parts every AI app needs — a frontend, a backend that holds your API key, a model API, a database and usage limits — and the steps from idea to a working, deployed app. With a minimal code example and the mistakes that cost beginners the most.
How Coding Agents Work: The Loop, the Tools, and the Context Behind Them
Under the hood, Claude Code, Codex and similar agents are a model in a loop with tools and a carefully managed context. The agent loop, tools, file editing, search, context compaction, subagents, permissions and sandboxing — and what it means for you.
How to Host a Telegram Bot: Polling vs Webhooks, and Where to Run It
Telegram bots receive messages in one of two ways: long polling (your bot asks Telegram) or webhooks (Telegram calls your URL). How each works, which hosting fits each — a VPS, serverless functions, a container platform — with setup steps, token safety and the common mistakes.
GET vs POST (and PUT, PATCH, DELETE): HTTP Methods Explained
Every request to a web server has a method that says what it wants to do. GET reads, POST creates, PUT and PATCH update, DELETE removes. The differences that matter in practice — caching, safety, idempotency, where the data goes — and the mistakes AI-generated APIs make.
Flask vs Django vs FastAPI: Which Python Web Framework?
Three popular Python web frameworks with different philosophies. Django is batteries-included, Flask is minimal, FastAPI is built for typed, async APIs. What each gives you, the same endpoint in all three, and how to pick for your project.
Exponential Backoff and Jitter: Retrying Failed Requests Properly
When an API call fails with a timeout, 429 or 503, retrying immediately makes things worse. Exponential backoff waits longer after each failure, and jitter spreads retries out. Which errors to retry, Retry-After, a TypeScript implementation, idempotency, and retrying LLM API calls.
DNS Rebinding Attacks: How a Website Reaches Your localhost
DNS rebinding lets a malicious web page send requests to services on your machine or private network — dev servers, admin panels, local MCP servers, routers — despite the same-origin policy. How the attack works step by step, why SSRF filters fall to it too, and the defences: Host header checks, authentication, binding, and resolve-then-pin.
Distributed Locks: Redis, Postgres and Why Fencing Tokens Matter
A lock across multiple processes or servers is harder than it looks: processes pause, leases expire and two holders can both believe they own the lock. Redis SET NX PX done right, the Redlock debate, Postgres advisory locks, fencing tokens, and when you don't need a distributed lock at all.
Database Normalization Explained: 1NF, 2NF, 3NF in Plain English
Normalization means storing each fact once, so updates can't leave your data contradicting itself. What 1NF, 2NF and 3NF actually require, with one example table taken through each step, the anomalies they prevent, and when deliberately denormalizing is the right call.
BullMQ Tutorial: Background Jobs in Node.js With Redis
BullMQ is the most popular Redis-backed job queue for Node.js. Set up a queue and worker, retries with exponential backoff, delayed and repeatable jobs, concurrency and rate limiting, idempotency, graceful shutdown, monitoring, and when a Postgres queue is enough instead.
How to Build an AI Agent: The Loop, the Tools, and the Guardrails
An AI agent is a model in a loop: it decides on an action, a tool runs it, the result goes back, repeat. Build one from scratch with the Claude API's tool use, then see when to reach for the Claude Agent SDK or other frameworks — plus stopping conditions, memory, cost control and safety.
Blue-Green vs Canary vs Rolling Deployments
Three ways to release a new version without taking your app down or betting everything on it working. How blue-green, canary and rolling deployments work, what each needs, how they handle database migrations, and a pragmatic approach for a small app on one or two servers.
API Versioning: How to Change an API Without Breaking Clients
Once other apps depend on your API, changes can break them. What counts as a breaking change, versioning strategies (URL path, headers, Stripe-style dated versions), evolving without versions, deprecation with Sunset headers, and a practical approach for small teams.
How to Generate and Manage API Keys for Your Users
Letting customers call your API means issuing API keys. How to generate secure keys, prefixes that make them identifiable and scannable, storing only a hash, showing the key once, scopes and expiry, rotation, rate limits per key, logging usage, and revoking keys.
API Authentication Methods: API Keys, Sessions, JWTs, OAuth and mTLS
How should clients prove who they are to your API? API keys for server-to-server, session cookies for your own web app, bearer tokens for mobile and SPAs, OAuth for third-party access, HMAC signatures for webhooks, mTLS for service meshes. When to use each and how to do it safely.
What Is RAG? Retrieval-Augmented Generation for Beginners
RAG lets an AI answer questions about your own documents by finding the relevant pieces first and handing them to the model. How retrieval-augmented generation works, step by step, when you need it, when you don't, and the mistakes that make it give bad answers.
What Is Python? What It's Used For and Why AI Loves It
Python is a popular, readable programming language used for websites, automation, data and AI. What Python is, what it looks like, what people build with it, how to run a Python file, and when an app should use Python instead of JavaScript.
What Is Latency? Why Distance Makes Your App Feel Slow
Latency is the delay before data arrives; bandwidth is how much can arrive at once. What latency is, why physical distance sets a floor on it, why round trips multiply it, latency vs bandwidth vs throughput, and practical ways to make an app feel faster for faraway users.
What Is Function Calling (Tool Calling) in AI? Explained With Examples
Function calling — also called tool calling or tool use — lets an AI model ask your code to do things: look up an order, check the weather, query a database. How it works step by step, a Claude example, why the model never runs your code itself, and how to keep it safe.
What Is an SDK? SDK vs API, Explained for Beginners
An SDK is a ready-made toolkit for using a service from your code. What an SDK contains, how it differs from an API, real examples from Stripe and Anthropic, how to install one, and why AI tools sometimes invent SDK functions that don't exist.
What Is a PWA? Progressive Web Apps Explained for Beginners
A progressive web app is a website that can be installed like an app, work offline and send notifications. What a PWA needs (manifest, service worker, HTTPS), what it can and can't do on iPhone and Android, and when it's a better first step than an app-store app.
UUID vs Auto-Increment IDs: Which Primary Key Should You Use?
Sequential integers or UUIDs for your primary keys? The real trade-offs — size, index performance, guessability, merging data, leaking business metrics — why UUIDv7 changes the answer, Postgres 18's uuidv7(), and the common hybrid of internal IDs plus public IDs.
Two-Factor Authentication Explained (and How to Add It to Your App)
What two-factor authentication is, how authenticator-app codes (TOTP) work, why SMS codes are the weakest option, where passkeys fit, and how to add 2FA to your own app — including recovery codes and the mistakes to avoid.