万本电子书0元读

万本电子书0元读

顶部广告

Hands-On Serverless Computing电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Kuldeep Chowhan

出  版  社:Packt Publishing

出版时间:2018-07-23

字       数:31.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(条)
  • 读书简介
  • 目录
  • 累计评论(条)
Deploy functions efficiently using different cloud-based serverless offerings Key Features *Understand the concept of Function-as-a-Service *Implement Serverless solutions using AWS Lambda, Azure Functions and Google Cloud Functions *Practical approach towards choosing the best tool for your serverless environment Book Description Serverless applications and architectures are gaining momentum and are increasingly being used by companies of all sizes. Serverless software takes care of many problems that developers face when running systems and servers, such as fault tolerance, centralized logging, horizontal scalability, and deployments. You will learn how to harness serverless technology to rapidly reduce production time and minimize your costs, while still having the freedom to customize your code, without hindering functionality. Upon finishing the book, you will have the knowledge and resources to build your own serverless application hosted in AWS, Microsoft Azure, or Google Cloud Platform, and will have experienced the benefits of event-driven technology for yourself. This hands-on guide dives into the basis of serverless architectures and how to build them using Node.js as a programming language, Visual Studio Code for code editing, and Postman for quickly and securely developing applications without the hassle of configuring and maintaining infrastructure on three public cloud platforms. What you will learn *Understand the benefts of serverless computing and know when to use it *Develop serverless applications on AWS, Azure, and Google Cloud *Get to grips with Function as a Service (FaaS) *Apply triggers to serverless functions *Build event-driven apps using serverless frameworks *Use the Node.js programming language to build serverless apps *Use code editors, such as Visual Studio Code, as development environments *Master the best development practices for creating scalable and practical solutions Who this book is for This book is targeted towards developers, system administrators or any stakeholder working in the Serverless environment and want to understand how functions work. Basic idea of serverless architecture can be an added advantage
目录展开

Title Page

Copyright and Credits

Hands-On Serverless Computing

Dedication

Packt Upsell

Why subscribe?

PacktPub.com

Foreword

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

What is Serverless Computing?

What is serverless computing?

Serverless and event-driven collision

What is FaaS?

State

Execution duration

Understanding cold start

API gateway

The benefits of serverless computing

Reduced operational cost

Rapid development

Scaling costs

Easier operational management

Easier packaging and deployment

Time to market

What serverless computing is not

Comparison with PaaS

Comparison with containers

#NoOps

Limits to serverless computing

Infrastructure control

Long running application

Vendor lock-in

Cold start

Shared infrastructure

Server optimization is a thing of the past

Security concerns

Deployment of multiple functions

Limited number of testing tools

Summary

Development Environment, Tools, and SDKs

Development environment and tools

Visual Studio Code

Setting up Visual Studio Code

Hardware

Platforms

Additional Windows requirements

Additional Linux requirements

Installing on macOS

Launching VS Code from the Command Line

Manually adding Visual Studio Code to your path

Touch Bar support

Installing on Linux

Debian and Ubuntu-based distributions

RHEL, Fedora, and CentOS-based distributions

openSUSE and SLE-based distributions

AUR package for Arch Linux

Nix package for NixOS (or any Linux distribution using Nix package manager)

Installing the .rpm package manually

Installing on Windows

Icons are missing

Why are some icons not appearing in the workbench and editor?

Visual Studio Code User Interface

Basic layout

Side-by-side editing

Explorer window

Keyboard shortcuts

Node.js

Node Package Manager

Node.js installation

Installation steps

Node.js tutorial in VS Code

Running Hello Readers

Integrated Terminal

Postman

Installation

Installing on macOS

Installing on Windows

Linux installation

Updating Postman – native app (macOS, Windows, and Linux)

Postman Echo

Sending the first request using Postman

How does this work in Postman?

SDKs

AWS Node.js SDK

Installation

Configuration

Microsoft Azure Node.js SDK

Installation

Configuration/Authentication

Google Cloud Node.js SDK

Installation

Configuration/authentication

Summary

Getting Started with AWS Lambda

What is AWS Lambda?

How does AWS Lambda work?

Use cases

Web apps

IOT and mobile backends

Extract, Transform, Load (ETL)

Data processing

Real-time processing

Execution environment

Environment variables

Execution context

AWS Lambda Function–Hello World

Function code – configuration

Publishing and testing your changes

Configuring options for AWS Lambda

Memory configuration

Execution time configuration

Network configuration

Function versioning and aliases

Traffic Shifting using aliases

Environment variables

Securing AWS Lambda using IAM

Authenticating

