DevOps for Serverless Applications

Design, deploy, and monitor your serverless applications using DevOps practices
 
 
Packt Publishing
  • erschienen am 29. September 2018
  • |
  • 264 Seiten
 
E-Book | ePUB mit Adobe-DRM | Systemvoraussetzungen
978-1-78862-566-1 (ISBN)
 
Set up complete CI and CD pipelines for your serverless applications using DevOps principlesKey FeaturesUnderstand various services for designing serverless architecture Build CD pipelines using various cloud providers for your serverless applications Implement DevOps best practices when building serverless applicationsBook DescriptionServerless applications are becoming very popular among developers and are generating a buzz in the tech market. Many organizations struggle with the effective implementation of DevOps with serverless applications. DevOps for Serverless Applications takes you through different DevOps-related scenarios to give you a solid foundation in serverless deployment.You will start by understanding the concepts of serverless architecture and development, and why they are important. Then, you will get to grips with the DevOps ideology and gain an understanding of how it fits into the Serverless Framework. You'll cover deployment framework building and deployment with CI and CD pipelines for serverless applications. You will also explore log management and issue reporting in the serverless environment. In the concluding chapters, you will learn important security tips and best practices for secure pipeline management.By the end of this book, you will be in a position to effectively build a complete CI and CD delivery pipeline with log management for serverless applications.What you will learnExplore serverless fundamentals and effectively combine them with DevOpsSet up CI and CD with AWS Lambda and other popular Serverless service providers with the help of the Serverless FrameworkPerform monitoring and logging with serverless applicationsSet up a dynamic dashboard for different service providersDiscover best practices for applying DevOps to serverless architectureUnderstand use cases for different serverless architecturesWho this book is forDevOps for Serverless Applications is for DevOps engineers, architects, or anyone interested in understanding the DevOps ideology in the serverless world. You will learn to use DevOps with serverless and apply continuous integration, continuous delivery, testing, logging, and monitoring with serverless.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
  • Für Beruf und Forschung
  • 7,74 MB
978-1-78862-566-1 (9781788625661)
weitere Ausgaben werden ermittelt
Shashikant Bangera is a DevOps architect with 18 years of IT experience. He has vast experience with DevOps tools across the platform, with core expertise in CI, CD, the cloud, and automation. He has helped his customers adopt DevOps; architected and implemented enterprise DevOps for domains such as banking, e-commerce, and retail; and also contributed to many open source platforms. He has designed an automated on-demand environment with a set of open source tools and also contributed to the open source arena with an environment booking tool, which is available on GitHub.
  • Cover
  • Title Page
  • Copyright and Credits
  • Dedication
  • Packt Upsell
  • Contributors
  • Table of Contents
  • Preface
  • Chapter 1: 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
  • Chapter 2: 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
  • Chapter 3: 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
  • Chapter 4: 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
  • Chapter 5: 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
  • Chapter 6: 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
  • Chapter 7: 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
  • Chapter 8: 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
  • Chapter 9: 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
  • Chapter 10: DevOps Trends with Serverless Functions
  • The impact of Serverless on Ops
  • The direction of DevOps with serverless
  • Summary
  • Other Books You May Enjoy
  • Index

Dateiformat: ePUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat ePUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Bitte beachten Sie bei der Verwendung der Lese-Software Adobe Digital Editions: wir empfehlen Ihnen unbedingt nach Installation der Lese-Software diese mit Ihrer persönlichen Adobe-ID zu autorisieren!

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

30,99 €
inkl. 7% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe-DRM
siehe Systemvoraussetzungen
E-Book bestellen