售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Docker for Serverless Applications
Packt Upsell
Why subscribe?
PacktPub.com
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
Conventions used
Get in touch
Reviews
Serverless and Docker
What is serverless?
The relationship between serverless and FaaS
The disadvantages of serverless FaaS
Docker to the rescue
Common architecture of a serverless FaaS
System layers
FaaS layers
Serverless/FaaS use cases
Hello world, the FaaS/Docker way
Hello OpenFaas
Hello OpenWhisk
Say hello to the Fn project
Exercise
Summary
Docker and Swarm Clusters
What is a container?
What is Docker?
Installing Docker
Building a container image
Shipping an image
Running a container
Docker Swarm clusters
Setting up a cluster
Masters and workers
Services and tasks
Docker and serverless
Exercises
Summary
Serverless Frameworks
AWS Lambda
Limitations
Lambda termination
Container reuse
Native executables
Azure Functions
Scaling
Limitations
Durable functions
Google Cloud Functions
Overview
Execution model
Statelessness
Timeout
Execution guarantees
IBM Cloud Functions
The Serverless Framework
Exercise
Summary
OpenFaaS on Docker
What is OpenFaaS?
Architecture
OpenFaaS components
Function watchdog
Command-line interface
API gateway
Installing OpenFaaS
Preparing a function
Packing a C program
Defining and invoking a function with the UI
Using the OpenFaaS CLI
Defining a new function
Building and pushing
Deploying and invoking
Templates
The OpenFaaS dashboard
Exercises
Summary
The Fn Project
The Fn Project
Fn's architecture
Using Fn CLI
Let's deploy a local function
Trying again with Golang
Examining call logs and errors
Deploying Fn on Docker Swarm
Monitoring with Fn UI
Viewing call logs with MyAdmin
Exercise
Summary
OpenWhisk on Docker
What is OpenWhisk?
Installing OpenWhisk
Using the wsk client
Components and architecture
Architecture
Components
API gateway
Controller
Database
Kafka
Invoker
Action runtime
Function preparation
OpenWhisk Docker SDK
Preparing a Go function
Invoking functions
Invocation flows
Action invoke
Obtaining activation results
User interface
Exercises
Summary
Operating FaaS Clusters
Stabilizing the configuration
Choosing the right network plugin
New ingress and routing
Tracing component
Retry and circuit breaker
Retry
Circuit breaker
Preparing a production cluster
Cost savings with Spot instances
Using EC2 Spot instances
Let's start
Workers on Spot instances
Working with the network plugin
Creating a network
Creating an operational control plane
Service balancer operator
Logging
Scripting Docker with Golang
Preparing the tool
Making Go scriptable
Simple Docker script
Script reacting to Docker events
Exercises
Summary
Putting Them All Together
A mobile payment scenario
A Parse platform as a backend
Preparation
Defining a transfer entity
WebHook
Preparing a WebHook in Fn
An event state machine with a blockchain
How the WebHook uses the blockchain
Wrapping a legacy with a function
A function as a Glue
A stream processor
Inter-FaaS platform networking
Exercises
Summary
The Future of Serverless
FaaS and Docker reviews
Runtime for function containers
Meet RunF
Within a Docker network
What's next?
LinuxKit – immutable infrastructure for FaaS
Beyond serverless
Declarative containers
Exercises
Summary
References
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