Book Image

Hands-On Serverless Applications with Go

By : Mohamed Labouardy
Book Image

Hands-On Serverless Applications with Go

By: Mohamed Labouardy

Overview of this book

Serverless architecture is popular in the tech community due to AWS Lambda. Go is simple to learn, straightforward to work with, and easy to read for other developers; and now it's been heralded as a supported language for AWS Lambda. This book is your optimal guide to designing a Go serverless application and deploying it to Lambda. This book starts with a quick introduction to the world of serverless architecture and its benefits, and then delves into AWS Lambda using practical examples. You'll then learn how to design and build a production-ready application in Go using AWS serverless services with zero upfront infrastructure investment. The book will help you learn how to scale up serverless applications and handle distributed serverless systems in production. You will also learn how to log and test your application. Along the way, you'll also discover how to set up a CI/CD pipeline to automate the deployment process of your Lambda functions. Moreover, you'll learn how to troubleshoot and monitor your apps in near real-time with services such as AWS CloudWatch and X-ray. This book will also teach you how to secure the access with AWS Cognito. By the end of this book, you will have mastered designing, building, and deploying a Go serverless application.
Table of Contents (17 chapters)

Summary

Managing serverless application resources can be either very manual, or you can automate the workflow. Automating the process can be tricky, though, if you have a complex infrastructure. This is where tools such as AWS CloudFormation, SAM, and Terraform come in.

In this chapter, we learned how to use infrastructure-as-code tools to automate the creation of the serverless application resources and dependencies in AWS. We saw tools that are cloud-specific, and loosely coupled ones that work on multiple platforms. Then, we saw how these tools can be used to deploy Lambda-based applications to AWS.

By now, you can write your serverless infrastructure code once and then use it many times. The code that defines the infrastructure can be versioned, forked, rolled back (going back in time), and used for auditing the infrastructure changes, just like any other code. Moreover...