Book description
Build, secure, and deploy real-world serverless applications in AWS and peek into the serverless cloud offerings from Azure, Google Cloud, and IBM Cloud
Key Features
- Build serverless applications with AWS Lambda, AWS CloudFormation and AWS CloudWatch
- Perform data analytics and natural language processing(NLP)on the AWS serverless platform
- Explore various design patterns and best practices involved in serverless computing
Book Description
Managing physical servers will be a thing of the past once you're able to harness the power of serverless computing. If you're already prepped with the basics of serverless computing, Serverless Programming Cookbook will help you take the next step ahead. This recipe-based guide provides solutions to problems you might face while building serverless applications.
You'll begin by setting up Amazon Web Services (AWS), the primary cloud provider used for most recipes. The next set of recipes will cover various components to build a Serverless application including REST APIs, database, user management, authentication, web hosting, domain registration, DNS management, CDN, messaging, notifications and monitoring. The book also introduces you to the latest technology trends such as Data Streams, Machine Learning and NLP. You will also see patterns and practices for using various services in a real world application. Finally, to broaden your understanding of Serverless computing, you'll also cover getting started guides for other cloud providers such as Azure, Google Cloud Platform and IBM cloud.
By the end of this book, you'll have acquired the skills you need to build serverless applications efficiently using various cloud offerings.
What you will learn
- Serverless computing in AWS and explore services with other clouds
- Develop full-stack apps with API Gateway, Cognito, Lambda and DynamoDB
- Web hosting with S3, CloudFront, Route 53 and AWS Certificate Manager
- SQS and SNS for effective communication between microservices
- Monitoring and troubleshooting with CloudWatch logs and metrics
- Explore Kinesis Streams, Amazon ML models and Alexa Skills Kit
Who this book is for
For developers looking for practical solutions to common problems while building a serverless application, this book provides helpful recipes. To get started with this intermediate-level book, knowledge of basic programming is a must.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
-
Getting Started with Serverless Computing on AWS
- Introduction
- Getting started with the AWS platform
- Your first AWS Lambda
- Your first Lambda with AWS CLI
- Your first Lambda with Amazon CloudFormation
- Using AWS SDK, Amazon CloudFormation, and AWS CLI with Lambda
- Dev Practices – dependency injection and unit testing
- Your first Lambda with serverless framework
-
Building Serverless REST APIs with API Gateway
- Introduction
- Building your first API using the AWS CLI
- Building your first API using Amazon CloudFormation
- Building your first API with Lambda integration
- Building and testing your first POST API method
- Mapping requests and responses with mapping templates
- Validating request payloads with models
- Lambda and API with proxy integration
- Data Storage with Amazon DynamoDB
-
Application Security with Amazon Cognito
- Introduction
- Creating a Cognito user pool
- Server-side authentication flow
- Client-side authentication flow
- User sign-up flow with Cognito
- Working with groups
- Integrating Cognito with the API gateway
- User sign-up with SMS verification and MFA
- Web Hosting with S3, Route53, and CloudFront
-
Messaging and Notifications with SQS and SNS
- Introduction
- Your first SQS queue (AWS CLI + CloudFormation)
- Creating an SQS queue and sending messages with SDK (Java)
- Receiving and sending SQS messages in batches with SDK (Java)
- Invoking the Lambda with an SQS event (Java)
- Your first SNS topic for email and SMS (AWS CLI + CloudFormation)
- Publishing to an SNS topic with SDK (Java)
- Invoking a Lambda with SNS events (Java)
-
Redshift, Amazon ML, and Alexa Skills
- Introduction
- Your first Kinesis data stream (AWS CLI)
- Writing data into Kinesis Stream with SDK (Java)
- Invoking Lambda with Kinesis events (Java)
- Using Amazon ML for binary classification (AWS CLI)
- Building and testing an Alexa skill (Java for Lambda, CLI for Alexa skill)
- Monitoring and Alerting with Amazon CloudWatch
-
Serverless Programming Practices and Patterns
- Introduction
- Enabling CORS for the API and testing with CodePen
- Implementing and testing Cognito operations with the JavaScript SDK
- Federated identity with Amazon Cognito
- Creating SSL/TLS certificate with ACM
- Fan-in and fan-out architectural patterns with AWS
- Other Cloud Providers
- Other Books You May Enjoy
Product information
- Title: Serverless Programming Cookbook
- Author(s):
- Release date: January 2019
- Publisher(s): Packt Publishing
- ISBN: 9781788623797
You might also like
book
Jupyter Cookbook
Leverage the power of the popular Jupyter notebooks to simplify your data science tasks without any …
book
Serverless Applications with Node.js
Serverless Applications with Node.js walks you through building serverless apps on AWS using JavaScript. Inside, you'll …
book
AWS Security Cookbook
Secure your Amazon Web Services (AWS) infrastructure with permission policies, key management, and network security, along …
video
Build a Serverless App with AWS Lambda - Hands On!
Immerse yourself in Amazon Web Services (AWS) with this hands-on, project-based course - and truly internalize …