3 ms·
This is true, but what triggers the lambda function to run? Where does the lambda function run when its triggered?
by Lord_Zero 10y ago
This is true, but what triggers the lambda function to run? Where does the lambda function run when its triggered?
- climber604 10y agoClearly you need to learn more about lambda https://aws.amazon.com/lambda/ https://aws.amazon.com/lambda/
- davidwells 10y agoOne lambda runs when github webhooks are fired: https://github.com/serverless/post-scheduler#github-webhook-architecture-overview https://github.com/serverless/post-scheduler#github-webhook-... The other lambda fires on a cron job https://github.com/serverless/post-scheduler#cron-job-architecture-overview https://github.com/serverless/post-scheduler#cron-job-archit...
- derefr 10y ago"Serverless" really means "your code is run as a container with a finite lifetime on an arbitrary machine in a standardized, non-configurable PaaS machine cluster." In essence, it's a return to the "cgi-bin" model of scripting, where you write a script that only runs for the lifetime of one request, and then a web server will spin it up to respond to a relevant request and it'll terminate at the end of that request. The only differences in the modern instantiation of the concept, are that: 1. the "cgi-bin" directory is a mounted object store, common to an entire cluster; and 2. there's some fancy preloading logic that lets Lambda functions stay "hot" between calls to them, so that they can run very quickly. (Sort of like Phusion Passenger does for Ruby code, except with enough isolation to make it safe for multitenant environments. Heroku's old Alpine stack might be a better comparison.)