Go Serverless with AWS SAM

Posted on
aws lambda news serverless

Go Serverless with AWS SAM

It’s been almost a year since support for the Go programming language in AWS Lambda was announced at re:Invent 2017. Meanwhile the Serverless hype train has gained full steam, FaaS offerings of all major cloud providers have reached a respectable level of maturity and an increasing amount of teams are building applications based on the model while figuring out how to best manage software consisting of a set of managed cloud resources and individually deployable functions. This post is a quick look at one of the approaches: The AWS Serverless Application Model.

Since I’m yet to take Go Lambda functions for a proper spin, the small example app is written in Go and available in GitHub (https://github.com/tuomovee/feelings). The example application is a “Feelings poll”. In this post we’ll be building a back-end API that receives PUTs of respondent’s mood covering the full spectrum of human experience from “very bad” to “very good” discretized into integers on a scale of 0 to 3 and allows the user to GET poll results for a specific date.

Why implement something using Google Forms in 5 minutes when you can potentially get hours of fun, a couple of blog posts and a few important lessons out of it?

Source: medium.com