Always found the first method of keeping bookmarks to the positions in a table to be the best method. I don’t think the 3 problems given to be an issue personally.
- just loop at the interval that your users can accept the delay
- querying a database 10 times a second is nothing, even 100 times, this wouldn’t cause resource limitations
- the scaling concern made no sense to me, seems a bit arbitrary.
Cool to know this is an option though, but I much prefer not relying on database internals like wal logs, this hurts scaling more IMO.
The only thing you need to worry about with the table method is out of order increment IDs, which is always possible in a transactional database. But there are many solutions for this.