官术网_书友最值得收藏!

Cloud and clustering

Another consideration for a platform is clustering . Cloud is based on slicing resources into small virtual elements and letting the users select as many as they need. In most cases, this requires the application to support a clustering mode, as using more resources will require you to scale out on multiple hosts.

Clustering has never been a trivial thing, and many developers aren't familiar with the related constraints. The platform can help them by providing specialized services to distribute the load around the cluster's nodes. Some PaaS such as CloudBees or Google App Engine provide such features, while some don't. This is the major difference between PaaS offers. Some are IaaS-like preinstalled middleware services, while some offer a highly integrated platform.

A typical issue faced is that of state management. Java EE developers rely on HttpSession to store user's data and retrieve them on subsequent interaction. Modern frameworks tend to be stateless, but the state needs to be managed anyway. PaaS has to provide options to developers, so that they can choose the best strategy to match their own business requirements. This is a typical clustering issue that is well addressed by PaaS because the technical solutions (sticky session, session replication, distributed storage engines, and so on) have been implemented once with all the required skills to do it right, and can be used by all platform users.

Thanks to a PaaS, you don't need to be a clustering guru. This doesn't mean that it will magically let your legacy application scale out, but it gives you adequate tools to design the application for scalability.

主站蜘蛛池模板: 石河子市| 桐庐县| 疏附县| 赫章县| 盐池县| 和硕县| 尖扎县| 乌兰县| 柯坪县| 黔西县| 鹿邑县| 临湘市| 濮阳市| 武陟县| 寿宁县| 昌黎县| 永德县| 乐陵市| 山东省| 敖汉旗| 海晏县| 开封县| 遂川县| 比如县| 桐城市| 稻城县| 龙井市| 咸丰县| 乌鲁木齐市| 施甸县| 瑞金市| 道真| 武城县| 大足县| 革吉县| 苗栗县| 马边| 平陆县| 综艺| 安达市| 腾冲县|