674.142 링 버퍼(Ring Buffer) 패턴