Slashdot Mirror


Large Scale Web Apps Built on Open Source

prostoalex writes "Brad Fitzpatrick presented at OSCON with on overview of his little project. Interesting facts about the evolution of the Livejournal back-end architecture."

29 of 213 comments (clear)

  1. Salesforce.com by Anonymous Coward · · Score: 4, Informative

    It's all LAMP.

    1. Re:Salesforce.com by Anonymous Coward · · Score: 4, Funny

      Hypothetically, if Microsoft ported IIS to Linux, could you actually then run LIMP?

    2. Re:Salesforce.com by starling · · Score: 3, Funny

      ...leveraging...integrated...client/service architecture...enterprise-class...industry leading..

      BINGO!!!

  2. Typical Livejournal by Anonymous Coward · · Score: 5, Funny

    OMG! Today I had CEREAL!!!!!

    With MILK!!!! OMG!!

    1. Re:Typical Livejournal by Anonymous Coward · · Score: 5, Funny

      How true

      From link --
      speakin of french and korea did u no they both opposed the war in iraq? 1 is a comunist country and the othr is a no-fight-anytime country. mabye there in this 2gethr to squash the american gold medals an make ppl think there strong! HEY KOREA WE BLEW U UP IN WW2 W/ TEH ATOM BOMB WE'LL DO IT AGAIN. an french ppl suck.

    2. Re:Typical Livejournal by seanmeister · · Score: 4, Funny

      Brad Fitzpatrick apparently agrees with your take on LJ, judging from the sample user data shown on page 24 of the presentation:

      OMG i like totally hate my parents they just dont understand me and i h8 the world omg lol rofl *! :^- ^^; add me as a friend!!!
    3. Re:Typical Livejournal by MC+Negro · · Score: 5, Funny

      Haha. This part got me here --

      without a doubt Jesus would've been the best president ever. When he was only 12 years old he went to the temple to preach to the Jews and was just amazing everyone. Think how much better the U.S.A. would be if Bill Clinton wasn't Bill Clinto but instead was Jesus? Do you think we'd be fighting a way? NO!! We'd all be loving each other because thats what Jesus was about! LOVE! There isn't enough love in the world! Jesus would also be great because hes not only the son of god, HES A PRINCE OF PEACE!!! Hed probably do things differently. Even George W Bush could learn from Jesus (and thats why George W Bush is a christian and we need to keep him in office!!)

      LiveJournal -- Convincing teenage girls that someone cares about what they have to say since 1999.

      --
      "You and your third dimension."
    4. Re:Typical Livejournal by RazzleFrog · · Score: 3, Insightful

      You left the best part out. She was upset because she got a D on the paper (from which that came) and she thinks she is a good writer. Her explanation, of course, is not that she has a greatly inflated opinion of her abilities but that he teacher is anti-Christian.

      We laugh about this but the really scary part is that there are a lot of people who think like her. People hate Bush so much because of the war but I am much more scared about his connection to the zealots of the religous right. The war in Iraq will end someday but these zealots will continue to try to take control of this country.

    5. Re:Typical Livejournal by RazzleFrog · · Score: 3, Insightful

      A zealot would be somebody who blames their problems on somebody else's religion or lack of religion which is what this girl did. If you read what she posted of that essay I think even the most religous among us would still be generous giving her a D.

      And the right likes to call the left communists. Calling them zealots wouldn't make much sense.

      And I had nothing to do with making this girl think there are anti-christian views in this country. She gets plenty of that from the preachers. If you don't think that zealotry is very real in this country then I suggest you listen to Jimmy Swaggarts opinion of gay marraige. He said something along the lines that if a gay man looked at him wrong he would kill him and the crowd cheered. That is zealotry plain and simple.

      Finally, I don't know how you can say religion is being removed from the public eye. You obviously don't watch much TV or visit the bookstore. Religion has had a huge resurgence since September 11. You can't watch a Yankees game without hearing God bless America. In my opinion America the Beautiful would be much more appropriate.

  3. Uh, the Web itself by FunWithHeadlines · · Score: 4, Insightful
    "Large Scale Web Apps Built on Open Source"

    Uh, like, you mean the Web itself? That's large scale, certainly was built, and is most certainly built on open source.

    So, yeah, I reckon it can be done. I'm using the proof-of-concept to submit this comment.

  4. Re:.sxi format? by Higman · · Score: 5, Informative

    Are you serious?

    In the off chance that you are, it's one of the OpenOffice.org formats, inheritted from StarOffice... it's supposed to be their answer to MS PowerPoint.

    --
    -- [insert sig here]
  5. helixcommunity.org is another big one... by tcopeland · · Score: 4, Informative

    ...right here.

    It's powered by GForge, so it's backed by PHP and PostgreSQL.

    There are a bunch of other sites running GForge listed here...

  6. Re:Java, Tomcat, Apache on UNIX by Kainaw · · Score: 4, Interesting

    We are using Fedora, Postgres, and PHP for what I consider a rather large-scale application. It is a storage and query system for research on a few million patients. We could have gone with Oracle and Java (...shiver...), or even MSSQL and a Windows server, but why waste money? The only real headache I've had is figuring out that Apache2 is threaded and Postgres/PHP sits on top of some low-level linux code that is not. I could use Apache instead of Apache2 to fix the problem, but I fixed the non-threaded code instead.

    --
    The previous comment is purposely vague and generalized, but all of the facts are completely true.
  7. Maypole! by Anonymous Coward · · Score: 5, Informative

    Maypole is a Perl framework for MVC-oriented web applications, similar to Jakarta's Struts. Maypole is designed to minimize coding requirements for creating simple web interfaces to databases, while remaining flexible enough to support enterprise web applications.

  8. Livejournal Images by tinla · · Score: 5, Funny

    Ok, so most of the Journals lack even a scrap of entertainment value... but the data feeds are normally fun. Is there anyone left that hasn't wasted a few bytes on the following url?

    http://www.livejournal.com/stats/latest-img.bml

    Hint - its a constantly updating list of all the new images posted to journals. After a while you give up waiting for a hot chick to post and decide crazy survey graphics are as good as it gets. And then some hot chick posts her birthday party pictures, but she's only 14 and suddenly you wish you'd spent the day doing something else.

    --
    0daymeme.com: Great stuff.
  9. Re:lamp! by nv5 · · Score: 3, Informative


    I thought the P means any or all of the P language: PHP, Python, Perl

  10. Porn by Neil+Blender · · Score: 5, Interesting

    Back in the .com days, I worked at a huge (now defunct) porn site. We had about 50,000 active hosted sites, 500,000 hit counters and a bunch of other stuff. We were getting tens of millions of page views daily, maxing out two 100 megabit circuits at times. It was all FreeBSD, a little Redhat, Perl, mysql, squid, apache, mod_perl and C. The only real closed stuff we used were BigIPs and traffic monitoring software.

    1. Re:Porn by dmayle · · Score: 3, Funny

      Porn (Score:4, Interesting)

      I worked at a huge (now defunct) porn site.

      The funny thing is, I'm pretty sure the interesting mod is about working for a porn site, and has nothing to do with the hardware or software (for those who even read that far... ;)

  11. Re:lamp! by Nos. · · Score: 5, Informative

    Actually, LAMP can also refer to PERL and Python as well as PHP.

  12. layers -- kind a like the onion by yintercept · · Score: 3, Informative

    The web is really a mixed bag that allows a mix of open standards, and proprietary software. To claim it is all open source is misleading. It is a dynamic network that allows development on multiple layers.

    The most important aspect of the web is that the interface of the different layers were well defined and exposed...not that each line of code in the different layers is exposed.

  13. Re:Get a clue by Anonymous Coward · · Score: 5, Insightful

    It's a pervasive belief among the suddenly famous. IBM, MS, or Sun doesn't need this. It's the small website with a bright idea that is all of a sudden gaining popularity which goes through almost each of the stages described in this document.

    This is for people with absolutely no budget and infinite traffic. This is how to live through that and come out winning like Brad apparently has.

  14. Zope Enterprise Objects by TheSync · · Score: 4, Informative

    If you are looking for scalable OSS solutions, also look into Zope with Zope Enterprise Objects (ZEO).

  15. Re:Get a clue by Anonymous Coward · · Score: 3, Insightful

    A little harsh considering the guy's starting point, but it is true that most people / companies don't think things through. I put in a lot of startup web sites in the 90's, and used to give lectures on, among other things, why replicating databases doesn't scale. Looks like people still think that replicating databases is a solution, almost ten years later. It makes me glad I opted out of the e-com performance world, or I'd still be solving exactly the same problems.

    Simple lessons:
    -replicating database all over the place doesn't work
    -adding lots of servers doesn't work unless the apps are designed to work that way
    -object-relational and object databases are useful for a narrow class of problems, and Do Not Scale
    -java/perl/etc. are great, but you have to learn some SQL because doing things like sorting data in code is stupid when the database is 10x faster doing on retrieval than your code
    There's the material I used to get $2000 for for a 1 hour lecture. Share and enjoy.

  16. Server timed out by WreckDiver · · Score: 3, Funny

    Not large enough scale to survive a Slashdotting...

  17. Re:Get a clue by Graelin · · Score: 4, Insightful

    You need to get over your favorite language/technology/term you read in the trade-rag you read last week. And then you need to get over yourself.

    Give it up slashdot crowd. mod_perl is not a valid technology for a large scale website! Perl was designed for a task, and that task was NOT enterprise application development.

    Spoken like someone who has never had to build a very large site (doing "real" work) completely in Perl/mod_perl. I can tell you that it most certainly can scale to enterprise needs. Did this guy do it right? I don't think so either but he most certainly learned a valuable lesson. Hopefully other people will study what he has done and improve their own systems based on his work.

    For the record, Java wasn't built for enterprise application development either. As with Perl, people discovered that Java had a future there and here we are today.

    A properly designed website with n-tier sepperation will be able to handle a large load and scale infinitly. You'll note that large websites who actually do real things besides logging people's daily problems don't use mod_perl and a thousand servers. There's a reason for this.

    You're assuming two dangerous things... (1) That you can't have n-tier and Perl. And (2) that large mod_perl sites require lots of servers. To believe any of these things is to demonstrate your horrific misunderstanding of computer science in general. I pity the company that lets you design their architecture. Wait, no I don't.... I'll gladly take their money for fixing your mistakes.

    Oh yeah, and let us not forget some other languages that are showing promise... specifically Python+Zope. In fact, I know of several people implementing n-tier applications with PHP on the front, Python in the middle and PostgreSQL in the back with much success.

    And for the record, here are some large companies and sites heavily using mod_perl.

    Want more?

  18. Re:Large scale? by xb95 · · Score: 5, Interesting

    Most of the time those numbers are four or more times that high. It's early in the afternoon, this isn't a peak time.

    Anyway, those are only the number of entries being posted. For every entry being posted, there are a ton of inserts actually going on:

    * log2 table to contain some metadata about the entry
    * logtext2 table to contain the actual text
    * logprop2 table (multiple rows, 3-5) containing other metadata about entry

    So, four times the traffic, about 6 inserts each, 2400 updates per second--and that's just for posting entries. We get a lot more traffic from people posting comments (which also do 3 or 4 update/inserts each comment), plus people editing their userinfo, uploading new userpics, ...

    While LiveJournal definitely isn't a huge site, it's not a lightweight, and definitely doing pretty good for having around 80 machines and doing 30-40 million fully dynamic page views a day.

  19. What about Livejournal? by tshak · · Score: 3, Interesting

    As a paying subscriber of Livejournal, I can say the only reason I even have an account is because of the friends that I have who use it. I would never use it as a case study for any technology. It's got huge performance problems, data loss issues, and usability issues. This may not be the fault of using OSS, but it definitely doesn't help it look good.

    --

    There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
  20. LJ - Memcached - Wikipedia by otisg · · Score: 3, Informative

    Some may find it interesting that Wikipedia (covered earlier today on Slashdot) uses some code that came out of LiveJournal for caching: memcached.

    --
    Simpy
  21. Kenny by Trejkaz · · Score: 4, Funny

    It's somewhat amusing that in the first load balancing example, one of the points of failure was Kenny. Especially since Kenny ALWAYS DIES.

    --
    Karma: It's all a bunch of tree-huggin' hippy crap!