Access control

Identity-based policies (IAM policies)

Resource-based policies (Lambda function policies)

AWS Lambda permissions model

Summary

Triggers and Events for AWS Lambda

Triggers for AWS Lambda

API Gateway Trigger

AWS IoT Trigger

IoT Button

IoT rule

Alexa trigger

CloudFront trigger

CloudWatch trigger

CloudWatch Events

CloudWatch Logs

CodeCommit Trigger

Cognito Trigger

Scheduled Events Trigger

AWS Config Trigger

DynamoDB Trigger

Kinesis Trigger

Amazon Kinesis Data Streams

Amazon Kinesis Data Firehose

S3 Trigger

SNS Trigger

Summary

Your First Serverless Application on AWS

Technical requirements

Your first serverless app (using the AWS Console)

Creating a function

Testing the function

Updating the function

Publishing a new version

Creating an alias for a Lambda function

Your first serverless app (using the AWS SAM)

Creating a function

AWS SAM

Creating a SAM template for your serverless app

Testing a serverless app locally

Publishing a serverless app

Packaging a serverless app

Deploying a serverless app

Summary

Serverless Orchestration on AWS

What is AWS Step Functions?

How does AWS Step Functions work?

App using sequential steps

App using branching steps

App using parallel steps

Operational visibility

Creating your first state machine

State machine using Lambdas

Summary

Getting Started with Azure Functions

An introduction to Azure Functions

Azure serverless platform

Compute

Database

Storage

Messaging

Security

Orchestration

API Management

Azure Function Proxies

Analytics

Azure portal

Dashboards

Azure Cloud Shell

Azure Functions console

Configuring Azure Functions

Function app settings

Runtime

Deployment slots

Hosting plan

Consumption plan

App Service plan

Authorization keys

Platform features

Application settings

SSH

Kudu – Advanced tools

API Definition

Summary

Triggers and Bindings for Azure Functions

Azure Function triggers and bindings

Example binding and trigger

Azure services–triggers and bindings

Azure Blob storage

Trigger

Bindings

Azure Cosmos DB

Trigger

Azure Event Grid

HTTP and webhook bindings

HTTP trigger

Webhook trigger

Timer trigger

Summary

Your First Serverless Application on Azure

Technical requirements

Your first serverless app (using the Azure portal)

Creating an HTTP trigger-based function

Testing Azure Functions

Managing Azure Functions

Triggers and bindings

Authorization level

Function and host keys

Monitoring your Azure Function

Function proxies

Generating automation script

Your first Serverless app (using Azure Functions Core Tools)

Azure Functions Core Tools

macOS

Windows

Visual Studio Code

Create a local Azure Function app

Create a local Azure Function

Publishing the local Azure Function app

Summary

Getting Started with Google Cloud Functions

Google Cloud Serverless Platform

Application development

Google App Engine

Google Cloud Functions

Analytics and Machine Learning

An Introduction to Google Cloud Functions

Google Cloud Console

Creating a Google Cloud project

Google Cloud Project Dashboard

Google Cloud Shell

Google Cloud Functions Console

Access Control using IAM

Cloud Functions runtime service account

Cloud Functions Service account

Creating a Google Cloud Functions user

Configuring Google Cloud Functions

Types of Google Cloud Functions

Configuration options

Summary

Triggers and Events for Google Cloud Functions

Technical requirements

Events

Event parameter

Triggers

Google Cloud Storage

Google Cloud Pub/Sub

HTTP triggers

Handing different HTTP methods

Summary

Your First Serverless Application on Google Cloud

Technical requirements

Your first serverless app (using the Google Cloud Console)

Creating a Google Cloud Function

Testing a Google Cloud Function

Testing using Postman

Viewing logs for Google Cloud Functions

Your first serverless app (on a local workstation)

gcloud CLI

What is gcloud?

Installing gcloud

macOS

Windows

gcloud beta commands

Initializing the gcloud CLI

Creating a Google Cloud Function

Deploying a Google Cloud Function

Summary

Reference Architecture for a Web App

Technical requirements

Reference architecture

Friendly domain name

SSL/TLS certificate

Amazon API Gateway + AWS Lambda

Amazon DynamoDB

Hotel search

Lambda Function + API Gateway

Amazon DynamoDB

Add to cart

Lambda Function + API Gateway

Amazon DynamoDB

Summary

Reference Architecture for a Real-time File Processing

Technical requirements

Reference architecture

S3 bucket

Amazon Simple Notification Service

AWS Lambda

Photo processing application

Three Lambda functions

S3 Bucket + Amazon SNS

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(条) 个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部