1

I'm working on my second Craft project ever. (First was an ultra-simple site just to learn the basics.)

With this new project I need to accomplish 2 things...

(1) - Private - Import/aggregate mass data from external sources based on my specific search parameters (think YouTube, CNN, BBC, Instagram, Reddit, Imgur, Pinterest, etc). Then slice, dice, curate, categorize, headline, and editorialize that data to create content-rich, topical feeds.

(2) - Public - Present those content-rich feeds as dense Topical Resources for my website visitors.

Craft is a brilliant solution for building a robust (and lightning fast) Public front end.

But based on how Craft operates underneath the hood... What's the Best Practice for managing the Private raw data behind the scenes?

Is it smarter to have ONE Craft Install with one DB - and separate tables for the imported (but not yet published) data?

OR

Is it wiser to do TWO entirely separate Craft Installs - one for the Private back-end work (importing, compiling, editing, building newly curated feeds) - and another to grab and serve the Public (post-curation) results?

1

I'm not sure why you would do two different servers.

Your front end can be cached with Blitz / NGINX which will take a load off the server and admin.

How often are you aggregating the data?

I've just imported 10k records from a source and I would recommend writing your own module to handle the imports as commands. From there you could set up a cron which would run at a scheduled interval. These commands wouldn't run via the web server so you wouldn't be restricted to memory / timeout limits.

| improve this answer | |
  • Thanks Leevi. Not two servers - one beefy server with multiple Craft installs (if necessary). As for importing data... most feeds run only once or twice a day, with perhaps 3 feeds running as often as every 2-3 minutes. Incidentally, those frequent feeds may have as many as 5K-6K record updates each time. I'm cool with writing scripts and using cron for imports, but wasn't sure how wise it would be to write/overwrite this kind of bulk data into the Craft DB from outside Craft (especially with such frequent 24/7/365 updates). – JJ. Apr 29 at 5:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.