Picture of Administrator

So I dragged Seth up early this morning (hmm, well, yesterday morning I guess) to take me to the airport, and I am officially on my way to Japan… I’m on the plane as I write this post. I’ve already fallen asleep a few times and eaten my share of junk food (mmm, jelly bellies), so now I’m sufficiently awake enough to tell you all about the really cool things Elaine and I did this last week.

A couple weeks back, I mentioned that we decided to migrate our servers from Apache to LightTPD — in that posting, I gave a quick overview of why an event driven web server like LightTPD was much more suited to scaling meebo longterm. I also mentioned how we were thinking about using FastCGI to lessen the overhead of spawning so many CGI processes.

meebo is an interesting app because of the way that we utilize your web browser’s interaction with our servers. The user experience has to be snappy and lightweight, and as our user count grows (yay!) this becomes increasingly difficult to maintain. Much to my surprise, after analyzing the options, we decided that FastCGI may not be the best route to follow (what a bummer that was =p).

As I mentioned previously, FastCGI does not fork a new CGI process every time a request is made from a client (saving a lot of overhead, and decreasing CPU load); instead, there are a few CGI servers that receive and process the requests. If there are ten processes waiting in line, FastCGI distributes them evenly, and when a process finishes, the next one in line gets its turn. Sounds great, right?`

meebo, however, requires a lot of sleeping processes that essentially do no work until necessary (sometimes waiting up to tens of seconds). As a result, we would have to spawn multiple FastCGIs per user, one for event polling, and the other to handle non-blocking requests like sending an IM or logging in. This makes the whole CGI layer very complicated, and unnecessarily heavy — the gains don’t seem to outweigh the losses.

So, to keep the design clean, simple, and scalable, we decided to throw out using CGIs altogether, fast or otherwise. This cuts out the middleman, and avoids another layer of complexity, hopefully decreasing the chances of things going wrong.

What did we use in the end? If any of you have used mod_perl or mod_php in Apache, you’ll know where I’m going. Instead of having the web serve spawn a CGI process, the web server talks to gaim directly through a custom module. mod_meebo, as we call it, parses the client requests and passes them to the backend gaim process; it’s simple and clean — no extra overhead.

We’d like to say a big thanks to Jan Kneschke, the creator of LightTPD, for building such a great, extensible web server. Without his general purpose module interface, things would’ve been much tougher.

We’ve been slowly rolling the module out this last week, one server at a time, and so far, the results are really promising. CPU loads have dropped nicely, and with a few more tweaks and optimizations, we’re hoping to scale even higher.

Oops, laptop battery is running low. I’ll talk to you all from Japan!

sandy

107 Responses to “mod meebo”

  1. Sandesh Deshmukh Says:

    Meebo is getting blocked in majority of IT firms in India, I guess fame does have a price to pay. I’ll keep my fingers crossed.

  2. seth Says:

    Oh no! Not good!!! Very sorry :(

  3. michelle Says:

    hey it’s good, but i can’t veiw ppl’s info. you could change that….overall, i like it

  4. EvanWasHere Says:

    Is there any way to have mirrors of Meebo at different hosts/domains to overcome the blocking of meebo.com by firms?

  5. paavan s. Says:

    Dear Sir,

    I have found your tools as well as blogs here in India.

    It’s excellent tools, now large numbers of visitors from India.

    I like add this infromation in my blogs http://o3.indiatimes.com/seoindia.

    Basically i am seo and directory moderator and seo trainer in India provides seo resources to various student.

    Please send me reply if any new things.

    Thanks

  6. EvanWasHere Says:

    Can somone try this free web proxy with Meebo on a blocked host: http://www.hidemyass.com/ Let me know if it works.

  7. Nick Gray Says:

    I really enjoyed reading about your back-end. What an amazing GAIM array you guys are building! Have you thought about a more direct form of aggregate away message display?

  8. Samia Zagh Says:

    msn

  9. Melanie Says:

    I just wanted to say “Thank-You” My son is with the 101st Airborne Division from Fort Campbell, KY and is now stationed in IRAQ. When I am at work, it is late afternoon early evening for him. This was told to me by a friend that I can sign into AIM and talk with my son without downloading the AIM program. I just wanted you guys to know that I am ever so grateful that I have a secure way to talk with my son on a daily basis.

    Thanks!!

    Mel

  10. zoza Says:

    also you can use
    http://www.acme.com/software/thttpd/
    this server

  11. Drew Houston Says:

    i’ve used thttpd/php (someone else linked above) to great success with a similar type of app (needed to scale to ~600+ transactions/sec) after trying in vain to make Apache perform as quickly.

    if I were to do it all over again I’d use Python’s asyncore or Twisted frameworks (lightweight HTTP server functionality with the expressiveness and interoperability of python/non-fugliness of C), paired with psyco (python optimizer) which would have probably cut development time by 80-90% with similar performance (and would have been *much* more maintainable.)

    hope this helps.

    -drew

  12. michelle Says:

    thanks. I love meebo. Even my co blocked the msn and yahoo. I still chit chat using meebo. Great Job!

  13. Vishal Jain Says:

    Deshmukh is again criticising

  14. wty Says:

    ZORRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA NO ME TOKES LOS COJONES GUARRA ,D K ME VIENES AMI?? D LISTO O ALGO SUBNORMAL? ANDA TIRA X AHI GILIBOBO

  15. Rahiman Says:

    It’s great experience . excelent .rwally suprub. i can chat more than one login id. i love meebo. thanks for all meebo

  16. Alex Says:

    Hi Folks,

    Thank you so much, very nice tool! Amazing.
    Brazilians are here! ;-)

  17. peter Says:

    Cool! I liked hearing about the technical details. Very interesting!! Look forward to reading more. GL

  18. tony Says:

    well i am the ne guy on the block who has ……….how u say………been @ the block…shit methinks i built the block sometimes…im not code savvy so im not hip to all the architectural developments of meebo but it soundd and looks great from here in atlanta…this bonghits for u folks job well done…….jus like me at the moment …welldone……. gnite

  19. vale Says:

    all my university are very gratefull with you….we have block the other programs of chat and now we can chat with ower friends while we are in clase!…thank you meebo!!!!
    uruguay presente

  20. playboy Says:

    Congratulationsu are the best !!!

  21. sajairaj Says:

    Hi sandy,

    I am an Indian working in the multinational in India. It was incedental that I have seen meebo. Good work done. But does it have any security issues?? Suppose if someone hacks your server and passes junks and viruses to your users how will you prevent that?

    I am an MBA and would like to start something on the software side. I am not a techy by myself but still have a flair towards it. If you have any plans to start any ventures in India do let me know. I found your group as an energetic and innovative one.

  22. Saynd Says:

    increadablt stupid, veri idiotic , not good at all

  23. liane Says:

    oi! sou brasileira!passei aqui só para visitar bjus

  24. ieasha lampton Says:

    hey i am ieasha well how are you ???? well for me fine well anyway how is were ever you rae i hope its good hey

    well 1 g2bounce

  25. heather Says:

    how do i use meebo to use as a chat or to get into my website from a school computer where a bunch of sh*** is blocked? thanks meebo please email me .

  26. Solar Bang Says:

    I host lan parties and use your site to keep in touch with several members to our group. I was wandering Recently your page has been blocked and in addition i am alway son the go is there a way we could run your scripts from our computer directly like on a usb jump drive or from our desktop for on the go or to bypass filters? please write me back i would greatly appreciate it even if we cannot have a meebomobile. A huge fan of your work of art. Keep up the great coding.

  27. Navneet Kumar Says:

    Hi

    *****************************************
    If you find meebo is blocked at your place then try this. In place of http://meebo.com give https://meebo.com.

    It should work.

    **********************************************

  28. Navneet Kumar Says:

    If it doesnt works then try this. This should work for sure.

    http://193.238.160.99/webyahoo/start.jsp

    Please let me know if it works.

    Great work dude. I love the technical details. Keep it up!

  29. Solar Bang Says:

    Well the thing is the sys admin is monitoring me and updating the filter accordingly so anyweb fix is temp. first i went to meebo.com then they blocked it. then i went to the mirrors first 1-8 then up to 18. then i used ip addresses then i used. then i tried converting to decimal. then to hex. all these things worked but eventually get blocked as well i need either a page that will run a proxy within or a script. i cant install any software. or a mobile version. Perhaps a script i can run form thje desktop. And i apreciate the yahoo site it wokred on this end but i only use aim. thanks all, i appreciate the feed back and look forward to future responses.

    Solar Bang

  30. Bruna Says:

    Rafinha
    rafalevasseur@hotmail.com
    (21)99346773
    Beijos!!!

  31. me154@hotmail.co.uk Says:

    hi pimps wot ya u 2

  32. me154@hotmail.co.uk Says:

    hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

  33. Solar Bang Says:

    ok so the intelligense of this board went to slush. Awesome.

  34. crunkbrownboy123@aim.com Says:

    is their anymore proxies? 4 meebo all of them are block….????

  35. lexis Says:

    well here in sunderland the swines are blocking meebo from schools and colleges and even the proxies are going down too.
    boo hoo

  36. Dell Guy Says:

    Looks like us loyal Dell employees are also falling victim to intelligent IT syndrome. Almost my entire department was using it at it works occasionally when either a sys admin or someone else high up logs in, but the url changes are all blocked as are the publically published proxies and ips. As mentioned above I think a desktop script or perhaps a site generated url/dynamic ip set could side step this in the long term. However, I’m not the uber-tech/coder I’m just a satisfied user, but I do miss my buddies and the job related advice they were able to relay meebo, so any solution, even temporary ones would be greatly appreciated.

    Working Hard at Hardly Working
    -Dellguy

  37. chilton auto guide 1992 nissan kin cab Says:

    chilton auto guide 1992 nissan kin cab

    chilton auto guide 1992 nissan kin cab

  38. Shoemoney Deductable Deals Says:

    Dell Laptop for only 749$ – 1.7Ghz Pentium M 512mb ram 60gb hd 8x dvd+/-rw

    (from slickdeals)
    Dell Home has Inspiron 710m for $1524 – $725 off coupon BKPPH6PRX?HKD5 – $35 coupon from eBay = $764. Pay with your Dell Preferred Account to get it for $749, simply choose credit card to pay, and then accept the offer for 2% extra sa…

  39. Sid Says:

    Hey folks, i converted meebo’s ip to hex n binary, but donno how to open the site from the browser wid these!!

  40. yannov Says:

    meebo…meebo…meebo… wow… what a goood idea guys..! I love meebo…like others my yahoo/msn connection is blocked but I can still chat using my yahoo ID. Thank you so much my friends.

  41. karla arias Says:

    hola que tal soy hondurena y no se como reistalar mi messenger que ven ayudenme si plis baya

  42. karla arias Says:

    hola alex estas en linea

  43. karla arias Says:

    hola hay alguien q pueda charlar con migo no verdad bueno bay

  44. Balaji Says:

    good one

  45. Womens Briefcase Says:

    Womens Briefcase

    Huge selecetion of womens briefcase

  46. noel Says:

    hey, I just found out about meebo. Its awesome!

  47. shoemoney Says:

    how do i use meebo to use as a chat or to get into my website from a school computer where a bunch of sh*** is blocked? thanks meebo please email me .

  48. júlio Says:

    kd o modo de bloqueio para o orkut ou msn?

  49. aishwarya rai Says:

    aishwarya rai, Aishwarya Rai Biography,Aishwarya Rai Home,Aishwarya Rai Pictures,Aishwarya Rai Dies,Aishwarya Rai Wallpapers,Aishwarya Rai Forever,Aishwarya Rai Miss World 1994,Aishwarya Rai Latest News,Hot Aishwarya Rai Wallpapers,

  50. katalog Says:

    if I were to do it all over again I’d use Python’s asyncore or Twisted frameworks (lightweight HTTP server functionality with the expressiveness and interoperability of python/non-fugliness of C), paired with psyco (python optimizer) which would have probably cut development time by 80-90% with similar performance (and would have been *much* more maintainable.)

  51. soffioni docce Says:

    PKISJJN

  52. carino momentaneo Says:

    hyhydnbdh

  53. schioccare agente di polizia orale fotti Says:

    whdjjkckj

  54. trombate e sborrate Says:

    ghdhdte

  55. coy lesbiche strip Says:

    SDGBS

  56. offerta viaggio aereo Says:

    DVGFSGBHSF

  57. sborrate anale Says:

    FSBSDBH

  58. Onlineshops Says:

    A quite intresting idea is realized in this website! And a good and easy to handle design has been found too!

  59. Brustvergrößerung Berlin Says:

    Very good and great site with very good look and perfect information…i like it

  60. Thermage Says:

    very good site…..

  61. nasim Says:

    hi every one

  62. tanie linie lotnicze Says:

    Fantastic article covering some points I really needed some good usability info for.

  63. verkaufsagent Says:

    Great for this document i`m search many days in the world wide web,but now i found this information on your site.

    Thanks for help,thats the answer of all my questions i`v had

    Thanks again

    Timo

  64. Dave Says:

    So how many concurrent connections are you doing per lighttpd server with this setup? How does that do against the old apache one?

  65. SMS Says:

    The informations are interesting. It´s better if you delete the spam in this blog.

  66. Lena Says:

    The informations are interesting

    http://www.lenas-kochbuch.de

  67. Madeleine Says:

    Very good and great site

    http://www.raeucherzeit.de

  68. seositio Says:

    http://www.seositio.org/

  69. filmiki Says:

    Very helpful article, thank you!

  70. Tapeten Says:

    Great and excellent article t’s realy helpful. Thanks again.
    Wow. Very impressive.

  71. bankky Says:

    hey,people say they use the mmebo in communication even with calling mobile number.but i am findin that difficult.someone should please help me with these.loyalbankky@yahoo.com

  72. Sms Says:

    Thank you for your article. It realy help me.

  73. Timbuk2 Tasche Says:

    Very helpful article, thank you!

  74. araba Says:

    as for me very good :)

  75. Mike Says:

    I agree with SMS, I like reading the tech blogs, please delete the spam from them.

    Meebo is really impressive.

  76. Kunst Says:

    There are many useful informations in this article. Thanks and greetings from Thuringia!

  77. telewizor Says:

    Greetings very interesting site !
    Keep up the good work. Greetings

  78. Verzeichnis Fotografie Says:

    Thanks for this very good article

  79. Bilder kostenlos Says:

    Good article. Very helpful. Thank you

  80. Creatin Muskelaufabu Says:

    thx for the gerat stuff

  81. Versicherungvergleich Says:

    Very helpful article

  82. Tornador Says:

    I am an MBA and would like to start something on the software side. I am not a techy by myself but still have a flair towards it. If you have any plans to start any ventures in India do let me know. I found your group as an energetic and innovative one.

  83. Fitness Says:

    Super site this article help me a lot.thanks

  84. Ed Hardy Says:

    thx for the great stuff

  85. Ed Hardy Says:

    great article

  86. Ed Hardy Says:

    Good article. Very helpful. Thank you. Keep up the good work.

  87. jean-michel Says:

    you have done a great job i kike very much meebo
    sorry for my english

  88. Pawnage 2.0 « My blog! Says:

    [...] due to some glowing reviews and reports that Wikipedia, Youtube and my favourite Meebo are using them. Well actually it was due to Apache1.3 giving me tons of core dumps error when paired with PHP5, [...]

  89. Kazelpdj Says:

    Hi webmaster!

  90. Converse Says:

    That’s the way…

  91. Kazeltya Says:

    Hi webmaster!

  92. Ed Hardy 2 Says:

    Thank you.

  93. Bodybuilder Says:

    i thank you very much for this article. it helped me very much.

  94. sms-lady Says:

    Very good chair

  95. Fitness Says:

    Funny how many people are called Ed Hardy :D

  96. Frei sms Says:

    Sometimes you need to send a free sms to be happy :D

    Nice Text…

  97. jeff (theaishwaryarai.com) Says:

    Very good article.

  98. Katalogverzeichnis Says:

    Important site! This article helps us a lot. thanks

  99. Earl Flora Says:

    Wow! what an idea ! What a concept ! Beautiful .. Amazing

  100. Bergrennen Says:

    Very helpfull, thx.

  101. Chris Says:

    Thank you for the very informative post. Good stuff.

  102. Gotchel Says:

    Dropped in to show u some luv.,

  103. Stefan Says:

    I think a desktop script or perhaps a site generated url/dynamic ip set could side step this in the long term. However, I’m not the uber-tech/coder I’m just a satisfied user, but I do miss my buddies and the job related advice they were able to relay meebo, so any solution, even temporary ones would be greatly appreciated.

  104. gaming notebooks Says:

    Hi I was wondering what theme your are using for your blog? Looks great.

  105. Ed Hardy Says:

    Thanks for your good stuff. It is really nice.,

    Ed Hardy

  106. Oes Tsetnoc Says:

    That is really fantastics. As i am Oes i really like that flat form.

    Oes Tsetnoc

  107. oes tsetnoc Says:

    thats really wonderful. very easy to understand tutorial.