DevOps for Serverless Applications
Shashikant Bangera更新时间:2021-07-16 17:36:13
最新章节:Leave a review - let other readers know what you think封面
Title Page
Copyright and Credits
DevOps for Serverless Applications
Dedication
Packt Upsell
Why subscribe?
packt.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
Download the color images
Conventions used
Get in touch
Reviews
Introducing Serverless
Introduction to serverless
Core concept
Backend as a Service
Function as a Service
AWS Lambda
Azure Functions
Google Functions
OpenWhisk
Other serverless architectures
Serverless benefits
Faster time to market
Highly scalable
Low cost
Latency and geolocation improvement
Serverless drawbacks
Increased complexity
Lack of tooling
Complexity with architecture
Drawback in implementation
DevOps with serverless
Summary
Understanding Serverless Frameworks
ClaudiaJS
Command-line library
API builder library
Bot builder library
Apex
Zappa
Serverless Framework
Framework features
Services and deployment
Functions and events
Variables and plugins
Resources
Setting up AWS access keys
Installation of Serverless Framework
Lambda service and function deployment
Invoking locally
Deploying and invoking locally
Summary
Applying DevOps to AWS Lambda Applications
Manual deployment of a Lambda function
AWS Lambda with DevOps
Serverless frameworks with AWS CodePipeline
Continuous integration and continuous deployment with Lambda
Setting up Jenkins for a serverless application
Automated testing for Lambda functions
Unit testing a deployed application
AWS Lambda pipeline
Prerequisites
Deployment methods
Canary deployment
Setting up a simple environment
Setting up canary deployment
Making sure the deployment works fine
Deploying CodeDeploy hooks
Blue-green deployment
Integration of CloudWatch with ELK
Summary
DevOps with Azure Functions
Building a simple Azure function
Implementing continuous integration and continuous delivery with Azure Functions
Continuous integration with Azure Functions
Prerequisites
Setting up environment variables
Continuous deployment to Azure Functions
Setting up a continuous deployment Azure deployment tool
Blue-green deployment in Azure Functions
The deployment dashboard
Monitoring and logging
Accessing logs through Kudu
Logging information via table storage
Monitoring the Azure Function
Integrating with New Relic
Best practice
Source code management
Folder structure
Testing and static code analysis
Deployment and release
Summary
Integrating DevOps with IBM OpenWhisk
OpenWhisk
OpenWhisk setup and configuration
Triggers
Actions
Rules
Sequences
Building an OpenWhisk application
Creating a hello world OpenWhisk action
OpenWhisk with Serverless Framework
A simple OpenWhisk application
Continuous integration and continuous delivery with OpenWhisk
Setting up the toolchain and repository integration
Configuring the deployment
Continuous integration and continuous delivery with Serverless Framework
Continuous delivery pipeline to OpenWhisk
Deployment patterns with OpenWhisk
Canary deployment
Blue–green deployment
Dynamic dashboard
Activity Summary
Activity Timeline
Activity Log
OpenWhisk action logging management
Setting up ELK
OpenWhisk actions
OpenWhisk log forwarder
Summary
DevOps with Google Functions
CI and CD pipelines with Google Functions
Prerequisites for Cloud Functions
Cloud Functions through the GCP console
Cloud Function using a gcloud command line
Building and testing locally
CI and CD with testing
Source code management
Continuous integration and testing
Continuous delivery with Google Functions
Google environments
Monitoring and logging
Best practice
Summary
Adding DevOps Flavor to Kubeless
What is Kubeless?
Kubeless architecture
How to set up Kubeless
Setting up continuous integration and deployment
Creation of the service
Deploying the function
Invoking the function
Serverless logs
Continuous integration with Jenkins
Monitoring Kubeless
Kubeless pros and cons
Summary
Best Practices and the Future of DevOps with Serverless
Important aspects of DevOps
Collaboration and tools strategy
Agile development
Version control everything
Capture every request
Automate test and source code analysis
Continuous feedback
Time to market and the cycle time
Log metrics
Best practices for Serverless
One function one task
Functions call other functions
Minimize libraries
With HTTP – one function per route
Database connection to RDBMS
Use messages and queues
Data in motion
Measure the scale
DevOps best practices and troubleshooting for AWS Lambda
Source code versioning
Build
Test
Unit testing
Integration testing
Performance testing
Monitoring
Deployment
Logging
Security
An IAM role per function
No long-lived credentials
Do not persist secrets
Lambda in VPC
AWS Lambda best practices
Keep the handler independent of business logic
Keep warm containers alive
Dependency control
Shorter timeout for dependencies
Exception handling
Recursive coding
High availability
Runtime language
Code for cold and warm containers
Cost optimizing
Best practices for Azure functions
Avoid large and long-running functions
Cross-function communication
functions should be be stateless
functions is defensive
The same function app should not have code for test and production
Use asynchronous code but avoid blocking calls
Configure host behaviors to better handle concurrency
Best practices for Google Functions
Code idempotent functions
Signal the completion of function calls
Do not start background activities
Always delete temporary files
Local development
Error reporting
Use SendGrid to send emails
Use dependencies wisely
Use global variables to reuse objects in future invocations
Do lazy initialization of global variables
Summary
Use Cases and Add-Ons
AWS Lambda use cases and add-ons
AWS Lambda use cases
Serverless website
Video and image processing
Logs Processing and notification
Controlling the IoT
Backup and daily tasks
Continuous integration and continuous deployment
Monitoring
Static website
Warm-up
Azure Functions add-ons
Google Functions add-ons
Summary
DevOps Trends with Serverless Functions
The impact of Serverless on Ops
The direction of DevOps with serverless
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
更新时间:2021-07-16 17:36:13