News for hackers. Stuff that matters.
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 jrnkntl on Monday July 04, 2011 @12:48PM (#2727001)
Thanks for the RABL reference (https://github.com/nesquena/rabl), interesting stuff, perfect timing for one of my projects.
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).

Good luck! I hope it brings you success.

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 hello_moto on Monday July 04, 2011 @12:32PM (#2726947)
Because they are engineers working on their own things with no red-tape?
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and... by alain94040 on Monday July 04, 2011 @02:22PM (#2727321)
You could start with sharing how many instances you had at the peak, that would be useful.
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and... by sgerrand on Monday July 04, 2011 @08:04PM (#2728231)
Agreed. More details on if and how automatic scaling was implemented would be good too.
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and... by stuartkhall on Monday July 04, 2011 @10:35AM (#2726633)
Thanks for the feedback, i'll try and cover all that in a future post.
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 akanet on Monday July 04, 2011 @11:37AM (#2726791)
Linkbait; there's nothing here about either scaling or an iPhone app.
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 coffee on Monday July 04, 2011 @12:25PM (#2726913)
Agreed, really would like to see more technical information about this. A deeper dive is preferred...
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 beck5 on Monday July 04, 2011 @11:39AM (#2726799)
I see the EC2's are in different regions but not the RDS, can you choose which region your put your RDS in or is that not a factor?
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.
Re:Scaling a Rails Webservice on AWS/EC2 for a #1 iPhone and... by azolotov on Monday July 04, 2011 @11:34AM (#2726788)
rl baoo