|Fun with web development
||[Jun. 5th, 2000|07:28 pm]
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.