Building in Public

52 Weeks to
HFT Engineer

A Rust engineer's journey from frontend to low-latency trading infrastructure. One week at a time, building a full exchange from scratch.

Matching engine, binary protocols, SIMD optimizations, and everything in between. Every struggle documented. Every breakthrough shared.

Your week
—
Phase
—
Completed
—
Target role
Trading infra

Practice

Reading is the smallest part. These are where the weeks turn into skill.

The Roadmap

4 phases. 52 weeks. From zero to a production-grade exchange in Rust.

Phase 1Weeks 1-12

Foundation

Concurrency, Memory & the Core Engine

+

Rust ownership as design, Tokio and structured concurrency, cache lines and lock-free queues — then the core of the exchange: order book, price-time matching, order types, an event-sourced journal, market data and binary encoding, checked by property-based tests.

▸Rust's Ownership Model as a Systems Design Tool
▸Tokio Internals — The Runtime You Think You Know
▸Structured Concurrency — The Pattern That Defines Senior Tokio
▸Memory Layout, Alignment & Cache Lines
▸Lock-Free Queues Done Right
▸Order Book Data Structures
▸Price-Time Priority Matching
▸Order Types & Validation
▸Deterministic Event Sourcing
▸Market Data: Books on the Wire
▸Binary Encoding & Zero-Copy Parsing
▸Property-Based Testing & Engine v1
Phase 2Weeks 13-24

Production

Gateway, Protocols, Risk & Resilience

+

Make it real: a TCP order gateway, FIX, pre-trade risk and throttles, market-data fan-out, persistence and recovery, observability, clocks, failover, simulation — ending in an end-to-end exchange under load.

Phase 3Weeks 25-40

Performance

Measure, Profile, Then Go Fast

+

Measure latency honestly, profile with perf and counters, remove allocations, redesign the book for the cache, SIMD, core pinning and busy polling, kernel networking, io_uring and kernel bypass, seqlocks, schema codecs, sharding and specialization — then a performance sprint against hard targets.

Phase 4Weeks 41-52

Mastery

Markets, Strategies & Getting Hired

+

Market microstructure, a market maker and a pairs strategy against your own exchange, backtesting, real-time PnL and risk, capture replay, deployment and chaos testing — then system design and deep-dive interview practice, the portfolio, and launch.

All 52 Weeks

01Week 01Rust's Ownership Model as a Systems Design Tool
02Week 02Tokio Internals — The Runtime You Think You Know
03Week 03Structured Concurrency — The Pattern That Defines Senior Tokio
04Week 04Memory Layout, Alignment & Cache Lines
05Week 05Lock-Free Queues Done Right
06Week 06Order Book Data Structures
07Week 07Price-Time Priority Matching
08Week 08Order Types & Validation
09Week 09Deterministic Event Sourcing
10Week 10Market Data: Books on the Wire
11Week 11Binary Encoding & Zero-Copy Parsing
12Week 12Property-Based Testing & Engine v1
13Week 13Order Gateway: TCP Sessions
14Week 14FIX Protocol
15Week 15Pre-Trade Risk Checks
16Week 16Market Data Fan-Out
17Week 17Rate Limiting & Fairness
18Week 18Persistence & Recovery
19Week 19Observability Without Overhead
20Week 20Failover & Hot Standby
21Week 21Time and Clocks
22Week 22Configuration, Builds & Deployment
23Week 23Simulation & Integration Testing
24Week 24Exchange v2: End to End
25Week 25Measuring Latency Correctly
26Week 26Profiling: perf, Flame Graphs & Counters
27Week 27Allocation-Free Hot Paths
28Week 28Cache-Friendly Order Book II
29Week 29SIMD for Market Data
30Week 30Threads, Cores & Busy Polling
31Week 31Kernel Networking Costs
32Week 32io_uring & Batched I/O
33Week 33Kernel Bypass
34Week 34Lock-Free Structures II: Seqlocks & Epochs
35Week 35Schema-Driven Binary Protocols
36Week 36Multi-Instrument Engine
37Week 37Compile-Time Specialization
38Week 38Hot Path / Cold Path
39Week 39Tick-to-Trade Latency Budget
40Week 40Performance Sprint & Report
41Week 41Market Microstructure
42Week 42A Market-Making Strategy
43Week 43Statistical Arbitrage Basics
44Week 44Backtesting Engine
45Week 45Positions, PnL & Real-Time Risk
46Week 46Market Replay from Captures
47Week 47Production Deployment
48Week 48Chaos Engineering
49Week 49System Design Interviews
50Week 50Low-Latency Interview Deep Dives
51Week 51Portfolio & Documentation
52Week 52Launch & Retrospective

Why This Exists

The HFT industry is one of the most secretive in tech. The existing literature on computational and technical aspects is limited — most cutting-edge research in latency improvements, code efficiency, and cache optimization remains behind closed doors.

I'm building this resource because when I started looking for a structured path from “interested in trading systems” to “employable at an HFT firm,” it didn't exist. There were scattered blog posts, expensive courses, and academic papers with no practical bridge.

This is my attempt to create that bridge. Everything is in Rust — the language I believe will increasingly challenge C++ in latency-critical systems. Every week is documented honestly: what worked, what didn't, what I'd do differently.

If even one person lands an HFT interview because of this project, it was worth building in public.

Follow the Journey

New week published every Monday. Follow along via RSS or social.