The oplog tailing setup
The oplog tailing is again another aspect of making MeteorJS applications faster. Firstly, let's understand what is oplog tailing and then we'll discuss how to use it with MeteorJS applications.
To discuss oplog tailing, we have to know the MongoDB replica set. When running applications in production, it is common to have more than one databases process as a backup. One of them will be a primary process and the rest will be secondary processes. Write happens to the primary process from the application and the data is then copied to the secondary processes. How do secondary processes copy the data? It doesn't simply copy the entire primary database on every interval. This is where operation logs, called oplogs, come into the picture.
Whenever there is a change in the data, the operation log will keep track of it. The secondary processes copy these operations and update themselves. This oplog can serve as an important optimization factor for a MeteorJS application and...