万本电子书0元读

万本电子书0元读

顶部广告

Docker for Serverless Applications电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Chanwit Kaewkasi

出  版  社:Packt Publishing

出版时间:2018-04-19

字       数:26.4万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Build applications and infrastructures that leverage Function-as-a-Service and Docker About This Book ? Implement containerization in Serverless/FaaS environments ? Utilize Docker as a functional unit of work for Serverless/FaaS platforms ? Use Docker as a portable infrastructure for Serverless Applications Who This Book Is For If you are a Developer, a Docker Engineer, a DevOps Engineer, or any stakeholder interested in learning the use of Docker on Serverless environments then this book is for you. What You Will Learn ? Learn what Serverless and FaaS applications are ? Get acquainted with the architectures of three major serverless systems ? Explore how Docker technologies can help develop Serverless applications ? Create and maintain FaaS infrastructures ? Set up Docker infrastructures to serve as on-premises FaaS infrastructures ? Define functions for Serverless applications with Docker containers In Detail Serverless applications have gained a lot of popularity among developers and are currently the buzzwords in the tech market. Docker and serverless are two terms that go hand-in-hand. This book will start by explaining serverless and Function-as-a-Service (FaaS) concepts, and why they are important. Then, it will introduce the concepts of containerization and how Docker fits into the Serverless ideology. It will explore the architectures and components of three major Docker-based FaaS platforms, how to deploy and how to use their CLI. Then, this book will discuss how to set up and operate a production-grade Docker cluster. We will cover all concepts of FaaS frameworks with practical use cases, followed by deploying and orchestrating these serverless systems using Docker. Finally, we will also explore advanced topics and prototypes for FaaS architectures in the last chapter. By the end of this book, you will be in a position to build and deploy your own FaaS platform using Docker. Style and approach A practical guide that offers a simple way to easily understand Serverless Applications utilizing Docker as the development environment.
目录展开

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

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部