Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The 14 pains of building your own billing system. Parent comment
Remove old entries, keep a large margin of old entries. Append new records to the file. Use a counter. (Make it 64 bit if you are paranoid.)
On the "receiver" end, keep track of what you last saw. Could be as simple as keeping track of the counter.
Add only records you never saw before.
Process new records.
There are of course nowadays so many better ways, but "real" and stable systems have been built with such duct tape.
There are no comments on this comment yet.
Remove old entries, keep a large margin of old entries. Append new records to the file. Use a counter. (Make it 64 bit if you are paranoid.)
On the "receiver" end, keep track of what you last saw. Could be as simple as keeping track of the counter.
Add only records you never saw before.
Process new records.
There are of course nowadays so many better ways, but "real" and stable systems have been built with such duct tape.