Cache Refresh Optimization Retrospective

How I reduced network costs and enabled instance downscaling by switching from full cache refresh to incremental refresh for campaign configuration data.

January 15, 2024 · 3 min read

Optimistic and Pessimistic Locking

A transaction gives atomicity, a lock gives serialization — they aren’t substitutes. How pessimistic and optimistic locking cover the Lost Update that an isolation level’s plain reads don’t, and how to choose between them.

October 1, 2023 · 6 min read

What Isolation Levels Actually Prevent

A transaction isolation level is a policy choice about which anomalies to allow. The anomalies each ANSI level prevents, and how InnoDB’s MVCC and Repeatable Read behave differently from the standard.

September 15, 2023 · 7 min read

What RDB Transaction ACID Actually Guarantees

What each of the four ACID properties actually guarantees in an RDB transaction. A/C/D are relatively clear guarantees, but only I has ’levels’ — the gateway to the correctness vs. concurrency trade-off.

September 1, 2023 · 4 min read

Two-Layer Control Loop for Ad Budget Pacing — Retrospective

A retrospective on moving ad budget pacing from a fixed-rule scheme to a two-layer control loop — per-campaign learning sets the baseline, real-time correction absorbs drift.

August 21, 2023 · 3 min read

rust-server

A record of implementing the multithreaded HTTP server from Rust Book Chapter 20, experiencing how ownership and concurrency safety are enforced at the type level.

March 13, 2022 · 4 min read

TCP and UDP

Two transport protocols that backend developers encounter constantly. A summary of TCP and UDP — connection establishment, reliability guarantees, flow/congestion control mechanisms, and selection criteria.

March 1, 2022 · 11 min read

The OSI Model as Working Vocabulary

L2 switch, L3 routing, L4/L7 load balancer — where the layer numbers attached to everyday networking terms come from. How the OSI model maps to TCP/IP, and what each number refers to.

February 14, 2022 · 6 min read

SwapDo Startup Story

SwapDo, a deepfake-based face synthesis meme service. A record of five months as a developer and team lead in a startup team.

July 1, 2021 · 4 min read