Serverless Architectures on AWS, Second Edition
Peter Sbarski, Yan Cui, Ajay Nair
  • MEAP began July 2018
  • Publication in September 2020 (estimated)
  • ISBN 9781617295423
  • 500 pages (estimated)
  • printed in black & white
free previous edition eBook 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
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.

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.

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 First steps to serverless

2.1 24-Hour Video

2.1.1 General requirements

2.1.2 Amazon Web Services

2.2 Preparing your system for Serverless

2.2.1 Setting up your system

2.2.2 Working with Identity and Access Management

2.2.3 Let’s make a bucket

2.2.4 Creating an IAM role

2.2.5 AWS Elemental MediaConvert

2.2.6 MediaConvert Role

2.3 Starting with the Serverless framework

2.3.1 Setting up Serverless framework

2.3.2 Bringing Serverless Framework to 24-Hour Video

2.3.3 Creating your first Lambda function

2.3.4 Testing in AWS

2.3.5 Looking at logs

3 Architectures and patterns

4 Security and cost

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: REST API’s

5 Yubl case study – architecture highlights, lessons learned

5.1 Authentication in a serverless environment

5.1.1 A serverless approach

5.1.2 Auth0

5.1.5 Amazon Cognito

5.2 Adding authentication to 24-Hour Video

5.2.1 The plan

5.2.2 Invoking Lambda directly

5.2.3 24-Hour Video website

5.3 Cognito User Pools

5.3.1 Configuring a User Pool

5.3.2 Cognito Endpoints

5.3.3 Preparing the website for Cognito

5.4 Exercises

5.5 Summary

6 Building REST APIs with API Gateway and Lambda

Part 3: GraphHQL With AppSync

7 A Cloud Guru case study – architecture highlights, lessons learned

7.1 The original architecture

7.1.1 The journey to 43 microservices

7.1.2 What is GraphQL

7.1.3 Moving to GraphQL

7.1.4 Service discovery

7.1.5 Security in the BFF world

7.1.6 Remnants of the legacy

7.2 Lessons learned

8 Building GraphQL APIs with AppSync

Part 4: Big data

9 The story of Z – architecture highlights, lessons learned

10 Realtime data processing with Lambda and Kinesis

Part 5: Growing Your Architecture

11 Databases & storage

12 DevOps & observability

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 Summary and next steps

Appendixes

Appendix A: Services for your serverless

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

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.

Yan Cui is an independent consultant who has run production workload at scale in AWS for over 10 years. He has been an architect and principal engineer with a variety of industries ranging from banking, e-commerce, sports streaming to mobile gaming. He has worked extensively with AWS Lambda in production, and has been helping clients around the world adopt AWS and serverless. Yan is also an AWS Serverless Hero and a prolific blogger at theburningmonk.com.

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.


placing your order...

Don't refresh or navigate away from the page.
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.
print book $34.99 $49.99 pBook + eBook + liveBook
includes previous edition eBook
Additional shipping charges may apply
Serverless Architectures on AWS, Second Edition (print book) added to cart
continue shopping
go to cart

eBook $27.99 $39.99 3 formats + liveBook
includes previous edition eBook
Serverless Architectures on AWS, Second Edition (eBook) added to cart
continue shopping
go to cart

Prices displayed in rupees will be charged in USD when you check out.

FREE domestic shipping on three or more pBooks