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

Cold start

I have already discussed cold start earlier in the chapter. Let's recap about the concern we have regarding cold start. The concern about cold start is that a function takes slightly longer to respond to an event after a period of inactivity. The time it takes varies between the run times that your application chooses.

This does tend to happen, but there are ways around the cold start if you need an immediately responsive function. If you know your function will only be triggered periodically, an approach to overcoming the cold start is to establish a scheduler that calls your function to wake it up every so often. Within AWS, you can use CloudWatch Event Scheduler to have your Lambda function invoked every 5 to 10 minutes so that AWS Lambda will not mark your function as inactive or cold. Azure Functions and Google Functions also have similar capability to have functions invoked on a schedule.

主站蜘蛛池模板: 剑阁县| 南漳县| 都安| 昌平区| 乌拉特后旗| 许昌市| 开平市| 锦屏县| 衡阳县| 靖安县| 栾川县| 石门县| 青州市| 肥东县| 平顺县| 阜康市| 临桂县| 深泽县| 临朐县| 武隆县| 东宁县| 洪江市| 台东市| 兰考县| 留坝县| 宁安市| 遵义县| 灯塔市| 合阳县| 遂平县| 钟祥市| 宜阳县| 邓州市| 潮州市| 宽城| 北辰区| 三都| 固镇县| 盱眙县| 肇东市| 阿勒泰市|