r/awslambda • • Apr 11 '23

Quick guide: Using Docker to integration test your AWS Lambda functions locally

Thumbnail
timmoth.com
3 Upvotes

r/awslambda • • Feb 16 '23

Good Developer Experience Programming Language for AWS Lambda

3 Upvotes

Like the title, which language you prefer to use for AWS lambda? I don’t have many experience, but my personal opinion.

Python:

  • Easy to use

  • But might be slow since it is Python

  • But the slow performance might be fine, because Lambda is used for not heavy calculation because of time limit

Node:

  • Big community and first target language for serverless

  • might be slow as well

  • Personally don’t like node’s coding style such as async, callback, etc

Java:

  • Long cold start

  • But this cold start can be much faster if use Lambda snapstart

  • But it’s fast if it comes to warm start phase

  • Guess build file’s size might be pretty big

Go:

  • Performance is good

  • Build binary file might be pretty light weight

  • Goroutine is good for parallel programming

  • Small community, and this might cause lack of support (I have some problems with using aws-sdk-v2)

Kotlin(Adding for fun, butI think it can be a good option as well)

  • Have Syntax sugar to not use Java any more and provide better developer experience

  • Can use all of the Java’s packages, so have a big community support

  • Many options to compile (GraalVM, JVM, JS)

  • GraalVM compile has actually has fast cold start

  • Coroutine will be good for parallel programming

  • But still have big build size I guess

How do you guys think?


r/awslambda • • Jan 24 '23

Deployment of AWS Lambda Node.js App with MySQL via GitlabCI

Thumbnail
aws.plainenglish.io
3 Upvotes

r/awslambda • • Jan 24 '23

Deploying a node js project on aws lambda?

3 Upvotes

I created a project with react js as frontend and node js as backed it uses 2 api’s , one for sending messages and other for notification it doesn’t have a database. Can someone tell me if i can deploy it on aws lambda and if i can, is there any tutorial or guidance you can help me with. ty


r/awslambda • • Jan 14 '23

Can anyone help me import python modules?

3 Upvotes

So I recently tried to import some modules onto my lambda function using this aws tutorial. I am able to install pandas and numpy, however, I could not install another module which is named tda-api. I repeated the whole process cloud9 seems to only upload layers if I do not pip install tda-api. Any help would be greatly appreciated.


r/awslambda • • Jan 09 '23

Is using global variables not a good practice? (Python)

3 Upvotes

Basically the above


r/awslambda • • Dec 05 '22

Starting up faster with AWS Lambda SnapStart | AWS Compute Blog

Thumbnail
aws.amazon.com
3 Upvotes

r/awslambda • • Sep 19 '22

For the OpenTelemetry fans, a quick guide on how to instrument AWS services with OpenTelemetry

3 Upvotes

Instrumenting AWS SQS, DynamoDB, and Lambda services with OpenTelemetry in a simple microservices system and exporting traces for visualization.

https://www.aspecto.io/blog/getting-started-with-opentelemetry-aws/


r/awslambda • • Aug 17 '22

Three Guardrails for AWS Lambda

Thumbnail
blog.symops.com
3 Upvotes

r/awslambda • • Jun 12 '22

AWS Lambda Deployer plugin for JetBrains IDE like IntelliJ, PyCharm etc

3 Upvotes

Hi community,

I have been a developing this plugin for more than a year.

Last day I published a version that supports AWS SSO profiles. So thought of sharing here.

It also supports Lambda Layers management.

Link: https://plugins.jetbrains.com/plugin/14742-aws-lambda-deployer

The above page has also got links to demo videos.

I would really appreciate your feedback.

Thanks.


r/awslambda • • Jun 09 '22

How to use moviepy on aws lambda?

3 Upvotes

How do I import moviepy on aws? I want to create functions that would resize video files and extract their audios.


r/awslambda • • May 26 '22

AWS SNS vs. SQS - What are the main differences?

Thumbnail
blog.serverlessq.com
3 Upvotes

r/awslambda • • May 24 '22

ServerlessQ 1.0 - The Slow Launch

Thumbnail
sandro.volpee.de
3 Upvotes

