Log in

No account? Create an account
Fun with web development - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Fun with web development [Jun. 5th, 2000|07:28 pm]
Brad Fitzpatrick
[Tags|, ]

So, LiveJournal's growing too fast... it's going to get slow pretty quick here if I don't optimize code and/or add more servers. It's easy to add servers, so I thought a few weeks ago ... let's make it totally scalable ... no files on the disk ... everything in the database, and then the DB is the only bottleneck, and we can always put that on a fast machine, or improve that code ... well, so I'm started moving all the user-uploaded images into the database... that worked... then I wrote a quick FCGI app to serve images.... uh-oh ... binary data in the files (nulls) breaks FCGI and/or Apache ... so I upgraded FCGI.pm ... didn't help, although people on the mailing list say it should ... do I have sfio compiled into my Perl? I forget... it's been so damn long. Hmm .. maybe my mod_fcgi ? Damn! It's old ... so's my Apache on this box! Okay, so upgrading all those... fun fun fun. When it's all done, the system will be good as new, and my little 20 line program will work as it should.

Update: 19 minutes later, it's all working.... all it took was a new Apache (1.3.12), new mod_fastcgi (2.2.4), and new FCGI.pm (0.52). I'm happy.... I really didn't expect it to work.

[User Picture]From: wilco
2000-06-05 07:55 pm (UTC)

Nice work

Good work, thanks for keeping it running for all of us. You're a good man, Charlie Brown.
(Reply) (Thread)
From: _bassta_
2000-06-05 07:56 pm (UTC)

The best would be to compile the most code as possible into perl modules... Also PHP is going now really fast with the Zend optimizer, since it compile part of the code and use it instead for each calls...
(Reply) (Thread)
[User Picture]From: scottfreeman
2000-06-06 05:17 am (UTC)

Thanks man!

All that work... and you don't get paid. You're a star. :-)
(Reply) (Thread)