multithreading - Improving performance of web server -


i asked question in interview. open-ended question on web-server design. herez gist of question.

"queues quite become bottle neck applications web servers. changes make thread handling classes, thread pool , queues improve bottle neck?"

i pointed out measures 1. thread pool management 2. using buffers , packets in queues.

but interviewer not quite satisfied. design measures should have mentioned? open-ended question, answer doesn't have depend on underlying technology spring, j2ee etc.

in case there tutorial on server design, please share it.

i can't resist posting this:

http://www.engineerguy.com/videos/video-lines.htm

the main problem queue blocks waiters deeper down queue. design must either fast queues never fill up, or must take queue fill-up consideration. see recent things on bufferbloat jim gettys have posted:

http://gettys.wordpress.com/category/bufferbloat/

where buffering of ip packets in modern routers lead tcp going wrong (and has effects indirectly on queuing theory inside web servers well).


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -