in reply to 2 Questions on Images and Mod_perl mem usage

I started this project lil over 2 years ago. At the time I was just learning perl and started my script as kinda a learning experience. I later got some offers to build a website around it and it grew into something very profitable for me. It has grown to a point where I have to start paying for additional bandwidth(why I want thumbnails made auto now) and additional memory for more clients. I have worked on it quite a bit in the past couple years as I keep getting more knowledgable in how to use it. If 8.5mb is the best I can do, I will have to deal with that but if I can get it down even a lil it multiplies so many times over and I wont have to worry about max client availability as much.

My Script is just one big long script instead of in packages which is a lil part of my newbishness. The only thing seperate from the main script is the script to upload pictures from the websites. I will defiantly look into the imagemagick and imager and I am hopeful that will significantly reduce my bandwidth cost. I guess for the amt of mem used I may need to write some test perl scripts to see how they react so I can tune mine.

I am a newbie and do not know what you mean by DB. If it is related to data files, I use my own subs to handle my data files with the use of crypt function.

I have looked at catalyst webpage just now and am not sure if that is really what im looking for but I will read up on it more.

Thank you very much for the help and any additional advice you have is most welcome. :)
  • Comment on Re: 2 Questions on Images and Mod_perl mem usage

Replies are listed 'Best First'.
Re^2: 2 Questions on Images and Mod_perl mem usage
by fmerges (Chaplain) on Jul 02, 2005 at 12:15 UTC

    Hi again,

    Take a look at this book (Practical mod_perl) is really good, teach you how mod_perl work, how code well mod_perl programs, and also method to gain speed when you have a very heavy webapp., using proxy methods, etc...

    If I were in your position, I would think about doing a real refactoring to your webapp. read that book, and making the application run has a handler, making your own packages etc. Or use thinks like Mason or TT or doing some more research and get your fingers into Catalyst and the MVC model. This is the way things are going...

    On the way, getting a introduction in XMLHttpRequest or commonly known as AJAX, to make the interaction with your clients more intuitive and cooler of course.

    With DB I mean DataBase, RDB... using DB to store the users info, accounts, settings, images (path, comment about picture, EXIM data, etc...).

    This way, you can handle more clients, and maintain the ones you already have. Updating your offer, performance boost, more user interaction, and could be a new look'n'feel.

    Use all that you learnt in this 2 years, and learn new things also as a learning experience ;-)

    Regards,

    fmerges