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

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.

主站蜘蛛池模板: 吉木乃县| 邓州市| 沙湾县| 息烽县| 乌兰察布市| 竹山县| 湾仔区| 惠安县| 德兴市| 游戏| 礼泉县| 鹤山市| 石河子市| 绥滨县| 徐水县| 麻江县| 长泰县| 华蓥市| 正定县| 宜昌市| 威远县| 山东| 诏安县| 灌云县| 诏安县| 安平县| 东城区| 永登县| 河间市| 抚松县| 泰来县| 通辽市| 太保市| 陵水| 麻阳| 新闻| 丰宁| 新闻| 祁阳县| 宁城县| 紫金县|