AWS Compute Blog

Error Handling Patterns in Amazon API Gateway and AWS Lambda

Ryan Green @ryangtweets Software Development Engineer, API Gateway A common API design practice is to define an explicit contract for the types of error responses that the API can produce. This allows API consumers to implement a robust error-handling mechanism which may include user feedback or automatic retries, improving the usability and reliability of applications […]

Read More

Airtime Relaunches with Major Overhaul using ECS

Guest post by Abby Fuller (@abbyfuller) of Airtime A major part of the recent Airtime relaunch was an architecture overhaul changing our application from monolith to microservices. This switch was intended to solve some long-standing issues (bottlenecked deployments, limited redundancy, and inconsistent testing and staging/production environments), while keeping in mind our major priorities: user experience […]

Read More

Extracting Video Metadata using Lambda and Mediainfo

For a video asset, technical metadata includes information such as video codec, audio codec, resolution, frame rate, aspect ratio, and a host of other very detailed technical information. With technical metadata, customers can make intelligent decisions about what to do next in their workflow. The asset may be transcoded to a standard “house” format, resized, […]

Read More

Using API Gateway with VPC endpoints via AWS Lambda

To isolate critical parts of their app’s architecture, customers often rely on Virtual Private Cloud (VPC) and private subnets. Today, Amazon API Gateway cannot directly integrate with endpoints that live within a VPC without internet access. However, it is possible to proxy calls to your VPC endpoints using AWS Lambda functions. This post guides you […]

Read More

Sumo Logic App for AWS Lambda Released

Today, Sumo Logic made its App for AWS Lambda generally available and introduced a purpose-built Lambda function, which is immediately available for launch in the AWS Blueprint library. Now, customers using Lambda functions can better visualize things like metering for code execution, predict compute usage, and monitor memory limits through Sumo Logic’s predictive analytics capabilities, […]

Read More

Automatic Scaling with Amazon ECS

My colleague Mayank Thakkar sent a nice guest post that describes how to scale Amazon ECS clusters and services. — You’ve always had the option to scale clusters automatically with Amazon EC2 Container Service (Amazon ECS). Now, with the new Service Auto Scaling feature and Amazon CloudWatch alarms, you can use scaling policies to scale ECS […]

Read More

Service Discovery: An Amazon ECS Reference Architecture

My colleagues Pierre Steckmeyer, Chad Schmutzer, and Nicolas Vautier sent a nice guest post that describes a fast and easy way to set up service discovery for Amazon ECS. — Microservices are capturing a lot of mindshare nowadays, through the promises of agility, scale, resiliency, and more. The design approach is to build a single […]

Read More

Simply Serverless: Use constant values in Cloudwatch event triggered Lambda functions

Welcome to the second post in our new series: Simply Serverless, today we will show you a quick tip for using Cloudwatch Events with AWS Lambda. When using an AWS Cloudwatch rule to trigger a Lambda event, one of the multiple options you have to pass data onto your Lamba function is “Constant (JSON Text)”. […]

Read More

Optimizing Disk Usage on Amazon ECS

My colleague Jay McConnell sent a nice guest post that describes how to track and optimize the disk space used in your Amazon ECS cluster. — On October 4 Amazon ECS launched support for automated container and image cleanup. Read about it in the documentation. Failure to monitor disk space utilization can cause problems that prevent Docker […]

Read More

Building, Testing and Deploying Java applications on AWS Lambda using Maven and Jenkins

With continuous integration (the practice of continually integrating code into a shared code repository) and continuous deployment (the practice of building, testing, and deploying code often), developers can release software faster and more frequently. This post shows how the principles of code testing, continuous integration, and continuous deployment can be applied to your AWS Lambda […]

Read More