Engineering Blog

Engineering Blog & Technical Articles

Practical engineering deep dives, production war stories, tutorials, and architecture lessons from building high-throughput systems in Rust.

Featured Blog Post
14 MIN READ •

Eliminating the Python GIL: Migrating a 240,000 req/s Matching Engine to Rust with PyO3 and Apache Arrow Without a Full Rewrite

An architectural breakdown of an incremental production migration. We examine how introducing foreign function interfaces with zero-copy buffer sharing between Python processes and Tokio task worker pools dropped 99th-percentile jitter by 98.4% and reclaimed $420k in cloud computing overhead.

P99: 240ms → 3.8msTHROUGHPUT: 240K REQ/S-76% MEMORY

All Blog Posts

SHOWING 6 OF 6 POSTS
CONCURRENCY & ASYNC 11 min read

Demystifying Rust's Pin and Unpin: Why Self-Referential Structs Require Heap Pinning

A definitive manual explaining the memory safety mechanics behind std::pin::Pin and why moving an async generator in memory corrupts internal pointers.

Read post →
HARDWARE & CACHE 8 min read

Benchmarking Cache-Line Alignment in High-Frequency Orderbooks

Demonstrating how 64-byte atomic counter alignment eliminated false sharing between worker threads and saved 30% in L3 cache misses.

Read post →
SYSTEMS ARCHITECTURE 16 min read

Zero-Copy IPC Over Shared Memory in Rust: Passing 100GB/s Between Microservices

Architectural blueprints for POSIX shared memory ring buffers with lock-free atomic queues when TCP and Unix domain sockets become bottlenecks.

Read post →
SAFETY & VERIFICATION 9 min read

Writing Custom Miri Tests: Catching Subtle Undefined Behavior in Unsafe Rust

Stacked Borrows vs Tree Borrows in modern rustc. Automating CI pipelines to detect out-of-bounds pointer arithmetic before production release.

Read post →
CONCURRENCY PATTERNS 13 min read

Building Async Actor Systems in Pure Rust Without Heavy Frameworks

Constructing composable, backpressure-aware actors using Tokio mpsc bounded channels, CancellationToken, and graceful shutdown loops.

Read post →
PERFORMANCE & COMPILERS 10 min read

SIMD JSON Parsing at 4GB/s in Rust with portable_simd on x86-64 and ARM

Parsing 100,000 JSON payloads per second per core by utilizing vector registers to identify structural characters in parallel.

Read post →