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

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.

主站蜘蛛池模板: 辛集市| 隆尧县| 杂多县| 大厂| 民勤县| 剑川县| 砚山县| 淮滨县| 称多县| 兰考县| 尚志市| 洛南县| 惠州市| 漳平市| 江孜县| 兰西县| 柳江县| 多伦县| 长沙县| 宜兰县| 高阳县| 大田县| 平昌县| 南安市| 招远市| 乃东县| 房产| 宁河县| 武平县| 肥城市| 大田县| 临泉县| 东平县| 龙井市| 绥中县| 瓦房店市| 洪泽县| 汝南县| 腾冲县| 五华县| 云霄县|