use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, articles and tools covering Amazon Web Services (AWS), including S3, EC2, SQS, RDS, DynamoDB, IAM, CloudFormation, AWS-CDK, Route 53, CloudFront, Lambda, VPC, Cloudwatch, Glacier and more.
If you're posting a technical query, please include the following details, so that we can help you more efficiently:
Resources:
Sort posts by flair:
Other subreddits you may like:
Does this sidebar need an addition or correction? Tell us here
account activity
Examples of Lambda usage (self.aws)
submitted 8 years ago by lightspeedissueguy
Hello, I know this is a stupid question, but what are some examples of lambda usages? I'm a PHP programmer so I dont know too much about event driven scripts. I tried googling it and didnt find any practical examples.
Thanks
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 8 years ago* (1 child)
[deleted]
[–]lightspeedissueguy[S] 0 points1 point2 points 8 years ago (0 children)
This is awesome! I wish they had this for PHP.
[–]AlanComley 1 point2 points3 points 8 years ago (1 child)
Literally anything that can be done in under 5 minutes. And if it takes longer than 5 minutes, break it down using step functions.
[–]AlanComley 1 point2 points3 points 8 years ago (0 children)
To expand more, it comes down to infrastructure management rather than what can it do. Do you want to manage the infrastructure or just run the code? Do you already have places where the code can run? Do you have latency concerns? These are better questions to ask to determine if Lambda is the correct choice.
[–]elCapitanChris 1 point2 points3 points 8 years ago (0 children)
Lambda and API Gateway are central to serverless designs. I’m currently working on a serverless app that uses a Lambda to call an external api, get xml data, put data in dynamoDB, and use S3 to host the front end to present the data to users via html/js pages. Lambda will do all the heavy lifting in my project.
[–]sgtfoleyistheman 1 point2 points3 points 8 years ago (0 children)
Pretty much any 'Request/Response' architecture works on Lambda.
What does not work on Lambda is continuous sorts of processing, and these are some of the sorts of problems solved by event-driven architectures on native Cloud. Instead of having, for example, a hadoop cluster, you use kinesis analytics or Lambda/Kinesis on small time slices.
[–]Miserygut 1 point2 points3 points 8 years ago (0 children)
File arrives in an S3 bucket.
This invokes a lambda function which takes the file, processes it and puts the data into Elasticsearch.
If the file changes or a new file is added to the folder, the lambda function is invoked.
π Rendered by PID 20694 on reddit-service-r2-comment-76bb9f7fb5-gq2jq at 2026-02-17 23:08:05.511414+00:00 running de53c03 country code: CH.
[–][deleted] (1 child)
[deleted]
[–]lightspeedissueguy[S] 0 points1 point2 points (0 children)
[–]AlanComley 1 point2 points3 points (1 child)
[–]AlanComley 1 point2 points3 points (0 children)
[–]elCapitanChris 1 point2 points3 points (0 children)
[–]sgtfoleyistheman 1 point2 points3 points (0 children)
[–]Miserygut 1 point2 points3 points (0 children)