About this question
Easy · low_latency · Quant Developer interview question · data-structures, design, arrays
Low-latency logging is critical in high-frequency trading systems to monitor execution paths without introducing jitter or garbage collection pauses. A circular buffer, or ring buffer, enables constant-time writes and fixed memory usage by overwriting the oldest data when capacity is reached. This data structure ensures that the most recent market events or debug information are always available for post-mortem analysis while maintaining deterministic performance. Task Implement a RingBufferLog