Book Image

Learn AWS Serverless Computing

By : Scott Patterson
Book Image

Learn AWS Serverless Computing

By: Scott Patterson

Overview of this book

Serverless computing is a way to run your code without having to provision or manage servers. Amazon Web Services provides serverless services that you can use to build and deploy cloud-native applications. Starting with the basics of AWS Lambda, this book takes you through combining Lambda with other services from AWS, such as Amazon API Gateway, Amazon DynamoDB, and Amazon Step Functions. You’ll learn how to write, run, and test Lambda functions using examples in Node.js, Java, Python, and C# before you move on to developing and deploying serverless APIs efficiently using the Serverless Framework. In the concluding chapters, you’ll discover tips and best practices for leveraging Serverless Framework to increase your development productivity. By the end of this book, you’ll have become well-versed in building, securing, and running serverless applications using Amazon API Gateway and AWS Lambda without having to manage any servers.
Table of Contents (20 chapters)
Free Chapter
1
Section 1: Why We're Here
4
Section 2: Getting Started with AWS Lambda Functions
9
Section 3: Development Patterns
12
Section 4: Architectures and Use Cases

To get the most out of this book

To get the most out of this book, you should have experience using AWS; knowledge of public cloud architecture patterns; an understanding of Infrastructure as a Service, Platform as a Service, and Software as a Service; experience of developing using a common development language such as Node.js or Python; and you should also have your own AWS account to follow along with the examples.

Download the color images

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Save that file as message_vendor.py, in a folder called python."

A block of code is set as follows:

def hello_handler(event, context):
if not event:
return {
"body": "Hello, world!"
}

Any command-line input or output is written as follows:

docker pull amazonlinux
docker run -it -v ~/Desktop/lolcode-lambda:/root amazonlinux /bin/bash

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Let's click on Integration Request and see what's available."

Warnings or important notes appear like this.
Tips and tricks appear like this.