论文部分内容阅读
互联网服务的特点就是面向海量级的用户,要想给这些用户提供稳定的服务要遵循Web服务的CAP原理和保持系统的柔性,针对这两大原则制定出的策略如下:在业务设计上认真考虑选择是否sharding、如何sharding、为sharding如何换用一个近似的业务描述方式;根据业务的特点,选择合适的Cache层,粗粒度、极少变更、数据对用户不敏感(即可以一定程度上接受误差)、并且非针对用户级的数据,在最靠近用户的层面上Cache,而将一些细粒度、变更相对频繁、用户相对敏感的数据或者是针对用户级的数据放在靠近数据的一段是一般的选择;选择合适的负载均衡器和负载均衡策略,一般让用户总是负载均衡到同一台后端Server是一个很好的方式。
Internet service is characterized by massive users, in order to provide stable services to these users to follow the CAP principle of Web services and maintain the flexibility of the system, the strategy developed for these two principles are as follows: Considering the business design Choose whether sharding, how to sharding, sharding how to switch to an approximate business description; according to the characteristics of the business, select the appropriate Cache layer, coarse-grained, rarely change, the data is not sensitive to the user (that is, to some extent, can accept the error ), And not for user-level data, Cache at the level closest to the user, and some fine-grained, change relatively frequent, user-sensitive data or user-level data close to the data section is normal Choose; select the appropriate load balancer and load balancing strategy, the general user is always load-balanced to the same back-end Server is a good way.