Today I learned
48 short notes on what I picked up, newest first.
48 posts, newest first
- Does code mode replace MCP?Code mode does not replace MCP. It turns an MCP server's tools into functions and has the model write one short program that runs in a sandbox, instead of making one tool call per step. It saves tokens on repetitive work and helps less when each step needs the model's judgment.
- ai
- agents
- mcp
- What is quantization, and how does it let a model fit on a small device?Quantization stores each of a model's weights in fewer bits, a bit like lossy compression. It shrinks the model and often speeds it up, at the cost of small rounding errors that matter more the fewer bits you use.
- ai
- llm
- local-llm
- How does an API gateway throttle and rate limit traffic?An API gateway is the front door to a set of services, and one of its jobs is to say slow down before a client or a spike overwhelms what is behind it. The methods differ in how they treat bursts, memory and fairness, and the hard part is doing it across many gateway instances.
- system-design
- reliability
- api-design
- Can an AI model rewrite its own weights?Researchers gave a large language model a small sandbox to read and edit its own weights, with gradient training switched off. It made a small edit that raised its math accuracy and repaired a deliberately corrupted copy of itself. It is an interesting result, but it comes from one paper with no released code, and I couldn't check it.
- ai
- llm
- research
- Is Grab building its own maps with dashcams?A dashcam on a ride-hailing car does more than record. It seems to run image recognition on the device and send only small structured updates over its own cellular connection to a map the company owns. Raw video would be too costly and too sensitive to stream at scale, though it could in theory help train self-driving cars.
- ai
- maps
- system-design
- How does Zoom send video to everyone in a meeting in real time?Sending a copy of my video to every person doesn't scale, and mixing everyone into one grid on a server costs too much CPU and adds delay. Zoom uploads one copy to a router that only forwards packets, and each laptop builds its own grid. Most of the heavy work lands on the many laptops instead of the few servers.
- networking
- system-design
- scaling
- What is CUDA and what does it do?Python runs on the CPU, but training a model is millions of small calculations that a GPU can do in parallel. CUDA is the Nvidia stack that carries the work across: kernels that do the calculation, ready-made libraries of them, a runtime that starts them, and a driver that talks to the GPU.
- ai
- gpu
- fundamentals
- What is agent substrate and why did Google build it?An AI agent spends most of its session waiting, so giving each agent its own pod pays for a lot of idle capacity. Agent substrate puts many sandboxed agents on a smaller pool of pods and saves an idle agent's memory and files to storage, so it can wake up on any free worker. Google says that wake up takes under half a second.
- ai
- agents
- kubernetes
- What is regression testing?A regression is something that used to work and broke after a change. Regression testing re-runs a fixed set of old tests after every change to catch that, even in features the change never touched. It fits naturally into CI/CD, but a pipeline only helps if someone wrote the tests, and the suite has to stay fast and trusted.
- testing
- fundamentals
- ci-cd
- How does a VPN work?HTTPS hides what I send but not who I am talking to. A VPN wraps my whole packet, destination included, inside an encrypted packet addressed to the VPN server, which unwraps it and forwards it. My ISP only sees the VPN server, the website only sees the VPN server, and the VPN provider now sees what my ISP used to.
- networking
- security
- fundamentals
- How do mobile apps keep track of me when I never created an account?An app with no sign-in makes its own guest ID and ties server data to it, then saves that ID somewhere that can survive a reinstall or a new phone. The App Store and Google Play track purchases against my store account, not that ID, so the developer has to link the two. Underneath, it is the same client-server model as the web.
- mobile
- architecture
- system-design
- Kafka or RabbitMQ for an order processing system?RabbitMQ hands a task to a worker and deletes it once it is done. Kafka keeps every event in a log for a set time, and each service tracks its own place in it, so a fixed bug can be replayed. Orders fit Kafka, an OTP email fits RabbitMQ. A broker is not essential to an AI harness, but the same split applies when agent work gets slow or needs replay.
- system-design
- message-brokers
- agents
- What is api-anything and what can it do?api-anything learns the requests a website's own frontend makes, saves them as a spec, and replays them over plain HTTP. Agents then call a site like an API through MCP, a CLI, a local REST server, or a library. It is a useful option when a site has no API, though it only covers sites someone has taught it.
- ai
- agents
- mcp
- What is spec driven development?Spec driven development makes a written spec the main artifact and has an AI agent build from it. The spec says what and why, including any technical choices already fixed by the environment. The plan covers the open design choices, and the tracker breaks the work into checkable steps. It shifts an engineer's effort from writing code to designing and verifying.
- ai
- agents
- career
- Is agentic engineering the same as harness engineering?They overlap but they are not the same. Agentic describes how much the model decides. Harness engineering is the work of building the environment around the model. A three-layer view (system, agent, model) keeps them straight.
- ai
- llm
- agents
- Do AI agent frameworks build the harness for me?Agent frameworks are harness kits, not the harness itself. LangGraph is the most explicit one, but even a thin SDK leaves the real harness work to me: tools, context, permissions, and checks. The frameworks differ in how much of the harness I write myself and how much I inherit.
- ai
- llm
- agents
- Does a smaller context make an AI agent better?I built a LangGraph agent that solves detective mysteries while keeping its context window as small as possible, then ran it about 340 times, on one model locally and four in the cloud. Keeping the context small worked, but it was the wrong thing to optimize: sending the whole case in one prompt was more accurate and 7x to 20x cheaper. What goes in the prompt matters more than how little goes in.
- ai
- llm
- agents
- What is LangGraph?LangGraph is a framework for building AI agents as graphs: shared state, steps as nodes, and edges that decide what runs next, including loops. To me it's the skeleton of a harness, the agent loop written as code I can see and change. I liked it enough to start a small project to learn it.
- ai
- llm
- agents
- How do AI systems interact with the outside world?A model on its own only knows its training data. To reach anything else it reads from a knowledge base (RAG), calls software (APIs, MCP, A2A), uses screens the way people do (computer use), or acts in the physical world (robotics). I see three routes: software, human systems, and the physical world.
- ai
- llm
- agents
- What's the difference between MCP and UTCP?MCP puts a server in front of a service so any AI agent can use it. UTCP skips the server and hands the agent a manual for calling the service's existing API directly. Either way, the service still checks a token, so authentication is the part neither one removes.
- ai
- llm
- agents
- What are AI guardrails?A rule written in a prompt is a suggestion, not a guarantee, because the model is probabilistic. Guardrails are checks around the model: on what goes in, what it tries to do, and what comes out. The ones that matter most are plain code, not another AI.
- ai
- llm
- agents
- Why can I download some AI models for free?Closed models are rented through an API, open weight models hand you the trained weights, and open source also hands you the data and code to rebuild them. The weights are free because they were never the product. The product is running them cheaply at scale, and that still costs GPUs, power, and people.
- ai
- llm
- local-llm
- Why is internet speed in bits but file size in bytes?A bit is a single 1 or 0, and a byte is 8 of them. Data in motion (internet, Wi-Fi) is counted in bits, and data at rest (RAM, disks, files) in bytes, so divide Mbps by 8 to get MB/s. The 8 goes back to IBM's System/360 in 1964, which made the 8-bit byte the standard.
- networking
- fundamentals
- Can a Mac mini replace a $200 AI subscription?A $200 AI plan bundles three things: a frontier model, someone else's GPUs to read your prompt, and a monthly volume. A local box only competes on volume. To judge it, check each of the three, then compare the box against renting the same open model by the token, not against the plan.
- ai
- llm
- local-llm
- What numbers should I remember for back-of-the-envelope math?A short list of numbers (powers of two, seconds in a day, latency orders of magnitude, availability nines, rough per-machine throughput) turns "how big does this need to be?" into a two-minute estimate. The goal is the right order of magnitude, and an argument for each design choice, not an exact answer.
- system-design
- architecture
- scaling
- What are serverless containers?A serverless container is your own container image, run by the cloud with no servers or cluster to manage. It lifts most of a function's limits (any language, longer runs, many requests per instance) while keeping some of the pay-for-use model. Serverless here means no servers to manage, not always scale to zero.
- serverless
- architecture
- kubernetes
- What are serverless functions, and is serverless actually popular?A serverless function is code that runs only when an event arrives, on servers you never size, billed by the request and the millisecond. It's widely used for glue code, APIs, and spiky work. Teams move off it when the load gets steady and heavy, the same cost tradeoff as serverless databases.
- serverless
- aws
- architecture
- What are data lakes and data warehouses for?A production database is built for lots of small reads and writes. Analytics needs a few huge scans over everything, so the data gets copied somewhere built for that. A warehouse keeps it clean and structured for SQL, a lake keeps it raw and cheap for anything, and a lakehouse puts warehouse features on top of a lake.
- databases
- data-engineering
- analytics
- Is there such a thing as a serverless database?Yes. The servers still exist, but compute and storage live on separate machines and scale on their own. That split is what makes scale-to-zero possible, and it's also where cold starts and network latency come from. The storage side isn't a dumb disk, either: it has its own compute that turns the write log into data pages.
- databases
- postgres
- distributed-systems
- How do ML engineers train and release models?Training teaches a model from random weights, fine-tuning bends an existing model toward one job, and releasing it looks a lot like shipping any service: package it, push it to a registry, roll it out carefully, and watch it. The new part is that a model can get worse without any code changing.
- ai
- llm
- mlops
- What are all these new AI roles?AI didn't create one new job, it created a whole stack of them. Researchers invent models, ML engineers train them, AI engineers build products on them, and MLOps and inference engineers keep them running reliably, fast, and cheap.
- ai
- career
- llm
- What is harness engineering?Claude Code and Claude Sonnet are two different products: one is the harness that does things, the other is the model that thinks. The model never touches a file. It asks for a tool, the harness runs it and sends back the result, and harness engineering is building everything around that loop.
- ai
- llm
- agents
- What is a context window?The context window is everything a model can see in one request, measured in tokens, including its own reply. The model remembers nothing between requests, so the app sends the whole conversation again every time.
- ai
- llm
- How do you design an API properly?Before writing a single endpoint, start from who uses it and what they need to know. Then think through parameters, pagination, idempotency, retries, and auth before you build.
- system-design
- api-design
- What is thread pool exhaustion?A service can stop answering while its CPU sits idle, because every thread is stuck waiting. Usually the threads are waiting on a database connection, and that pool ran out first.
- reliability
- sre
- distributed-systems
- When do I measure requests, and when do I measure resources?RED watches the work from the user's side. USE watches the machines doing that work. They often don't fire together, so I page on RED and use USE to find the cause.
- observability
- sre
- alerting
- When do dashboards hide the problem that traces reveal?Dashboards tell me that something is wrong. Traces show where it went wrong for one specific request. Exemplars are the link that gets me from a spike on a chart to the trace behind it.
- observability
- sre
- distributed-systems
- What do polling, SSE, WebSockets, TCP, and UDP have in common?They are all client-server communication patterns, split by who starts the conversation, which way data flows, and how long the connection lives. TCP and UDP are the layer underneath the rest, and the choice decides which SLOs make sense and how the system fails.
- networking
- system-design
- sre
- Why can average latency look fine while users are suffering?The average hides the slow tail. p50 shows the typical experience, p99 puts a ceiling on the worst of it, and in a distributed system that slow 1% can take down the services that depend on it.
- reliability
- sre
- distributed-systems
- When should you use a message broker instead of a load balancer?A load balancer spreads live requests and gives up in seconds. A message broker turns requests into stored data that can wait for hours. Brokers are a tool for work that can wait, not the default answer to scaling.
- system-design
- message-brokers
- load-balancing
- scaling
- What is Jev, and how do you use a System One model?Jev does not write text. It answers structured questions about a state with calibrated probabilities, fast and cheap. It sorts and screens well, but it is not a crystal ball.
- ai
- llm
- classification
- agents
- Where does ArgoCD sit next to Flux and Spinnaker?ArgoCD and Flux pull from Git and correct drift from inside the cluster. Spinnaker pushes through pipelines from outside. Only ArgoCD onboards teams from a registry file natively.
- argocd
- flux
- spinnaker
- gitops
- kubernetes
- What is ArgoCD, and can it power a templated CD project?ArgoCD pulls deployments from Git into the cluster and corrects drift. An ApplicationSet is what makes a templated, subscribe-by-form CD project practical.
- argocd
- gitops
- kubernetes
- Brushing up my Terraform after a failed applyA wrong AWS profile broke my apply, so I brushed up my Terraform: the core workflow, state and locking, modules, and the gotchas worth remembering.
- terraform
- iac
- aws
- Just because I can run everything on Kubernetes, should I?Kubernetes can host every layer of a system, but the right runtime depends on the size and shape of the team.
- kubernetes
- sre
- architecture
- Are a thundering herd and a retry storm the same failure?Two failure modes that look alike under load, but start differently and need different fixes.
- reliability
- sre
- distributed-systems
- How do you stop a load balancer from being a single point of failure?A KodeKloud short on load balancers led me to active-passive and active-active setups.
- load-balancing
- high-availability
- networking
- What is platform engineering, and what is an IDP?A dev for devs is a Platform Engineer and their product is called an IDP
- platform-engineering
- idp
- career