天天看點

《PaaS程式設計》一導讀

《PaaS程式設計》一導讀

程式設計很艱難

程式設計是一項很艱苦的工作。相當艱苦。當你完成代碼編寫并且編譯成功,你很開心。可是你會發現程式存在bug,這耗費了你幾小時、幾天、甚至幾周時間去查找、定位、解決這些問題和邊界情況。當你完成所有編碼并且認為不會再有更難的問題了,你還得部署代碼:vim apache.conf.vim my.cnf.vim /etc/host.iptables。當你覺得你是一個程式員時,突然你深深陷入了系統管理的泥潭中,完全不明白怎麼會這樣。

程式員比較擅長的事是創造性的偷懶。當一個程式員重複做同一件事情時,總有一天他會想:難道我的電腦無法幫我完成嗎?大概在2005年,世界上很多程式員的改編使得apache.conf檔案變化巨大。幾位傑出程式員決定他們再也不願意這樣繼續下去。

devops和paas兩種模式的橫空出世改變了應用部署模式。devops對apache.conf檔案編輯工作的回應是:我可以編寫代碼模闆(稱為技巧或者大全)來幫我完成系統管理。paas對apache.conf檔案編輯工作的回應是:我能編寫程式來幫我進行系統管理。于是很多關于devops的好書問世了,例如dan bode和nan liu合著的《puppet types and providers》 或者stephen nelson-smith寫的《test-driven infrastructure with chef》,但是幾乎沒有關于paas的書。

paas很棒!你在專有主機上獲得的好處(例如每個應用都運作在自己的程序并系統負載均衡)在共享主機上能輕松獲得(你不需要做任何配置管理,paas替你完成了)。但是這些好處是有代價的。你必須編寫能夠在paas環境下運作的代碼。

<a href="https://yq.aliyun.com/articles/118094">第1章 開發者的雲</a>

<a href="https://yq.aliyun.com/articles/118095">1.1 開發者的困境</a>

<a href="https://yq.aliyun.com/articles/118096">1.2 雲能為創新做什麼</a>

<a href="https://yq.aliyun.com/articles/118100">1.3 雲:發展曆程簡介</a>

<a href="https://yq.aliyun.com/articles/118102">1.4 雲的核心技術</a>

<a href="https://yq.aliyun.com/articles/118105">1.5 管理平台與産品化平台</a>

<a href="https://yq.aliyun.com/articles/118110">1.6 雲計算的承諾(或者炒作)</a>

<a href="https://yq.aliyun.com/articles/118115">1.7 雲技術的未來5年</a>

<a href="https://yq.aliyun.com/articles/118116">1.8 兌現承諾</a>

<a href="https://yq.aliyun.com/articles/118120">第2章 什麼是paas</a>

<a href="https://yq.aliyun.com/articles/118122">2.1 魔術網站</a>

<a href="https://yq.aliyun.com/articles/118126">2.2 開發者早期的選擇</a>

<a href="https://yq.aliyun.com/articles/118129">2.3 paas:綜合兩種方式的最佳方案</a>

<a href="https://yq.aliyun.com/articles/118131">2.4 paas:現代應用的虛拟工具</a>

<a href="https://yq.aliyun.com/articles/118133">2.5 重建信心</a>

<a href="https://yq.aliyun.com/articles/118138">第3章 paas類型</a>

<a href="https://yq.aliyun.com/articles/118140">3.1 不可移植的paas:遵照一個模闆</a>

<a href="https://yq.aliyun.com/articles/118183">3.2 可移植性:不再繁瑣</a>

<a href="https://yq.aliyun.com/articles/118184">3.3 走向公開标準</a>

第4章 遺留應用遷移到paas

4.1 初步考慮

4.2 概述

4.3 資産托管

4.4 會話管理

4.5 緩存

4.6 異步處理

4.7 sql

4.8 nosql

4.9 各種陷阱

第5章 在paas上開發新應用程式

5.1 分解龐然大物

5.2 将api應用于移動開發

5.3 json和rest的出現

5.4 使用基于rest的元服務

5.5 paas的獨特貢獻

5.6 摩爾定律的影響力