无服务器
AWS Lambda函数性能:带有boto3和aioboto3的python中的并行性
异步或不异步的问题是
2017年3月6日,星期一
今天,我们正在寻找一种用GitLab CI替换Jenkins中计划工作的快速方法。不幸的是,GitLab CI不支持预定的运行。
作为我们的lambda爱好者,我们认为快速的预定lambda函数可以解决此问题。但是,我更进一步,构建了一个通用的“计划的webhook调用程序”。
转到您的AWS控制台,创建一个新的“空白” lambda函数。配置计划的事件,如下所示…
Hit next, fill in the rest of the info as you please, make sure you use Node.js 4.3
as your runtime. Use a basic execution role or create one if need be. Set memory to 512MB and timeout to 30 seconds. That’s it!
Copy paste in the below code, edit your webhookURLs
and away you go. You can also 查看完整的源代码。祝您网络愉快!