raphael_turtle
raphael_turtle

Reputation: 7314

Saving a json file on Heroku

I have a simple sinatra app on Heroku which fetches some json data and is then fetched again and rewritten every 10 minutes, what would be the easiest way to save the json data?

Should I use S3 or mongodb or is there a simpler option?

Upvotes: 0

Views: 1968

Answers (2)

Mike Vormwald
Mike Vormwald

Reputation: 2310

I think the easiest route is to save your json using Heroku's free 5mb memcached plugin (use the dalli gem),

This link describes setting up a sinatra app with memcache

Again, I think that is going to be your least complicated approach.

Upvotes: 0

mipadi
mipadi

Reputation: 411022

I think writing into a database (mongodb or other) would be your best bet. It's simplest to set up on Heroku.

Upvotes: 2

Related Questions