Low-Latency Async Logger - Quant Developer Interview Question
Difficulty: Hard
Category: architecture & logic
Asked at: Jump Trading, Tower Research, Optiver, IMC, HRT
Topics: ring-buffer, system-design, optimization, c++
Problem Description
Low-latency logging is essential in high-frequency trading systems to minimize execution jitter while preserving detailed audit trails. By utilizing a fixed-size ring buffer, an asynchronous logger allows the hot path to write data deterministically without blocking for I/O or memory allocation. This separation of concerns ensures trading strategies remain performant while background processes handle string formatting and storage.
Task
Implement a class AsyncLogger that manages a fixed-size cir
Practice this hard developer interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.