Jump to content



Photo

PHP PSR-0 or Ruby on Rails for new project?


  • Please log in to reply
5 replies to this topic

#1 +Matthew S.

Matthew S.

    What the what

  • Tech Issues Solved: 2
  • Joined: 15-December 05
  • Location: Georgetown, ON
  • OS: Windows 8.1 / Mac OS X 10.9.x iOS 7
  • Phone: iPhone 4S

Posted 23 February 2013 - 12:10

So I'm working on a couple of projects right now, one happens to be a Social type site for local music artists.

I've been toying around with Laravel 3 and in the past played with Ruby on Rails back when it was version 2.

I like what Laravel brings to the PHP world with it's class autoloader and it's ORM but my question is how will it hold up to the task of having to deal with thousands upon thousands of hits per day? and same with RoR?

Keep in mind I'm more comfortable in PHP than I am Ruby...


#2 ZakO

ZakO

    Neowinian

  • Tech Issues Solved: 2
  • Joined: 21-September 07
  • Location: Finland

Posted 23 February 2013 - 12:56

At work we have web applications written in Ruby on Rails 3 using redis for caching which easily serve 5,000,000+ hits/day (page, not unique) hosted on a single 2.8GHz Quad Xeon, 16GB RAM server. The only site we have written using the Laravel framework gets 750,000+ hits/day and handles it fine.


Both will scale as long as you write your code with scalability in mind (e.g. potential to cache expensive queries, ability to split the application across load-balanced servers, etc). Pick the one you're most comfortable with, I much prefer Ruby to PHP so usually I go with Ruby on Rails. Remember though, don't worry too much about premature optimization because most sites never take off, you can always spend time optimizing the code base once the site starts getting a lot of traffic (if ever).

#3 Uplift

Uplift

    Just below average Joe

  • Tech Issues Solved: 1
  • Joined: 07-May 04
  • Location: England

Posted 23 February 2013 - 15:32

If your comfortable with PHP go with Laravel, i've been playing with it and have fallen in love... there is no reason why Laravel can't handle your requirements, i'm rebuilding my high traffic site in Laravel.

Skip Laravel 3 though: http://four.laravel....cs/installation

Laracon is this weekend and they are announcing the official release of L4.. i'd imagine it's going to come this weekend, or in a couple of days, so just run the beta, it will be easier to upgrade from 3->4.

If you have a spare few quid jump on tutsplus.com and start their laravel and 'whats new in laravel 4' courses.. they're both pretty good.

#4 OP +Matthew S.

Matthew S.

    What the what

  • Tech Issues Solved: 2
  • Joined: 15-December 05
  • Location: Georgetown, ON
  • OS: Windows 8.1 / Mac OS X 10.9.x iOS 7
  • Phone: iPhone 4S

Posted 24 February 2013 - 05:06

^ Already done that, that's what originally turned me to Laravel :p

@ZakO: I have no plans for immediate optimizations and I understand that the site may not take off. (the 100's upon 100's of hits per day is wishful thinking lol).

I'm probably going to go with L3 for the time being and than once L4 has been out for awhile I'll switch to it. I'm also writing a hosting control panel (I need one specific for my needs and for my clients needs) thats based on Laravel.

#5 Uplift

Uplift

    Just below average Joe

  • Tech Issues Solved: 1
  • Joined: 07-May 04
  • Location: England

Posted 24 February 2013 - 15:01

Larvel 4 won't have an official release until May.. :(

So much for 'early 2013'

Although it's still very much usable.

#6 OP +Matthew S.

Matthew S.

    What the what

  • Tech Issues Solved: 2
  • Joined: 15-December 05
  • Location: Georgetown, ON
  • OS: Windows 8.1 / Mac OS X 10.9.x iOS 7
  • Phone: iPhone 4S

Posted 24 February 2013 - 18:13

Well that's just uplifting >.>



Click here to login or here to register to remove this ad, it's free!