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.

Current Week
3
Phase
Foundation
Completed
2 / 52
Target Role
Trading Infra

The Roadmap

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

Phase 1Weeks 1-12

Foundation

Core Engine & Data Structures

+

Build a matching engine from scratch. Order books, lock-free queues, memory-mapped I/O, and the fundamentals of exchange architecture.

Order book data structures
Price-time priority matching
Lock-free ring buffers
Memory layout & cache optimization
FIX protocol basics
Market data feed handlers
Benchmarking with criterion
Zero-allocation hot paths
Type-safe order types
Unit & property-based testing
Error handling patterns
Project scaffolding & CI
Phase 2Weeks 13-24

Production

Networking, APIs & Resilience

+

Make it real. HTTP REST APIs, WebSocket streaming, rate limiting, authentication, graceful degradation, and operational tooling.

Phase 3Weeks 25-40

Performance

Low-Latency & Binary Protocols

+

Go fast. Binary TCP protocols, SIMD optimizations, kernel bypass concepts, multi-asset support, and the techniques that separate toy projects from production HFT systems.

Phase 4Weeks 41-52

Mastery

Strategy, Risk & Production Readiness

+

The complete picture. Trading strategy integration, risk management, backtesting, deployment, monitoring, and preparing for real interviews.

All 52 Weeks

Week 01Order Book Fundamentals
GuideJournal
Week 02Price-Time Priority Matching
GuideJournal
Week 03Memory Layout & Alignment
GuideIn Progress
04Week 04Lock-Free Ring Buffer
05Week 05Market Data Feed Parser
06Week 06FIX Protocol Decoder
07Week 07Benchmark Harness Setup
08Week 08Zero-Alloc Hot Path
09Week 09Order Types & Validation
10Week 10Property-Based Testing
11Week 11Error Propagation Patterns
12Week 12Engine Integration v1
13Week 13Axum HTTP Server
14Week 14REST API Design
15Week 15WebSocket Streaming
16Week 16Real-Time Book Updates
17Week 17Token Bucket Rate Limiter
18Week 18API Key Authentication
19Week 19Graceful Shutdown
20Week 20Circuit Breaker Pattern
21Week 21Structured Logging
22Week 22Prometheus Metrics
23Week 23Health & Readiness
24Week 24Docker & CI Pipeline
25Week 25Binary Protocol Design
26Week 26TCP Tuning & Nagle
27Week 27Message Framing
28Week 28Snapshot Protocol
29Week 29io_uring Async I/O
30Week 30SIMD Price Math
31Week 31Cache Warming Impl
32Week 32Compile-Time Dispatch
33Week 33Binary Client Reference
34Week 34Full Binary Integration
35Week 35Multi-Asset Engine
36Week 36Cross-Market Routing
37Week 37Flame Graph Profiling
38Week 38HDR Latency Histograms
39Week 39Memory Allocator Tuning
40Week 40Performance Regression CI
41Week 41Stat Arb Foundations
42Week 42Pairs Trading Engine
43Week 43Risk Management Core
44Week 44Position & PnL Tracker
45Week 45Backtesting Framework
46Week 46Market Replay System
47Week 47Kubernetes Deployment
48Week 48Chaos Engineering
49Week 49System Design Practice
50Week 50Interview Deep Dives
51Week 51Portfolio & Docs Polish
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.