I was wondering which is the best approach to inserting data into the mongodb used by a meteor application. The use case is this:
I will crawl some websites for information including a rss feed about once or twice per hour. If I have new articcles (which I need to check in the Meteor mongodb) I will add these.
My alternatives are:
Setting up some REST-like method inside the Meteor app which handles a new content (checking if it is really new and adding it to database).
Having only the NodeJs apps fully outside meteor except access to the meteor database, inserting new content (and checking for old) every time it is run.
Having some cron-like job inside Meteor which does the fetching of content/rss and inserts into Meteor mongodb.
Which approach would you use and why? Is it hard to connect to the mongodb instance from external nodejs apps?