- Building Serverless Web Applications
- Diego Zanon
- 203字
- 2021-07-15 17:31:24
Atomic deploys
Deploying a new version of a serverless function is easy. You update the code and the next time that a trigger requests this function, your newly deployed code will be selected to run. This means that, for a brief moment, two instances of the same function can be executed concurrently with different implementations. Usually, that's not a problem, but when you deal with persistent storage and databases, you should be aware that a new piece of code can insert data into a format that an old version can't understand.
Also, if you want to deploy a function that relies on a new implementation of another function, you need to be careful in the order that you deploy those functions. Ordering is often not secured by the tools that automate the deployment process.
The problem here is that current serverless implementations consider that deployment is an atomic process for each function. You can't batch deploy a group of functions atomically. You can mitigate this issue by disabling the event source while you deploy a specific group, but that means introducing downtime into the deployment process. Another option would be to use a Monolith approach instead of a Microservices architecture for serverless applications.
- Facebook Application Development with Graph API Cookbook
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計(jì)模式
- PHP程序設(shè)計(jì)(慕課版)
- R語言游戲數(shù)據(jù)分析與挖掘
- Java Web應(yīng)用開發(fā)技術(shù)與案例教程(第2版)
- Monitoring Elasticsearch
- ANSYS Fluent 二次開發(fā)指南
- Mastering ROS for Robotics Programming
- ElasticSearch Cookbook(Second Edition)
- App Inventor創(chuàng)意趣味編程進(jìn)階
- Programming Microsoft Dynamics? NAV 2015
- JBoss AS 7 Development
- 軟件開發(fā)中的決策:權(quán)衡與取舍
- Prezi Cookbook
- PostGIS Cookbook