When that's the case, a ring buffer is a great choice. It's not required, though - the writer could block when it detects a full buffer.