- 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.
- Containerization with LXC
- SharePoint 2013 WCM Advanced Cookbook
- 循序漸進學Docker
- 精解Windows8
- Windows Server 2019 Administration Fundamentals
- 8051軟核處理器設計實戰
- Kali Linux 2018:Windows Penetration Testing
- 從實踐中學習Kali Linux無線網絡滲透測試
- Linux服務器配置與管理
- Linux設備驅動開發
- Linux基礎使用與案例
- CentOS 6 Linux Server Cookbook
- Learn CUDA Programming
- 統信UOS應用開發進階教程
- Windows網絡編程(第2版)