2008年12月13日星期六

Re: [fw-mvc] Image resizing performance question

Another suggestion for performance would be to have a separate host that will serve the images. This way you will have your server serving PHP while your images are on a different server (http://www.lighttpd.net/ can be used to serve those) from a domain http://images.yoursite.com

Just a couple of things to consider.

Nikolaos

On Sat, Dec 13, 2008 at 13:32, Raavi Raaj <raaviraaj77@gmail.com> wrote:
Hi,

Performance wise which solution is better for resizing + caching + serving images
All image requests are handled via...
1. Controller + action
2. Dedicated php script outside of the mvc (using htaccess to redirect relevant requests)

I serve images in three sizes small, medium and large and the url for the images look like
1. Small = domain.com/images/s/news-x.xxxxxxxx-xxxx-xxxx.jpg
2. Medium = domain.com/images/m/news-x.xxxxxxxx-xxxx-xxxx.jpg
etc.

All images are stored in the "data/uploads/" folder outside of the public_html folder
I look forward to your suggestions.

Why is performance important?
Cause I am on a shared host with limited server resources :)

Also, if possible could someone share how they handle image serving through a script/mvc

-R

P.S. Some pages have requests to around 30+ images (thumbnails).



--
The contents of this message may contain confidential or privileged information and is intended solely for the recipient(s). Use or distribution to and by any other party is not authorized. If you are not the intended recipient, copying, distribution or use of the contents of this information is prohibited.

没有评论: