3 ms·
I've been using Sinatra for a while and loving it. So much easier to understand your code than Rails imho. However I have one question- is there much to making
by tibbon 17y ago
I've been using Sinatra for a while and loving it. So much easier to understand your code than Rails imho.
However I have one question- is there much to making it scale? Not in a Twitter-like way, but I know there are a ton of books and documentation on making Rails work for larger sites. Does Sinatra hold up ok?
- jackowayed 17y agoI think it would be pretty simple and basically the same principle as for Rails. You could just have several machines with Passenger (or whatever) running your app on each and stick a load balancer in front of them. (Disclaimer: I've never actually scaled things, but it sounds like that's more-or-less how it's done.) Really, the hard part almost always ends up being scaling your database. And since Sinatra isn't super-glued to ActiveRecord (though Rails3 fixes that), it would be easier to use whatever NoSQL-type thing you wanted if you got to the point of needing to operate on a huge scale.
- dhotson 17y agoI believe you can scale it in much the same way you scale other Ruby frameworks... fire up a bunch of Thin webserver's and reverse proxy with varnish or nginx.