- DevOps for Serverless Applications
- Shashikant Bangera
- 250字
- 2021-07-16 17:35:39
Canary deployment
Canary deployment is a deployment technique involving a gradual shift in production traffic from version A to version B, where version B is the latest version and version A is the previous version. AWS has recently introduced traffic shifting for Lambda functions aliases. An alias is a pointer to a specific version of the Lambda functions, which basically means that we can split the traffic of the functions between two different versions by specifying the percentage of incoming traffic that we want to direct to the new release. Lambda will automatically load balance requests between versions when aliases are invoked. So instead of replacing one function with another version, both versions can coexist and can be monitored as to how they perform.
All of this sounds awesome, but doing all this it not that easy. Fortunately, AWS already has a service that will help us with this problem—CodeDeploy. To use canary deployment with the AWS CodeDeploy service, we need to create a variety of resources. We need to create a CodeDeploy application, a deployment group, and aliases for the functions. We also need to create new permissions and replace all the event sources to trigger the aliases instead of the latest functions. But this can be much easier if we use the canary deployment plugin with Serverless Framework. Let's learn how we can achieve this using an example.
- Kubernetes修煉手冊
- 每天5分鐘玩轉(zhuǎn)Kubernetes
- SOA實(shí)踐者說
- 新手易學(xué):系統(tǒng)安裝與重裝
- 計(jì)算機(jī)系統(tǒng)開發(fā)與優(yōu)化實(shí)戰(zhàn)
- Linux內(nèi)核觀測技術(shù)BPF
- Linux內(nèi)核設(shè)計(jì)的藝術(shù):圖解Linux操作系統(tǒng)架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- 計(jì)算機(jī)系統(tǒng)的自主設(shè)計(jì)
- AWS SysOps Cookbook
- Linux軟件管理平臺設(shè)計(jì)與實(shí)現(xiàn)
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)實(shí)踐教程(Windows 7+MS Office 2010)
- bash shell腳本編程經(jīng)典實(shí)例(第2版)
- Office 365 User Guide
- Windows網(wǎng)絡(luò)編程(第2版)
- 操作系統(tǒng)之哲學(xué)原理第2版