php - Banner Serving Optimization -


like of pages, website have multiple banners in single page.

we have internal banner system.for calling banner, web request made

/bannersystem/?page=home&subpage=top&userid=1 /bannersystem/?page=home&subpage=bottom&userid=1 /bannersystem/?page=home&subpage=center&userid=1 /bannersystem/?page=home&subpage=left&userid=1 

all these request goes different(internal) server, handled me.

for optimizing: planned call request

/bannersystem/?page=home&subpage=top,bottom,center,left&userid=1 

and page getting called, manuplate resuls. hence http requests go down.

questions:

  1. any other approach better ?
  2. should create wrapper accepts request /bannersystem/?page=home&subpage=top,bottom,center,left&userid=1 , wrapper calling old url internally avoid code changes

first of all, remember: premature optimization root of evil. sure need optimize? did measure current performances?

let's did. :)

what kind of optimization? speed? bandwith consumption? both?

did enable compression on banner system minimize bandwidth consumption , transfer time?

your approach seems enough, doing unique request instead of four. should rewrite code instead of calling old urls. don't know, maybe code fast enough , may not need it.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -