About this question
Easy · systems · Quant Developer interview question · systems, low-latency, c++
High-frequency trading systems require minimal latency, making synchronous I/O operations like logging a significant bottleneck. To mitigate this, log messages are often buffered in memory and flushed asynchronously, separating the time-critical logging operation from the slower formatting and writing process. Task Implement the LatencyLogger class to buffer and format log messages efficiently. The class must provide the following public interface: - A constructor LatencyLogger(std::function<lo