SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist stef25's Avatar
    Join Date
    Nov 2004
    Location
    belgium
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    relationship between bandwidth intensity and server load

    since images are usually the most bandwidth intensive elements of a web app, does this also mean they pose the heaviest load on the server that has to retrieve them from a db? im thinking of "normal" apps like e-shops and the product images.
    I need someone to protect me from
    all the measures they take in order to protect me

  2. #2
    SitePoint Guru MikeBigg's Avatar
    Join Date
    Jun 2004
    Location
    Reading, UK
    Posts
    970
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the images are in the db, then yes that will likely be the heaviest load on the server.

    Most apps have the image in the file system with only the link to that file in the db.

    Providing the image is served cleanly, ie not going through a script, serving images is likely to load the server less than the db. (typically).

    Mike

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,629
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Images in the DB might be a heavy memory load, but they are not that heavy a processing load. All you are doing is loading the image out of a source (DB or file) and then passing it back to the client. It is not computationally intensive.

    Things that can cause heavier processing load would be serialization and deserialization of objects--such as loading an XML fragment into your data structure. Also up there would be formatting massive data grids and the like.

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Images on the filesystem (or any static resource really) won't have a huge effect on server load unless you're a very popular site. It's also really easy to move static content like images or videos to a separate server if the load on your app server is getting too high.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •