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

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.

主站蜘蛛池模板: 扎赉特旗| 尚志市| 北流市| 襄汾县| 佛教| 巫山县| 昌都县| 永安市| 菏泽市| 平潭县| 静海县| 天柱县| 峡江县| 峨眉山市| 澄城县| 泰宁县| 苍溪县| 池州市| 金沙县| 顺义区| 上饶县| 楚雄市| 轮台县| 肇庆市| 石嘴山市| 繁昌县| 通城县| 眉山市| 四会市| 淮滨县| 名山县| 澄城县| 堆龙德庆县| 威海市| 来宾市| 松潘县| 德阳市| 黄龙县| 明水县| 辽阳市| 奉贤区|