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

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.

主站蜘蛛池模板: 万荣县| 石狮市| 醴陵市| 庆安县| 嘉兴市| 洪江市| 天门市| 宜阳县| 胶州市| 都昌县| 平江县| 胶州市| 绥芬河市| 绥中县| 宁蒗| 成安县| 闵行区| 海淀区| 金华市| 墨江| 东莞市| 宁武县| 泸州市| 庆元县| 榆中县| 上杭县| 徐水县| 大竹县| 朝阳县| 鹰潭市| 攀枝花市| 马龙县| 门头沟区| 襄樊市| 宜兰市| 贵溪市| 青川县| 米泉市| 靖宇县| 阳新县| 保康县|