• 0

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


Question

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...

5 answers to this question

Recommended Posts

  • 0

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).

  • 0

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.com/docs/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.

  • 0

^ 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.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Was it too much to ask to show the icon in this article?
    • Frankly, I blame whoever is writing such articles. "A big improvement/update and/or new feature is now available to everyone! Also, use this unofficial tweak tool to enable it because it actually isn't available to you yet officially and might not in fact even be entirely ready or whatever, hence why it is perhaps not enabled for you*. But it's great and you should enable it!" I mean there's nothing wrong with sharing info about some feature you might need to enable via unofficial means, of course. It's just that these articles tend to essentially end up being two news pieces in one, and one of them tends to be a bit misleading. (*Yes, yes, the "it's a controlled rollout!" thing. Not a fan of that one either. The argument, not the actual rollout.)
    • Thank you. Will do. I read in the release notes that editor config might be at play here.
    • Actually, I think even Microsoft doesn't know how to control it
    • OpenAI is making Codex more useful in Chrome and the cloud by Pradeep Viswanathan OpenAI's Codex now has more than 5 million users, up nearly 4x from earlier this year. To further accelerate Codex's growth among developers, OpenAI today announced that it has agreed to acquire Ona, a company that builds secure cloud execution and orchestration technology for developers. Ona will enable developers to run Codex with persistent and controlled cloud infrastructure for long-running agentic workflows. Right now, most Codex execution happens locally on developers' laptops and PCs, and the agents work continuously for hours. Through Ona, OpenAI aims to make Codex agents keep working for days without being tied to a user’s local machine or an active session. This will be an important capability for enterprises that want to deploy AI agents in production while maintaining control over infrastructure, data, security boundaries, credential scope, logging, and review workflows. Like any acquisition, the deal is still subject to customary closing conditions, including regulatory approvals. Until the deal closes, OpenAI and Ona will continue to operate as separate companies. After closing, Ona’s team will join the Codex team to improve developer workflows. Alongside the Ona acquisition announcement, OpenAI today introduced a few Codex updates. Developers can now save Codex rate limit resets and use them later instead of losing them when they are not needed immediately. OpenAI is also adding a referral option where users can invite a friend to Codex and get a saved rate limit reset. OpenAI today also announced a developer mode for browser use in Chrome and the Codex in-app browser. With this mode, Codex can use the Chrome DevTools Protocol to debug web apps, inspect pages, and work more directly with browser-based development workflows. Developers can use this when they want Codex to profile JavaScript, inspect console output and network traffic, examine web page states including the DOM and applied styles, and more.
  • Recent Achievements

    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
    • One Year In
      slackerzz earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      186
    3. 3
      +Edouard
      157
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!