About this question
Hard · architecture & logic · Quant Developer interview question · ring-buffer, system-design, optimization, c++
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