🎉 October Learning Month — learn a new software term every day!
An interactive flashcard trainer for software engineering terms.

Circular Buffer

In plain terms

A fixed-size buffer that wraps around when full.

Going deeper

A circular (ring) buffer reuses a fixed array by wrapping the write position to the start, ideal for streaming data with bounded memory. Old data is overwritten as new arrives.

Under the hood

Constant-time, allocation-free enqueue/dequeue; common in producer-consumer and real-time systems where bounded latency matters.

Examples

Audio/video streaming, logging, network packet buffers, embedded systems.

Think of it like...

Like a revolving sushi belt: when it loops around, new plates replace the oldest.

Feedback & Bug Report