Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by jherdman on Monday July 04, 2011 @10:31AM
(#2726621)
I was really hoping for a bit more meat in this article. Perhaps some discussion on their caching strategy, or how they're building their JSON (i.e. traditional model-based #to_json approach, or something along the lines of Rabl).
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by jherdman on Wednesday July 06, 2011 @09:59AM
(#2733912)
I'm using this on a project right now and am finding a lot of successes derived from its use. We tried to build our JSON in the model using the traditional #to_json/#as_json approach in Rails, but found this was falling on its face when our data model became more complex (which, itself, is probably a code smell, but that's another story).
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by bgentry on Monday July 04, 2011 @10:49AM
(#2726672)
Agreed, not much to look at here. I would also be interested in hearing why they decided to roll their own platform instead of using a PaaS, given the small team size.
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by flexd on Monday July 04, 2011 @11:11AM
(#2726731)
Why would you actually go with Rails compared to a smaller framework? If all they are serving is JSON wouldn't something like Sinatra be better? Less fancy stuff they probably don't use anyway?
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by tomkarlo on Monday July 04, 2011 @07:02PM
(#2728124)
This article doesn't really bring anything new to the table - folks have been using this setup for a long time. They could at least talk about how they're managing deployment and scaling under high loads (manual? automated?), or how they're splitting the DB requests between the master and the slave under Rails.
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by donny on Monday July 04, 2011 @11:50AM
(#2726824)
According to the picture; does it mean that you have 4 instances (Rails) serving all traffic? I know that you can scale it horizontally. But, at the moment, is 4 the real number?
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by thematt on Monday July 04, 2011 @09:10PM
(#2728339)
This scales well for reads, but not for writes. The single MySQL instance is still handling all writes and (in it's current form) will have to be scaled vertically.
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and...
by SpikeGronim on Monday July 04, 2011 @11:51AM
(#2726830)
To clarify they said "availability zones", not "regions", which is a huge difference in terms of latency. And yes, you can tell RDS which availability zone to use.
Good luck! I hope it brings you success.