Serverless Architectures on AWS, Second Edition
Peter Sbarski, Ajay Nair
  • MEAP began July 2018
  • Publication in Spring 2020 (estimated)
  • ISBN 9781617295423
  • 500 pages (estimated)
  • printed in black & white
free previous edition included
An eBook copy of the previous edition of this book is included at no additional cost. It will be automatically added to your Manning Bookshelf within 24 hours of purchase.

Finally a clear step by step introduction to Serverless projects.

Giampiero Granatella


An eBook copy of the previous edition, Serverless Architectures on AWS (First Edition), is included at no additional cost. It will be automatically added to your Manning Bookshelf within 24 hours of purchase.

Serverless Architectures on AWS, Second Edition teaches you how to design, secure and manage serverless backends that can power the most demanding web and mobile apps! This new edition has been fully-updated to include new chapters on current best practices and innovative use-cases, along with full coverage of the latest changes to AWS.
Table of Contents detailed table of contents

Part 1: First Steps

1 Going serverless

1.1 What’s in a name?

1.2 Understanding serverless architectures

1.2.1 Service-oriented architecture and microservices

1.2.2 Implementing the architecture the conventional way

1.2.3 Implementing architecture the serverless way

1.3 Making the call to go serverless

1.4 Serverless pros and cons

1.5 Summary

2 Architectures and patterns

3 First steps to serverless

3.1 24-Hour Video

3.1.1 General requirements

3.1.2 Amazon Web Services

3.2 Preparing your system for Serverless

3.2.1 Setting up your system

3.2.2 Working with Identity and Access Management

3.2.3 Let’s make a bucket

3.2.4 Creating an IAM role

3.2.5 AWS Elementals MediaConvert

3.2.6 MediaConvert Role

3.3 Starting with the Serverless framework

3.3.1 Setting up Serverless framework

3.3.2 Bringing Serverless Framework to 24-Hour Video

3.3.3 Creating your first Lambda function

3.3.4 Testing in AWS

3.3.5 Looking at logs

4 Security and cost on AWS

4.1 Security model and identity management

4.1.1 Creating and managing IAM users

4.1.2 Groups

4.1.3 Roles

4.1.4 Resources

4.1.5 Permissions and policies

4.2 AWS CloudTrail

4.2.1 Enabling CloudTrail

4.3 Cost

4.3.1 Creating billing alerts

4.3.2 Monitoring and optimizing costs

4.3.3 Using the Simple Monthly Calculator

4.3.4 Calculating Lambda and API Gateway costs

4.4 Summary

Part 2: Core ideas

5 Authentication and authorization with Cognito

6 Lambda

7 API Gateway

8 Observability

9 DevOps

Part 3: Growing your architecture

10 Storage

11 Database

Part 4:

12 Protocols, events, and workflows

13 Blackbelt Lambda

13.1 Where to optimize?

13.2 Before we get started

13.2.1 How a Lambda function handles requests

13.2.2 Latency — cold vs. warm

13.2.3 Load generation on your function and application

13.2.4 Tracking performance and availability

13.3 Optimizing latency

13.3.1 Minimize deployment artifact size

13.3.2 Allocate sufficient resource to your execution environment

13.3.3 Optimize function logic

13.4 Concurrency

13.4.1 Correlation between Requests, latency, and concurrency

13.4.2 Managing concurrency

13.5 Summary

14 Next steps


Appendix A: Services for your serverless architecture

A.1 API Gateway

A.2 Simple Notification Service

A.3 Simple Storage Service

A.4 Simple Queue Service

A.5 Simple Email Service

A.6 Relational Database Service

A.7 DynamoDB

A.8 Algolia

A.9 Elastic Transcoder

A.10 Media Services

A.11 Kinesis Streams

A.12 Athena

A.13 AppSync

A.14 Cognito

A.15 Auth0

A.16 Other services

Appendix B: Serverless Framework and SAM

B.1 Serverless Framework

B.1.1 Installation

B.1.2 Beginning Serverless Framework

B.1.3 Using the Serverless Framework

B.1.4 Packaging

B.1.5 Testing

B.1.6 Plugins

B.1.7 Examples

B.2 Serverless Application Model

B.2.1 Getting started

B.2.2 Example with SAM

B.3 Summary

Appendix C: Authentication and authorization

Appendix D: Auth0

Appendix E: Lambda insider

Appendix F: Models and Mapping

Appendix G: S3 event message structure

About the Technology

Leave behind tedious server maintenance, scheduled downtimes, constant patching, and complex infrastructure! Serverless technologies such as AWS Lambda, give you the tools to build complete applications at scale using self-managing cloud-hosted services that automatically update and scale on demand. Serverless systems enable flexible new architectures that replace or augment traditional back-end servers. On the AWS platform, the centerpiece of serverless applications is AWS Lambda, a service for writing and deploying small, single-purpose cloud-hosted functions. By composing and combining Lambda functions together with other AWS and third-party services, you can create powerful applications that help bring down costs, work faster, and have fantastic support.

About the book

Serverless Architectures on AWS, Second Edition teaches you how to design, secure, and manage serverless backend APIs for web and mobile applications on the AWS platform. You'll get going quickly with this book's relevant real-world examples, code listings, diagrams, and clearly-described architectures that you can readily apply to your own work. You’ll master serverless systems using AWS Lambda and the myriad of other services on the AWS platform.

This new edition has been fully updated to reflect the newest serverless design best practices and changes to AWS, including covering DynamoDB, Cognito, Google Firestore, AWS Elementals MediaConvert, Step Functions, and much more. There are also three new chapters dedicated to black belt tricks for Lambda, using patterns, and even DevOps for serverless applications.

What's inside

  • First steps with serverless computing
  • The principles of serverless design
  • Transitioning from servers to services
  • Important patterns and architectures
  • Writing AWS Lambda functions and using the API Gateway
  • Securing, deploying, and managing your finished architecture

About the reader

This book is for server-side and full-stack software developers with some experience using Node.js and AWS. Beginners and intermediate developers alike will find something useful inside.

About the authors

Peter Sbarski is VP of Engineering at A Cloud Guru and the head organizer of Serverlessconf, the world’s first conference dedicated entirely to serverless architectures and technologies. Throughout his extensive IT career, Peter has led teams across large enterprise solutions with a focus on web and AWS cloud technologies.

Ajay Nair is a Principal Technical Product Manager at Amazon. Ajay is one of the founding members of the AWS Lambda team, and he continues to work closely with customers and partners to define the product roadmap and strategy for AWS Lambda and the overall serverless portfolio for AWS.

Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
MEAP combo $49.99 pBook + eBook + liveBook
includes previous edition
MEAP eBook $39.99 pdf + ePub + kindle + liveBook
includes previous edition
Prices displayed in rupees will be charged in USD when you check out.

placing your order...

Don't refresh or navigate away from the page.

FREE domestic shipping on three or more pBooks