(a) don't do it
(b) ok, do the embarrassingly parallel stuff
(c) you can just use one big lock instead of writing async code
(d) global mutable state? sounds like you need a database
(e) fine grained locks? you are writing a specialised database, read a textbook
(a) don't do it
(b) ok, do the embarrassingly parallel stuff
(c) you can just use one big lock instead of writing async code
(d) global mutable state? sounds like you need a database
(e) fine grained locks? you are writing a specialised database, read a textbook
1. Publish lsn 1
2. Publish lsn 2
3. Crash (before flushing offset)
4. Read offset
5. Publish lsn 1 and 2 again
The topic now contains 1, 2, 1, 2
What am I missing?
1. Publish lsn 1
2. Publish lsn 2
3. Crash (before flushing offset)
4. Read offset
5. Publish lsn 1 and 2 again
The topic now contains 1, 2, 1, 2
What am I missing?
I'll spend my days doing that work with intentionality.
I'll spend my days doing that work with intentionality.