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:
- any other approach better ?
- 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
Post a Comment