1.动静态分离
2.redis集群
3.nginx转发
4.tomcat集群,根据业务选择合适的方案,好像淘宝那种业务密集型的需要用到业务调度平衡,也就是dubbo+zookeeper
5.数据库m/s主从同步
6.抽奖类高并发类活动需要用消息队列和缓存来缓冲
具体点:
1.静态资源走nginx转发,如果是常用的js或css可以用cdn加速,利用好浏览器缓存cacheCtrol
2.请求经nginx转发到一台web服务器,这时候根据需求进行数据缓存,同时也可以利用缓存来加锁,避免重复请求(浏览器端先给个loading页面,生成遮罩,服务器返回之前禁用按钮,禁止关闭遮罩)
3.避免写简单sql增删改查代码,容易出错,效率也低,能利用工具的就用工具生成