r/awslambda • • Apr 13 '22

Feedback wanted: Stacktape - Full power of AWS with Heroku-like experience

3 Upvotes

Hello, Stacktape creator here. I’d like to hear your feedback on the product we’ve been working on for the last 2.5 years - https://stacktape.com.

I’ve been working with AWS for more than 6 years now. And it always felt like I’m missing a PhD in AWS. I’ve tried all the tools that were supposed to make it easier (Serverless framework, SAM, Amplify, CDK, Pulumi, and more). But none of them could sufficiently abstract the complexity away. To create a production-grade application, I still had to understand all the AWS concepts like VPCs, Security groups, Subnets, IAM etc. and write 100s of lines of config.

Stacktape is different. You can use it to deploy both serverless (AWS lambda-based) or more traditional (container-based) applications. A production-grade REST API is ~30 lines of Stacktape config. This translates to ~700 lines of CloudFormation.

Stacktape supports 20+ “high-level” AWS infrastructure components, including SQL databases, Load balancers, Batch jobs, Redis clusters & more. It also integrates popular 3rd party services, such as MongoDb Atlas Clusters or Upstash Redis/Kafka.

Besides infrastructure management, Stacktape automates source-code packaging, deployments & other DevOps tasks. It also comes with an editor extension and a local development studio (GUI).

Behind the scenes, Stacktape uses CloudFormation, custom-resources and CF infrastructure modules. It also handles some logic outside of Cloudformation, using AWS SDKs.

I’ll be very happy if you (or your colleagues) give Stacktape a try and let me know what you think. If you have any questions, I’ll be very happy to answer them.


r/awslambda • • Jan 24 '22

Dashbird added observability for ✨five new AWS services ✨(AWS ELB, SNS, RDS, OpenSearch, and HTTP API Gateway)

Post image
3 Upvotes

r/awslambda • • Dec 15 '21

Lambda VPC intermittent internal aws service network issues

Thumbnail self.aws
3 Upvotes

r/awslambda • • Oct 19 '21

Autoscaling Lifecycle Hooks: Save EC2 Logs Automatically to S3 Bucket

Thumbnail
bitslovers.com
3 Upvotes

r/awslambda • • Aug 23 '21

Benchmark for Redis with edge caching

3 Upvotes

Hello

I build a benchmark app to see the performance of our new edge caching capability for Upstash Redis.

I have implemented an AWS Lambda function which reads a value from Redis using the REST API and deployed this function to 10 different regions all over the world. I am recording the latency numbers at each visit. See:

https://edge-benchmark.vercel.app/


r/awslambda • • Aug 18 '21

How to test JavaScript Lambda functions [article]

3 Upvotes

Testing distributed systems and serverless cloud infrastructures specifically is always a source of long discussions. Testing (and monitoring) IS a must, that's a no-brainer. How else would you know if what you’ve created is providing desired results? Before putting your “newborn child” out into the world, you must make sure that it’s ready for the world.

Since you can’t just throw them out without making sure they are designed as they should be, I've thrown together a quick walkthrough of 3 methods (smoke test, unit testing and integration testing) of testing javascript Lambda functions to get you started. Hope this helps any one in need :)

https://dashbird.io/blog/test-javascript-lambda-functions/


r/awslambda • • Aug 09 '21

How to test Python Lambda functions

Thumbnail
hands-on.cloud
3 Upvotes

r/awslambda • • Jun 15 '21

The latest AWS updates for serverless builders in 2021

3 Upvotes

Summing up all the latest updates from AWS in 2021 (since and including re:Invent 2020) that all serverless builders should be aware of.

Learn more: https://dashbird.io/blog/aws-serverless-updates-2021/


r/awslambda • • May 14 '21

Testing a lambda triggered by a SNS topic

3 Upvotes

Hi Could anyone give ma ideas on how you would test a lambda function(Node) which is triggered via an SNS topic ? I have used Postman for Gateway API triggered Lambdas before , but how would I test an SNS event ?


r/awslambda • • May 06 '21

6 AWS Lambda cost optimization strategies that work

3 Upvotes