Tag: aws lambda

  • Serverless Offline causes MongoDb Atlas to run out of connections

    Serverless Offline causes MongoDb Atlas to run out of connections

    I was recently working on a serverless api that uses serverless offline, express.js and mongodb. We started getting emails from MongoDB Atlas telling us that we ran out of connections.

  • AWS Lambda logging best practices

    AWS Lambda logging best practices

    Logging is very important to developers as it helps us more efficiently debug a system in production and the steps that led to the occurrence of the bug. In this post, we look at ways to make logging better.

  • Best Practices for AWS Lambda & Logging

    Best Practices for AWS Lambda & Logging

    Having your application / system produce the right amount and quality of logs is just as important as having the system process the needed data because it helps make debugging easier and allows us to better optimize data. Logging on AWS lambda can be really costly if it’s not done correctly.

  • Running Serverless Framework Functions Locally

    Running Serverless Framework Functions Locally

    Developing locally makes a lot more sense than deploying to a dev environment consistently because it helps save time, save some cloud costs, and avoids obvious embarrassment. 🙂

  • Introduction to AWS CloudWatch

    Introduction to AWS CloudWatch

    AWS CloudWatch is a monitoring solution that’s provided by Amazon Web Services. It’s really a big service that contains a large collection of monitoring tools.

  • Writing to S3 from AWS Lambda

    Writing to S3 from AWS Lambda

    To write to Amazon S3 from an AWS Lambda function in Node.js, you can use the AWS SDK for JavaScript in Node.js.

  • AWS Lambda: pricing model and pitfalls

    AWS Lambda: pricing model and pitfalls

    The pay per use pricing model of function as a service makes it appear to be really cheap. For a lot of workloads, it is really a lot cheaper and maybe even free. There’s a lot of costs that can quickly add up and surprise businesses.

  • Setting CloudWatch Rentention Policies in Serverless

    Setting CloudWatch Rentention Policies in Serverless

    The serverless default for CloudWatch Logs is to keep the logs forever. CloudWatch Logs are pretty expensive to keep around indefinitely. In the serverless.yml file, we’re able to set how long the cloudwatch logs are kept for. I recommend keeping them for at least 7 days but 30 days is probably more ideal.

  • 5 Reasons to Use AWS Lambda

    5 Reasons to Use AWS Lambda

    In late 2014, AWS Lambda launched and has grown in widespread use since then. AWS lambda is a serverless computing technology which has been a game change for software development. AWS Lambda is a service that makes it easy to build small scalable applications. Lambdas are small functions that are packaged up and sent to […]

  • What is Serverless Computing

    What is Serverless Computing

    In the ten years or so that I have been programming professionally, there’s been significant changes to the way we did things whether it be the way we developed software, the way we managed software, or the environments we used to execute our code. Over time, these changes have become increasingly more and more dramatic […]