2 ms·
> Of course, there would be some complexities around handling read position as lines are being rotated out from under you. that seems solvable to me, but multi
by naikrovek 4y ago
> Of course, there would be some complexities around handling read position as lines are being rotated out from under you.
that seems solvable to me, but multiple simultaneous readers... that seems like it might be a bit more challenging...
- speed_spread 4y agoOnly allow sequential reads. Each reader gets it's own cursor. If writer catches up to slowest reader (buffer full) it bumps it up before it writes. Clients can query current cursor position to know if they've been bumped. Or something like that.