
Serverless Programming Cookbook
Practical solutions to building serverless applications using Java and AWS
- 490 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Serverless Programming Cookbook
Practical solutions to building serverless applications using Java and AWS
About this book
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.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Redshift, Amazon ML, and Alexa Skills
- Your first Kinesis data stream (KDS): AWS Command Line Interface (CLI)
- Writing data into KDS with SDK (Java)
- Invoking Lambda with a Kinesis event (Java)
- Using Amazon ML for binary classification (AWS CLI)
- Building and testing an Alexa skill (Java for Lambda, CLI for Alexa skills)
Introduction
- Knowledge of how to work on AWS account
- Knowledge of how to configure AWS CLI, as discussed in the Your first Lambda with AWS CLI recipe in Chapter 1, Getting Started with Serverless Computing on AWS
- A basic understanding of data analytics, ML, and NLP concepts
Your first Kinesis data stream (AWS CLI)
Getting ready
How to do it...
Step 1 - Creating a Kinesis data stream
Using AWS CLI
aws kinesis create-stream \
--stream-name my-first-kinesis-stream \
--shard-count 1 \
--profile admin
aws kinesis describe-stream \
--stream-name my-first-kinesis-stream \
--profile admin

aws kinesis list-streams \
--profile admin

Using the CloudFormation template
Resources:
KinesisStream:
Type: AWS::Kinesis::Stream
Properties:
Name: my-first-kinesis-stream
RetentionPeriodHours: 24
ShardCount: 1
Outputs:
KinesisStreamId:
Value: !Ref KinesisStream
Export:
Name: "KinesisStreamId"
KinesisStreamArn:
Value: !GetAtt KinesisStream.Arn
Export:
Name: "KinesisStreamArn"
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- Getting Started with Serverless Computing on AWS
- Building Serverless REST APIs with API Gateway
- Data Storage with Amazon DynamoDB
- Application Security with Amazon Cognito
- Web Hosting with S3, Route53, and CloudFront
- Messaging and Notifications with SQS and SNS
- Redshift, Amazon ML, and Alexa Skills
- Monitoring and Alerting with Amazon CloudWatch
- Serverless Programming Practices and Patterns
- Other Cloud Providers
- Other Books You May Enjoy