Hi.
Collect a small API server in Node, Express, Mongo. The question arose how best to organize the postponed publication?
For example, I create a document Article, and I want him to not immediately used by your app, and then when I indicate.
How best to do it to avoid unnecessary checks, queries, filtering, and so on?
The first thing on your mind is to specify the field PublishAt and there to specify the time, but then the server will have each post check once again before sending it to the client. But if such posts 100 pieces and 1000 visitors? Caching and so on it seems clear, but how to properly implement initially?