SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    RoR for large scale community website?

    Hey folks, I've only recently started researching on RoR as a possible framework for a large scale website - the initial candidate was PHP which I know my way around - but the project being quite complex and extensive made me wonder if RoR wouldn't be better? My main preoccupation is speed and control, can RoR handle heavy loads? and will it give me as much control over the website as PHP?

    The framework/language of choice would have to be fast enough to handle many users (like a forum), work well with AJAX, be as low-level as PHP, easy to maintain and upgrade. Can RoR handle more than the typical CMS?

    examples would be www.last.fm or www.facebook.com

    ...And if I needed to embed C code, would that be possible? howbout interfacing with a PHP script?

    cheers

    Alex

  2. #2
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rails is probably fast enough, works well with Ajax, is much higher level than PHP (which is good), is easy to maintain and upgrade.

    But maybe you should try out Django (build with Python). I think it's better for this kind of application.

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Fenrir2 View Post
    But maybe you should try out Django (build with Python). I think it's better for this kind of application.
    For social networking sites? I think Rails is better there and Django is more suited to heavy-content sites.

    As for whether Rails can handle a last.fm type load, why not take a look at http://mog.com/ which is almost exactly the same thing but written in Rails. Seems to handle its thousands of users and constantly updating data just fine.

  4. #4
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    North America
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you know how myspace gives user the ability to change layouts via css, is that possible through RoR?

  5. #5
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by thebillionaire View Post
    you know how myspace gives user the ability to change layouts via css, is that possible through RoR?
    It's possible for any site if you build in the functionality. http://mog.com/ is done in Rails and allows for custom layouts (but it can be a little more complex than typing CSS into some random field like Myspace).

  6. #6
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Liquid templates are interesting: they provide a safe and simple way for users to write their own templates.

  7. #7
    SitePoint Member
    Join Date
    Dec 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the replies! I'm seriously considering RoR, been trying out Ruby a bit, it seems like quite a nice language - mog.com seems like a good demonstration of RoR. I think I might try it out on a smaller but similar project first, just to see if it suits me.. I'm just a bit worried about losing too much control over the code..

    Any PHP->RoR switchers here?

  8. #8
    SitePoint Wizard silver trophy Bleys's Avatar
    Join Date
    Feb 2003
    Location
    RI-USA
    Posts
    5,621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just to chime in www.43things.com (etc) is another large social site built with rails. The Robot Co-op guys put up a post last october about their server setup that you may find helpful for deciding how to attack your project:

    http://www.robotcoop.com/articles/20...runs-our-sites
    Josh is an anomaly
    rails & work & twitter

    Organization is the
    death of creativity.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •