遇到两道面试题,以前接触的很少,请教各位大大:
1. Imagine you have a big online storefront. Your webserver can only do 1,000 concurrent requests. Many people are visiting your website and you want to support 3,000 concurrent requests. What would you do? The limitation is computational power and not bandwidth.
这个我真只能瞎猜..
2. Imagine you have a database that can only do 2,000 queries a second. Your web application gets 5,000 queries a second, what can you do to improve the situation? Imagine its a stock quote engine for NASDAQ and that the queries are about the top 100 stocks at closing.
水平分段?对closing做索引?我感觉这都是比较直接的了,有没有更好的技术?现在流行的那些NoSQL, MemCached之类的东西对这个有没有帮助?
也不是要很精确的答案,说说您知道的技术就好~~ 谢啦
------解决方案--------------------------------------------------------
分布式存储
------解决方案--------------------------------------------------------
No Imagine ...
------解决方案--------------------------------------------------------
http://stackoverflow.com/questions/7096723/scalability-interview-qn
别人已经作了很多讨论了,仔细看看