4 ms·
Two independent concurrent writers will constantly conflict on sequence numbers. This will force both to call LastRecord() for practically every append.
by ipv6ipv4 2y ago
Two independent concurrent writers will constantly conflict on sequence numbers. This will force both to call LastRecord() for practically every append.
- oefrha 2y agoForget about independent writers, Append() isn’t thread-safe (as in there’s no locking on .length; there’s no data race) so you’ll get constant conflicts with two goroutines logging to the same writer.
- ipv6ipv4 2y agoThe writeup mentions multiple writers in a couple places but it doesn't really specify how, or where. The writers could be in different processes or on different machines.
- oefrha 2y agoYeah, I’m saying it doesn’t even handle in-process concurrent writes very well, let alone distributed ones.