Amazon Interview Question
Software Engineer / DevelopersI think the question itself is about load balancing, isn't it. So I would use some hardware LB (like BigIP) this way.
1 LB; a number of apaches or other WS-s behind it.
Each time request is sent, LB routes it to WS with less load. After then cookie is assigned to the http session so next time LB will route a request from the same user to the web server his session is linked to.
So sessions are sticky. Something like this.
try to reduce number of http request by
- MaYanK January 27, 20111) Image spriting
2) Caching pages at browser
3) use CDN server for static web pages
4) If we allow to increase webserver then load balancing