Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Serverless Applications with Go
  • Table Of Contents Toc
Hands-On Serverless Applications with Go

Hands-On Serverless Applications with Go

By : Mohamed Labouardy
5 (1)
close
close
Hands-On Serverless Applications with Go

Hands-On Serverless Applications with Go

5 (1)
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)
close
close

Load testing

We've already seen how to use benchmark tools, such as Apache Benchmark, and how to test harness. In this section, we will look at how to use the Lambda itself as a serverless testing test platform.

The idea is simple: we will write a Lambda function that will call the Lambda function we want to test, and write its result to a DynamoDB table for reporting. Fortunately, no coding is required here, as the Lambda function is already available in the Blueprints section:

Give the function a name and create a new IAM role, as described in the following schema:

Click on Create function and the function should be created with permissions granted to perform the following:

  • Push logs to CloudWatch.
  • Invoke other Lambda functions.
  • Write data to the DynamoDB table.

The following screenshot gives you the glimpse of after the preceding task is completed:

Before launching...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On Serverless Applications with Go
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon