Posts

All Posts

A chronological archive of projects, sketches, and technical notes.

Knowledge AI LLM September 8, 2026

Three Types of Transformers

Encoder, decoder, and seq2seq transformers compared by what they output, an example model, typical use cases, and typical size.

Three Types of Transformers
System Design Case Studies System Design Questions September 5, 2026

URL Shortener

Requirements, short code generation strategies, caching, and scaling reads and writes with separate read/write services.

URL Shortener
Knowledge AI ML September 3, 2026

PPO vs DPO

A short note on PPO and DPO, two ways to align a model's responses with human preferences.

PPO vs DPO
System Design Case Studies Database Basics August 31, 2026

Designing a Like Feature

A practical system design note for a post like feature, from database modeling to large-scale asynchronous like-count aggregation.

Designing a Like Feature
System Design Fundamentals Components August 30, 2026

System Design Components

Nine components that show up in nearly every system design interview, what each one actually solves, and the one trade-off worth knowing for each.

System Design Components
Knowledge AI VLM August 28, 2026

VLM Basics: What a Model Actually Sees

A frame never reaches a vision-language model as pixels. Seven facts about images, JPEG, base64, vision encoders, and where VLMs still fall short, checked against a real evaluation pipeline.

VLM Basics: What a Model Actually Sees
Knowledge AI Evals July 20, 2026

Five Ways to Evaluate an AI System

Deterministic checks, reference-based metrics, LLM-as-judge, human review, and online feedback: what each one compares, and when to reach for which.

Five Ways to Evaluate an AI System
System Design Case Studies System Design Questions July 20, 2026

Malicious IP Detection

Requirements, QPS estimation, a hot/cold path split, and three deep dives: Bloom filter sizing, blacklist propagation, and layered detection.

Malicious IP Detection
Knowledge Backend WebSocket May 10, 2026

WebSocket Connection Manager

A WebSocket connection manager lets the backend remember who is connected, push to a specific user, broadcast to everyone, and clean up disconnected sockets.

WebSocket Connection Manager
Knowledge Backend WebSocket May 9, 2026

WebSocket Protocol Fundamentals

WebSocket starts as an HTTP Upgrade request, switches to a frame-based protocol, and keeps one TCP connection open for full-duplex realtime communication.

WebSocket Protocol Fundamentals
Knowledge Networking Foundations May 9, 2026

Network Layering Model

A compact poster explaining the TCP/IP five-layer model, where common protocols belong, how HTTPS travels through the stack, and how to debug network issues by layer.

Network Layering Model
Knowledge Backend FastAPI May 8, 2026

FastAPI Concurrency Implementation

How FastAPI actually runs sync and async routes: Uvicorn worker processes, one event-loop thread, AnyIO's thread pool, database pool sizing, and deployment traps.

FastAPI Concurrency Implementation
Knowledge Backend Concurrency May 8, 2026

Python Backend Concurrency Model

A Python backend concurrency cheat sheet: processes, threads, coroutines, sync versus async, the GIL, and how to choose between threads, async, and processes.

Python Backend Concurrency Model
Knowledge Networking Protocols May 7, 2026

TCP Handshake Basics

A compact note on how TCP opens with SYN, SYN-ACK, ACK and closes with FIN, ACK, FIN, ACK.

TCP Handshake Basics
System Design OOD Parking Lot May 7, 2026

Parking Lot OOD Basics

An entry-level object-oriented design note for a parking lot system, focused on vehicles, spots, and simple spot assignment.

Parking Lot OOD Basics
System Design OOD Interview Prep May 6, 2026

OOD Interview Answer Flow

A compact interview reference for structuring object-oriented design answers and explaining the four core OOP principles.

OOD Interview Answer Flow
Knowledge HPC GPU / PyTorch May 1, 2026

Distributed Data Parallel

A compact visual guide to DDP: full model copies, per-GPU batches, gradient all-reduce, NCCL, and when Forge should use DDP versus FSDP.

Distributed Data Parallel
Knowledge AI Agents April 22, 2026

Agent System Architecture

A simple overview of agent system architecture, the orchestrator and its four core components, LLM, tools, memory, and context engineering.

Agent System Architecture
Projects AI Agents April 15, 2026

Building a ReAct Agent

A small ReAct agent project that makes the reasoning-action-observation loop visible instead of hiding tool use behind built-in function calling.

Building a ReAct Agent
Knowledge AI Agents April 14, 2026

Agent Harness Overview

A sketch of how agent systems split responsibilities between the model and the harness around it.

Agent Harness Overview
Knowledge AI ML April 11, 2026

Attention Is All You Need

A sketch of the Transformer paper, with the main architecture pieces and a few key questions to keep in mind while reading it.

Attention Is All You Need
Knowledge Data Systems Redis April 8, 2026

Redis Overview

A compact Redis sketch covering data types, commands, cache patterns, and configuration notes.

Redis Overview
Projects AI RAG April 7, 2026

Native to Agentic RAG

A two-stage RAG project that moves from a local baseline to an agentic workflow with grading, routing, retries, and web fallback.

Native to Agentic RAG
Knowledge Tools Command Line April 2, 2026

Git Command Cheatsheet

A quick Git command cheatsheet covering repository setup, branching, status checks, commits, sync, and rollback basics.

Git Command Cheatsheet
Knowledge Tools Python April 1, 2026

Python Command Cheatsheet

A quick command cheatsheet for checking Python, managing virtual environments, handling packages, and running files or modules.

Python Command Cheatsheet
Knowledge AI RAG March 31, 2026

RAG Overview

A visual overview of retrieval, ranking, and generation flow in a RAG pipeline.

RAG Overview
Knowledge Messaging Event Streaming March 30, 2026

Kafka Overview

A quick structural sketch of brokers, partitions, consumer groups, and replication.

Kafka Overview
Projects Cloud AWS March 29, 2026

AWS Event-Driven S3 Cleanup System

A serverless workflow that tracks S3 bucket size over time, triggers cleanup when thresholds are reached, and generates a final plot from workflow history.

AWS Event-Driven S3 Cleanup System

Thanks for reading.

© 2026 Alan Wang