387 karma · joined November 5, 2016
How is this avoiding data loss if the lead sequencer goes down after acking but without the replica receiving the write?
That row indicates you are the one processing the data and no one else should. When reading, abort the read if someone else wrote that row first.
When you are finished processing, hold the lock and update the row you added before to indicate processing is complete.
The timestamp can be used to timeout the request.
I don't understand why replication would need a backwards seek - are you saying it doesn't and he is mistaken on that?
His code here demonstrates why. It is both shorter and much easier to understand than anything the LLMs generated. It is not always as efficient as the LLMs (who often skip the third loop by calculating the last factor), but it is definitely the code I would prefer to work with in most situations.
[1] https://www.udacity.com/course/design-of-computer-programs--...
"The ability to play chess is the sign of a gentleman. The ability to play chess well is the sign of a wasted life."
https://kafka.apache.org/11/javadoc/org/apache/kafka/clients...
You have forgotten how to focus. We live in a world where we are constantly distracted. This is forced on us. The apps we use compete over our attention, our workplace expects quick replies over Slack, our free time is always accompanied by a smart phone pushing us notifications.
These effects are getting stronger. Technology evolves new attention taking techniques. Our remote work culture expects faster replies as you are, in theory, always at your desk.
You can address this focus deficiency, but it isn't easy. Put your phone always on Do Not Disturb. Use site blocking extensions to limit time wasters (yes, even Hacker News). Stop being so responsive at work.
The first few weeks will hurt. You won't instantly be able to focus, and you will feel less productive due to the lower response time. But after some time, you will be able to do work others cannot. You can complete the big work you are struggling to right now. Relearn how to focus.
This one is entirely different, and attacks the initialization code directly. This code has no restrictions on its ability to access memory, allowing a full dump.
Great method.
I spent $43.97 (which included shipping) for the Optiplex, added a 2 port NIC for $16.37, and it's been running my house great since then.
It was interesting to see the author work through the major obstacles one by one when writing a quine. Glad they didn't take the actual boring route!
Kafka is often used for financial applications that must not miss events, so having a backup buffer is a reasonable strategy for those use cases. Things like tracking data is likely not worth backing up due to high data volume and low external visibility when data is dropped.
e.g. I can write hosts = 100; disk_space_used = 10MiB/s * hosts * 3 days as TiB
And it works as expected. Powerful tool when doing capacity planning or other load calculations.