Comment

Comment by truth_seeker

IMO An open cursor of Change Stream with Aggregation pipeline (for given use-case) in MongoDB is more flexible solution to achieve this functionality.

In addition, it also tracks the history of changes and hence allows the cursor to go back if needed with "resumeToken"

https://docs.mongodb.com/manual/changeStreams/

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton