DISQUS

Radical Behavior: 5 Question Interview with Twitter Developer Alex Payne

  • Online Cricket Games · 1 year ago
    Alex jumped into the opportunity when he had it and grabbed it totally. Seeing it happened just in 2006, it's hard to imagine how far Twitter had came in just 2 years.
  • Singapore Hotel · 1 year ago
    I was expecting Alex to be much older for somebody who's so experienced.
  • Ponto G · 10 months ago
    We tend to think that the owners of grat companies are senior ctizens, but uin the net they are just young like us that had a great idea and implemented it.
  • Knee Pain · 1 year ago
    Alex's really cute looking.
  • Abdominoplastia · 10 months ago
    I dont think so
  • diabetes · 8 months ago
    Young and talented... :)
  • Obat Kanker · 11 months ago
    Why does all the cool developers look so sexy?
  • Yohannes Wijaya (macnatic) · 2 years ago
    Nicely done interview, Josh! it gave a peek on the "inside" of twitter.
  • Baseball Cleats · 8 months ago
    I think so
  • Josh Kenzer · 2 years ago
    Thanks macnatic. By the way, I know you were running late for your photowalk with Scoble and Thomas Hawk. Did you make it?
  • Martin · 2 years ago
    Nice work!
  • Josh Kenzer · 2 years ago
    Martin, I assume you are complimenting Alex on the nice work of Twitter. I know Alex was deeply involved in the new API released this week including the potential difficulties (and advantages) of using Google Docs.
  • Colin Loretz · 2 years ago
    This is a great look behind the scenes of Twitter, especially for all of the Rubyists out there.

    I started using Twitter yesterday and I like it a lot.
  • fitness equipment stores · 1 year ago
    yes I like it a lot, Twitter is one of the most popular services online
  • Psicologia Infantil · 10 months ago
    Twitter was the best idea since google.
  • chemotherapy · 8 months ago
    That's correct! one of the coolest innovations. Probably now a lot of people are interested in it.
  • Chris Brogan... · 2 years ago
    This is truly the most informative piece of blogging on Twitter that I've seen to date. I've written some how-to stuff, and some social neato stuff, but wow. This was really interesting. A true peak under the kitty cats. Thanks!
  • Grayson · 2 years ago
    Great quote: "I don’t think Twitter is a replacement for blogging, just as I don’t
    think blogging is a replacement for journalism." Kinda sums it all up! Thanks for the interview.
  • Adrian · 2 years ago
    If you're looking for all of the dynamic-language, rapid-development pleasure of Rails, plus *much* better performance, give Django a shot: djangoproject.com.
  • Jay Tuley · 2 years ago
    I don't think the term "syntactical sugar" is what you wanted to use, since the connotation of "syntactical sugar" typically infers not only that the syntax makes it a little easier to do something, but also that the syntax change doesn't have a performance penalty. Unless you are referring to what others have called "syntactical sugar" and your point is that it isn't really "syntactical sugar".
  • Alex Rudloff · 2 years ago
    Maybe I can start pointing to this interview to get the Ruby on Rails community to stop trying to force Rails down our throats...

    Great post! ;)
  • Fred · 2 years ago
    I still don't know exactly what "Ruby on Rails" is? Some guy tried to sell me some last night, said it would get me "high as a mother fucker". I'm not wearing pants.
  • Gunnard · 2 years ago
    Its interesting to hear someone talk about a language that is slow and not talk about how to better do it in a faster language. I am talking about php/python. Would Twitter be better off running on a more "mainstream" system? Just a thought - don't kill me ;)
  • Peter Cooper · 2 years ago
    I'm not entirely buying the Ruby speed argument. Sure, we know Ruby is slower than other languages, but when dealing with the Web, databases, etc, it really doesn't matter unless you need to do some serious processing.. which hardly any Web app does.

    Put it this way, I've taken some reasonably well performing Perl daemon code I have that serves hundreds of millons of requests per month, and managed to port it to Ruby and make it even faster.. so I'm just not buying that Ruby's performance is really an issue with Web applications.
  • Gunnard · 2 years ago
    Peter:
    So what is the argument then for a language? Comfort? Given that the speed of web apps is neg-lable, one should program in any language they choose? I started out in perl and understand that perl can be 100% awesome vs a PHP hack or something. How about the (sorry) fastCGI issue? doesn't that hinder the performance of the web app? I am sorry to just call that out but if it is an issue then I must. This is not a disagreement but a debate, please contribute to it, anyone ;)
  • Peter Cooper · 2 years ago
    My personal opinion is that languages can win and lose on factors like the quality of libraries, quality of deployment systems (case in point, mod_php vs everything else), ability of the language to interface with other things, qualit of frameworks, etc. Those things are related to the ecosystem of a language rather than the core performance of the language per-se.
  • Jamie Pitts · 2 years ago
    I appreciate the honesty in this interview.

    I just soft-launched my rails-based video tracker and I am using the caching all over the place. It is easy to do and every rails developer should put it in before launching.

    The language is amazingly cool to develop in, and rails saves a lot of time even if the data modelling approach is somewhat simplistic. But I can definitely see a performance difference between ruby and languages such as perl, php, and even java.

    As with everything in engineering, you have to deal with difficult trade-offs. With Memecat, I chose to pay for coding happiness with more processor heat and server memory.
  • Jim O'Connell · 2 years ago
    You really should have limited his responses to 140 characters.

    Great interview.
  • Dave Brondsema · 2 years ago
    Re: #2 -- Acts As Partitioned http://partitioned.rubyforge.org/
  • Mario Ceste · 2 years ago
    I would argue that Revolution Health, http://www.revolutionhealth.com is a larger site that Twitter.
  • JustAnOutsider · 2 years ago
    @Adrian Holovaty: Dude, this is so lame. Is this all you guys can do? look for disaffected companies and try to pitch your framework? almost like ambulance chasing..

    @Peter: Dear Pete, Ruby is slow, it eats CPU for breakfast, and please show us your million hits per month code. I'm sure its proprietary and you can't show it to us.

    Rails is braindamaged when it comes to scaling. Reason? It was developed by an MIS/Marketing student with delusions of programming grandeur. DHH doesn't know his RDBMS from his buttocks! And that's the godawful truth.

    And now he's squirming like a little you know who, because the rubber is hitting the road, and the thing doesn't scale on the DB end. Well, this is what you get when you don't understand the issues involved, and bitchslap anyone who brings them up in the initial phases in the name of "opinionation".

    Don't know what will come, maybe it will be an Erlang framework (No Thanks ErlyWeb, you're just as ugly as rails, but we can be hi-bye friends..) or seaside or whatever.. but something is going to really cut rails and all its hype down a few notches (despite all the efforts of the blogocircuit talking heads milking the hell out of php-converts)

    No Wonder PragProg is offering an Erlang book to seed a "new wave" of "pragmatic" cash-cow-milking, but hey, you can never blame an entrepreneur.. especially a pragmatic one.

    Al3x, I hope DHH and 37S don't get you fired from this, because what you're dealing with is a sleazy marketing machine wrapping itself up in the post-rape sheets of opensource. They don't like it when people mess with their revenue streams and their little conference-filling cash cow called "Ruby on Rails"
  • Peter Cooper · 2 years ago
    JustAnOutside: It's not all proprietary, but I don't need to show it either. Just rig up a basic script that uses Mongrel (at library level) and returns stuff cached in Memcached, and you'll easily hit 700m~1bn requests per month on a single box. It takes half an hour to run up such a test. Ruby is almost irrelevant in this example as the amount of processing to send stuff to HTTP clients is minimal.

    Then it all comes down to what percentage of requests have to hit a database or do some sort of logic, but as long as it's under a certain percentage, you're good.
  • Peter Cooper · 2 years ago
    Note, I'm not talking about Rails.. which is slow. I'm talking about actually developing your own stuff with Ruby. My argument is that Ruby's speed is nearly irrelevant when it comes to fielding data between databases and networks.. since databases and networks are always slower than Ruby! (but not Rails)
  • JustAnOutsider · 2 years ago
    @PeterCooper: Agreed. Ruby's speed is almost irrelevant, though it does affect the overall performance of an app especially through a framework which adds layers of abstraction (for developer productivity no doubt but still).

    A general comment:

    My general point is that Rails was not developed with performance in mind, which is very typical of run-of-the-mill developers, DHH being no exception. He created something which made sense to him and his rather superficial understanding of the performance issues and that is just as well. But let us not forget that DHH's major problem while creating BASECAMP was _NOT_ performance and scaling, but Time to Market, and rails did that beautifully _for them_ It doesn't mean DHH or rails community should start pretending it will work in all situations because Rails is beauty this and joy that and it just fits their brains and all that new-agey non-sense that DHH tries to spread all the time.

    My issue is with 37S and gang protecting RoR as a corporate brand without stating it in so many words, and attacking even their most valued customers (RoR users are the other side of the Brand coin) who are in reality helping to test the framework to its limits.

    They are not going to get far with this type of attitude attacking someone and accusing them of being lazy if the users dare to point out some deficiencies in the framework which are well known in the community to begin with.

    DHH hints that multi-database solutions are possible with rails without offering so much as a link. If they are and a team running an 11k hps site doesn't know it, then they should all be summarily fired! but I'm quite sure that is not the case and this is just another technical nit-picking by DHH in a tranparent attempt to save face.

    Ruby is almost equivalent to PHP speedwise (without all the crap) , and if stupid-pet-tricks are kept to a minimum (or at least made optional), there is no reason Ruby based web applications cannot scale to the same size that most PHP/Perl mega-sites do ( WikiPedia, Craigslist come to mind)

    The problem is that Rails makes it very easy to make the commitment on the front-end of the project which is the design and development part, but once you hit the critical size, and have hundreds of thousands of users it just becomes a Monkey on your back!.

    I don't agree with the sentiment that Twitter should be thankful to RoR team for giving them a framework which got them to 11k hps. If you fail primarily and specifically because of your choice of framework not scaling, the failure is just as bad as failing in the beginning. If I hyped up and gave (for free) NASA a rocket with a claim it would take their astronauts to the moon and land them and bring them back, but it only took them to moon orbit where they were stuck, should NASA be thankful to me for FUCKING UP the mission? Should I chide NASA by presenting the fact that the rocket "at least" took them to the moon? whoopty frikking do.

    Given these constraints, it is best to do your initial demos and early version in RoR, but you better have contingency plans for when you hit critical mass because things will become extremely painful even if you DO have the VC cash to throw at the beast.

    I happened to invite quite a few people when twitter was having these performance problems and most of them refused to join or even go back there based on their initial impression of the slowness of the site. How that critical-user-mass loss figures in as total strategic loss for Twitter remains to be seen, but one thing is clear, the choice of RoR would have played a key part in that if we were to quantify the reasons for Twitter's success or failure. Things are still touch and go for them, as they always are for most startups.

    I wouldn't be surprised if Twitter was seriously looking into a rewrite in pure Ruby or perhaps another framework . Django Dev' comments would have very little to do with it, but if I was Twitter, I'd be looking to cut my losses - these are business decisions and once you get to that size, your loyalties change. You may love Ruby, but I bet you'd really love that million dollar check in your pocket if you could pull it off, and if RoR stood in your way, you'd know what to do.

    I doubt they'd go the Python route, because the rework overhead would be just too risky. Unless of course they pull a reddit as it were.

    The only thing that can save Rails is a fork with some people with good grasp of SDLC (including deployment and operations) at the helm.

    Perhaps it should be called Ruby on Brains.
  • AndrewWeeblsoi · 2 years ago
    I really think you should refrain from bragging about how awesome Rails scales, until you figure out how to make Twitter work reliably over 99 percent of the time. Twitter is as slow as constipation for me.
  • Nicholas Wright · 2 years ago
    @JustAnOutsider: Jesus, I'm glad somebody finally took the time to type that up.
  • lucas · 2 years ago
    Ruby and Rails are very high level languages and as such are slow. Ruby is slow and and Rails to that and it's even slower. Thank you for affirming this!

    What Rails is suitable for is small apps. If you're a web design firm with a small client, use Rails. It'll get you up and running fast, but if you want performance and have a realistic chance at gaining millions of users, you have to use lower level languages.

    The proliferation of frameworks means in general that sites will come out faster but run slower. Great for prototyping but not so good for deploying.

    However, if you believe in agile programming then you do deal with problems when they come up, not before. So until you get to be as big as twitter, you can act like you're designing for, say, a 100,000 users.
  • Jaroslaw Zbiello · 1 year ago
    Ruby is not slower any more. Atually, it is much faster than PHP and faster than Python (I mean JRuby & Ruby 1.9) See: http://www.slideshare.net/mattetti/merb-present... and http://blogs.sun.com/Jacobkessler/entry/it_s_ov...
  • lucas · 2 years ago
    everybody stick with PHP we'll all be better off!
  • Twitter Community · 2 years ago
    We have linked you your article. Nice interview.

    The Unofficial Twitter Community and Forums
    http://www.twittown.com
  • joelle · 2 years ago
    Nice to see such a heavy site developed on ruby on rails. Eventhough I am not exactly sure what to do with twitter. :)
  • sqeez · 2 years ago
    very interesting "frank" advice about rails. here's hoping one day we'll be there as well.
  • rjordan · 2 years ago
    Sounds like ruby/rails was fast enough to expose the un-scaleability of underlying database framework. I would suggest you first determine if your DBA is doing his job, if he is, it shouldn't be that difficult to create an activerecord adapter that uses a connection pool to serve queries. Thus making it possible to use multiple backend databases yet still be transparent or at least mostly transparent to your application.
  • vaspers the grate · 2 years ago
    I embedded my employer's blog that I customized from a template, rather than my Vaspers the Grate blog, because my employer is thinking about converting from PHP5 to Ruby on Rails for our small to medium business web design/hosting clients.

    If anyone has such transition experience, from PHP5 to RoR, in a Linux, Agile, MySQL environment, please contact me.

    Thanks.
  • Gaurav Gupta · 1 year ago
    Nice.
  • Danny · 1 year ago
    Agreed, sometimes what seems like the best idea might just come back to bite ys...
  • Twitter.com/DougBarger · 1 year ago
    Interesting interview and nice to get inside insight from a developer on the social networking tool.
  • Hosam Hammady · 1 year ago
    Hey Alex, haven't you heard of Neverblock (http://www.espace.com.eg/neverblock)? It will solve your scalability issues!
  • sucks · 1 year ago
    This payne sucks. Look at his twitter page, he thinks he is a computer genius
  • David kicked his ass · 1 year ago
    "Second, when you work with open source and you discover new requirements not met by the software, it’s your shining opportunity to give something back. Rather than just sit around idle waiting for some vendor to fix your problems, you get the unique chance of being a steward of your own destiny." ~ DHH
  • Satya Prakash · 1 year ago
    Good to know the discussion about Ruby. He tells Python is good. Is that really good, as he never developed in Python!
  • Fashion Shop · 1 year ago
    When opportunity comes knocking on your door, take it. More often than not, it eventually leads to good stuff.
  • physiotherapy · 11 months ago
    It seems in general twitter has not made as huge inroads in singapore as it could..
  • diabetes · 8 months ago
    It's pretty much picking up everywhere now...
  • Shop Fitting · 10 months ago
    Twitter's kind of lucky in getting him. Not the other way round.
  • telepresence · 8 months ago
    I guess pretty genius being so young and working for such a great company...
  • SEO · 10 months ago
    The way Alex answered these five questions, he is looking as very keen, devoted and honest with his work.. It’s looking as he know what he has to do in order to achieve his goal..
  • Cirurgia Plastica · 10 months ago
    My personal opinion is that languages can win and lose on factors like the quality of libraries, quality of deployment systems (case in point, mod_php vs everything else), ability of the language to interface with other things, qualit of frameworks, etc. Those things are related to the ecosystem of a language rather than the core performance of the language per-se.
  • Psicologo · 10 months ago
    Alex is really the brain behind tweeter
  • Depressao · 10 months ago
    That guy that inevnted tweeter is a genious. its just so addictivbe
  • Espinhas · 10 months ago
    Interesting interview and nice to get inside insight from a developer on the social networking tool.
  • Dermatologista · 10 months ago
    One suggestion i have for tweetr is making it possible to use multiple backend databases yet still be transparent or at least mostly transparent to your application.
  • Lipo · 10 months ago
    This is truly the most informative piece of blogging on Twitter that I've seen to date. I've written some how-to stuff, and some social neato stuff, but wow. This was really interesting. A true peak under the kitty cats. Thanks!
  • biznes · 9 months ago
    Great interview. Twitter becomes really popular nowadays.
  • HotelBooker · 9 months ago
    Alex is a great guy! Well done
  • Original London Tour · 9 months ago
    What a good interview... he comes across very level headed I thought. Will be interesting to see where they are in a year against facebook and other social network tools that are coming out daily.
  • jinjie jin · 7 months ago
    great post sir..
    thanks for sharing. really helped a lot here.
    --------------------------------------------------
    Ugg Boots | Uggs
  • gogoboot · 7 months ago
    well done
  • ugg · 7 months ago
    Alex jumped into the opportunity when he had it and grabbed it totally.
  • varicose · 7 months ago
    It's amazing how far Alex has come when he's still so young.
  • Louis Vuitton · 6 months ago
    We tend to think that the owners of grat companies are senior ctizens, but uin the net they are just young like us that had a great idea and implemented it
  • Tiffany Pendants · 6 months ago
    Thanks for the great widget! Going to add it to my installation next week.
    I've also posted about it on the BlogEngine Forums
  • Biogetica · 6 months ago
    marque - kindly explain to me how is revolution health bigger than twitter and how the hell does it relate to this.

    Odd and funny comparison my mate..
  • Gucci Shoes · 6 months ago
    I was expecting Alex to be much older for somebody who's so experienced.
  • laptop batteries · 5 months ago
    I was expecting Alex to be much older for somebody who's so experienced.
  • china Cell phone · 5 months ago
    Rails is braindamaged when it comes to scaling. Reason? It was developed by an MIS/Marketing student with delusions of programming grandeur. DHH doesn't know his RDBMS from his buttocks! And that's the godawful truth.
  • Iklan Baris Gratis · 5 months ago
    I use social media to create multiple sources of traffic to my website.
  • seali · 5 months ago
    yes, i agree.We have linked you your article.Going to add it to my installation.thanks for sharing. really helped a lot here.
  • louis vuitton · 5 months ago
    Nice work!
  • happy everyday · 5 months ago
    hello,your blog is interesting.
    welcome to my page!
  • Laptop Batteries · 5 months ago
    This is a great look behind the scenes of Twitter, especially for all of the Rubyists out there.
  • alextomi · 5 months ago
    We have linked you your article. Nice interview

    who use my name?

    my name is alex

    http://www.hermesreplicahandbags.com
  • jaber · 5 months ago
    Great post! Maybe I can start pointing to this interview to get the Ruby on Rails community to stop trying to force Rails down our throats...

    http://www.toys-kingdom.com/
    http://www.officefurniture-supplier.com/
  • nikecitycn · 4 months ago
    It is a wonderful article,i like it,thank you very much!
  • Travel Cot Mattress · 4 months ago
    It is interesting reading this now after seeing the phenomenal growth of twitter