Hey Ben, FWIW I built CommitTo3.com (thanks to all the help and support from this group especially Xavier Lange and Jarod Overson, SDJS and the database class you led) as a rails app that servers an API to a Backbone web client and a native iOS client. I'm not using the rails API gem and yet the server is holding up without a sweat serving at times up to 300 requests per minute with just one Heroku dyno. In short, I'm not having a problem with overhead even though I'm using the full rails framework to essentially serve just the API (and a couple Devise views.) Hope sharing this is helpful!
Best, John > On Jan 17, 2015, at 5:44 PM, Benjamin Wanicur <[email protected]> wrote: > > Howdy Everyone > > I am building a pure JSON API in Ruby. I have done this before using > Sinatra, however, it was a very simple API. And even then, I found myself > missing or adding back several pieces of the Rails stack that I took for > granted. So, let me just say I am aware of that draw back for Sinatra. > > I have never used the Rails::API gem, but I have heard good things. I would > love to heard feedback from people who have experience with the Rails::API > gem. Has it worked well for you in this situation (JSON API) ? Any big > drawbacks or gotchas to watch out for ? Also, I'd be interested in hearing > alternatives to using Rails::API if anyone thinks there is something much > better for this purpose. > > The reason I am not just using plain old Rails is that I will not be using > the view layers or helpers at all and it seems a bit wasteful / overkill for > a pure JSON API. > > Thanks for your time! > > Ben Wanicur > -- > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby > --- > You received this message because you are subscribed to the Google Groups "SD > Ruby" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby --- You received this message because you are subscribed to the Google Groups "SD Ruby" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
