Knowledge base online

Build the judgment
behind the answer.

A focused engineering workbench for system design, coding patterns, engineering field notes, and production lessons.

73CORE NOTES
344DAILY DIGESTS
07KNOWLEDGE TRACKS
KNOWLEDGE_GRAPH.V1LIVE
COREENGINEERING
JUDGMENT
01SYSTEMS
02CODE
03FIELD
NOTES
04SIGNAL
DEPTH > MEMORIZATIONUPDATED CONTINUOUSLY
Portrait of Yao Xiao

Founder & Technical Writer

Yao Xiao

Staff Software Engineer
at Uber

LinkedIn

THE PERSON BEHIND SYSTEM CRAFT LAB

I build platforms and write about the engineering decisions behind them.

My work spans storage, streaming, logistics, and advertising systems. System Craft Lab brings that perspective to system design, AI fundamentals, and practical engineering guides.

Previously at Coupang · DoorDash · eBay · Microsoft · Amazon

Read my field notes

Independent publication. Views are my own.

CURRICULUM / 07 TRACKS

Choose your learning vector

Move through a track or cross-link ideas as your interview loop demands.

LIBRARY / RECENTLY ADDED

Continue exploring

View searchable index ↗
Coding

User Log Qualification and Purchase Trust Scores

Find users active across selected days, score new purchases with exact percentage bands, and maintain the same profiles as logs arrive.

hash-tableaggregationstreaming
System Design

Design an End-to-End Encrypted Messaging Platform

Design reliable chat with conversation ordering, durable device inboxes, group fanout, multi-device encryption, and bounded offline recovery.

system-designmessagingdistributed-systems
AI Foundations

Experiment Records, Version Control, and Reproduction

Preserve the inputs, code, configuration, environment, and outputs behind an AI result, then verify and replay a small recorded experiment.

artificial-intelligenceexperimental-practicereproducibility
Coding

Random Values from a Dictionary: Frequency and Distinct Sampling

Implement a mutable dictionary with constant-time random sampling, then adapt it to sample distinct values uniformly, with tested Java and Python solutions.

hash-tablerandomizationdata-structures
Engineering Field Notes

TCP's Three-Way Handshake: State, Latency, and Failure

Understand why TCP needs three handshake messages, how sequence numbers and listener queues work, and how connection setup behaves under loss and load.

networkingtcpconnection-management
AI Foundations

Randomness, Repeated Experiments, and Result Variation

Separate reproducibility from stability, measure variation across declared repeats, and compare paired outcomes in a runnable NumPy experiment.

artificial-intelligenceexperimental-practicereproducibility