Like most of the pages, my website have multiple banners in a single page.
We have an internal banner system.For calling a banner, a web request is made like
/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 to different(internal) server, which is handled by me.
For optimizing: i planned to call request like
/bannersystem/?page=home&subpage=top,bottom,center,left&userid=1
and from page where its getting called, i will manuplate the resuls. Hence the http requests will go down.
Questions:
- Any other approach will be better ?
- Should i create a wrapper which accepts request like
/bannersystem/?page=home&subpage=top,bottom,center,left&userid=1
and from the wrapper calling the old url internally to avoid code changes