Docker for Serverless Applications

Docker for Serverless Applications
Author: Chanwit Kaewkasi
Publisher: Packt Publishing Ltd
Total Pages: 243
Release: 2018-04-19
Genre: Computers
ISBN: 1788837576

Build applications and infrastructures that leverage Function-as-a-Service and Docker Key Features - 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 Book Description 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. 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 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.

Building Serverless Applications with Google Cloud Run

Building Serverless Applications with Google Cloud Run
Author: Wietse Venema
Publisher: O'Reilly Media
Total Pages: 203
Release: 2020-12-02
Genre: Computers
ISBN: 1492057061

Learn how to build a real-world serverless application in the cloud that's reliable, secure, maintainable, and scalable. If you have experience building web applications on traditional infrastructure, this hands-on guide shows you how to get started with Cloud Run, a container-based serverless product on Google Cloud. Through the course of this book, you'll learn how to deploy several example applications that highlight different parts of the serverless stack on Google Cloud. Combining practical examples with fundamentals, this book will appeal to developers who are early in their learning journey as well as experienced practitioners. Build a serverless application with Google Cloud Run Learn approaches for building containers with (and without) Docker Explore Google Cloud's managed relational database: Cloud SQL Use HTTP sessions to make every user's experience unique Explore identity and access management (IAM) on Cloud Run Provision Google Cloud resources using Terraform Learn how to handle background task scheduling on Cloud Run Move your service from Cloud Run to Knative Serving with little effort

Hands-On Serverless Applications with Go

Hands-On Serverless Applications with Go
Author: Mohamed Labouardy
Publisher: Packt Publishing Ltd
Total Pages: 403
Release: 2018-08-29
Genre: Computers
ISBN: 1789133831

Learn to build, secure, deploy, and manage your serverless application in Golang with AWS Lambda Key Features Implement AWS lambda to build scalable and cost-efficient applications in Go Design and set the data flow between cloud services and custom business logic Learn to design Lambda functions using real-world examples and implementation scenarios Book Description Serverless architecture is popular in the tech community due to AWS Lambda. Go is simple to learn, straightforward to work with, and easy to read for other developers; and now it's been heralded as a supported language for AWS Lambda. This book is your optimal guide to designing a Go serverless application and deploying it to Lambda. This book starts with a quick introduction to the world of serverless architecture and its benefits, and then delves into AWS Lambda using practical examples. You'll then learn how to design and build a production-ready application in Go using AWS serverless services with zero upfront infrastructure investment. The book will help you learn how to scale up serverless applications and handle distributed serverless systems in production. You will also learn how to log and test your application. Along the way, you'll also discover how to set up a CI/CD pipeline to automate the deployment process of your Lambda functions. Moreover, you'll learn how to troubleshoot and monitor your apps in near real-time with services such as AWS CloudWatch and X-ray. This book will also teach you how to secure the access with AWS Cognito. By the end of this book, you will have mastered designing, building, and deploying a Go serverless application. What you will learn Understand how AWS Lambda works and use it to create an application Understand how to scaleup serverless applications Design a cost-effective serverless application in AWS Build a highly scalable and fault-tolerant CI/CD pipeline Understand how to troubleshoot and monitor serverless apps in AWS Discover the working of APIs and single page applications Build a production-ready serverless application in Go Who this book is for This book is for Go developers who would like to learn about serverless architecture. Go programming knowledge is assumed. DevOps and Solution Architects who are interested in building serverless applications in Go can also choose this book.

Docker in Practice, Second Edition

Docker in Practice, Second Edition
Author: Ian Miell
Publisher: Simon and Schuster
Total Pages: 707
Release: 2019-02-06
Genre: Computers
ISBN: 1638356300

Summary Docker in Practice, Second Edition presents over 100 practical techniques, hand-picked to help you get the most out of Docker. Following a Problem/Solution/Discussion format, you'll walk through specific examples that you can use immediately, and you'll get expert guidance on techniques that you can apply to a whole range of scenarios. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Docker's simple idea-wrapping an application and its dependencies into a single deployable container-created a buzz in the software industry. Now, containers are essential to enterprise infrastructure, and Docker is the undisputed industry standard. So what do you do after you've mastered the basics? To really streamline your applications and transform your dev process, you need relevant examples and experts who can walk you through them. You need this book. About the Book Docker in Practice, Second Edition teaches you rock-solid, tested Docker techniques, such as replacing VMs, enabling microservices architecture, efficient network modeling, offline productivity, and establishing a container-driven continuous delivery process. Following a cookbook-style problem/solution format, you'll explore real-world use cases and learn how to apply the lessons to your own dev projects. What's inside Continuous integration and delivery The Kubernetes orchestration tool Streamlining your cloud workflow Docker in swarm mode Emerging best practices and techniques About the Reader Written for developers and engineers using Docker in production. About the Author Ian Miell and Aidan Hobson Sayers are seasoned infrastructure architects working in the UK. Together, they used Docker to transform DevOps at one of the UK's largest gaming companies. Table of Contents PART 1 - DOCKER FUNDAMENTALS Discovering Docker Understanding Docker: Inside the engine room PART 2 - DOCKER AND DEVELOPMENT Using Docker as a lightweight virtual machine Building images Running containers Day-to-day Docker Configuration management: Getting your house in order PART 3 - DOCKER AND DEVOPS Continuous integration: Speeding up your development pipeline Continuous delivery: A perfect fit for Docker principles Network simulation: Realistic environment testing without the pain PART 4 - ORCHESTRATION FROM A SINGLE MACHINE TO THE CLOUD A primer on container orchestration The data center as an OS with Docker Docker platforms PART 5 - DOCKER IN PRODUCTION Docker and security Plain sailing: Running Docker in production Docker in production: Dealing with challenges

Build Serverless Apps on Kubernetes with Knative

Build Serverless Apps on Kubernetes with Knative
Author: Amit Deshpande
Publisher: BPB Publications
Total Pages: 197
Release: 2023-08-21
Genre: Computers
ISBN: 9355515790

Learn how to deploy and maintain high-performing, resilient serverless applications using Knative KEY FEATURES ● Understand the benefits of using Knative as the framework for your serverless applications. ● Stay up-to-date with the latest features and capabilities of Knative. ● Harness Knative's capabilities to build, deploy, and manage serverless containers. DESCRIPTION As cloud computing has become increasingly important in modern development workflows, developers have begun to look for ways to harness its full potential. Serverless architecture is one such approach, and Knative is a powerful and versatile solution for deploying and managing serverless containers. This book is a comprehensive guide to Knative serverless containers. It begins by introducing the core concepts of serverless architecture and its benefits. Then, it provides an in-depth exploration of Knative, its components, and how it fits within the broader Kubernetes ecosystem. The book demonstrates how to build, deploy, and manage serverless containers using Knative through practical examples and case studies. It covers topics such as setting up a development environment, creating custom serverless applications, integrating with other cloud-native tools and services, and best practices for monitoring, logging, and troubleshooting. Toward the end, the book delves into advanced topics such as scaling, performance optimization, and security. By the book's end, you can run serverless applications on Kubernetes using Knative. WHAT YOU WILL LEARN ● Get familiar with the core concepts of serverless architecture, the Knative project, and its components. ● Learn how to set up a development environment for Knative. ● Learn how to build and deploy Knative Functions effortlessly. ● Build enterprise-grade apps using Knative components such as Serving and Eventing. ● Optimize the performance and scalability of your serverless applications. WHO THIS BOOK IS FOR Whether you're a current or aspiring tech/IT professional, a student, or someone who wants to start or advance their career in serverless architecture, this book is for you. TABLE OF CONTENTS 1. Serverless and Knative in a Nutshell 2. Installation and Configuration of Knative – Part I 3. Installation and Configuration – Part II 4. Knative Functions – An Overview 5. Knative Serving 6. Knative Eventing 7. Scaling and Routing 8. Knative Best Practices

Kubernetes for Serverless Applications

Kubernetes for Serverless Applications
Author: Russ McKendrick
Publisher: Packt Publishing Ltd
Total Pages: 311
Release: 2018-01-18
Genre: Computers
ISBN: 1788626125

Transform yourself into a Kubernetes specialist in serverless applications. Key Features Get hands-on experience in installing, configuring, and using services such as Kubeless, Funktion, OpenWhisk, and Fission Learn how to launch Kubernetes both locally and in public clouds Explore the differences between using services such as AWS Lambda and Azure Functions and running your own Book Description Kubernetes has established itself as the standard platform for container management, orchestration, and deployment. It has been adopted by companies such as Google, its original developers, and Microsoft as an integral part of their public cloud platforms, so that you can develop for Kubernetes and not worry about being locked into a single vendor. This book will initially start by introducing serverless functions. Then you will configure tools such as Minikube to run Kubernetes. Once you are up-and-running, you will install and configure Kubeless, your first step towards running Function as a Service (FaaS) on Kubernetes. Then you will gradually move towards running Fission, a framework used for managing serverless functions on Kubernetes environments. Towards the end of the book, you will also work with Kubernetes functions on public and private clouds. By the end of this book, we will have mastered using Function as a Service on Kubernetes environments. What you will learn Get a detailed analysis of serverless/Functions as a Service Get hands-on with installing and running tasks in Kubernetes using Minikube Install Kubeless locally and launch your first function Launch Kubernetes in the cloud and move your applications between your local machine and your cloud cluster Deploy applications on Kubernetes using Apache OpenWhisk Explore topics such as Funktion and Fission installation on the cloud followed by launching applications Monitor a serverless function and master security best practices and Kubernetes use cases Who this book is for If you are a DevOps engineer, cloud architect, or a stakeholder keen to learn about serverless functions in Kubernetes environments, then this book is for you.

DevOps for Serverless Applications

DevOps for Serverless Applications
Author: Shashikant Bangera
Publisher: Packt Publishing Ltd
Total Pages: 257
Release: 2018-09-29
Genre: Computers
ISBN: 1788625668

Set up complete CI and CD pipelines for your serverless applications using DevOps principles Key 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 Description Serverless 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 for DevOps 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.

Learning Apache OpenWhisk

Learning Apache OpenWhisk
Author: Michele Sciabarrà
Publisher: "O'Reilly Media, Inc."
Total Pages: 387
Release: 2019-07-03
Genre: Computers
ISBN: 1492046124

Serverless computing greatly simplifies software development. Your team can focus solely on your application while the cloud provider manages the servers you need. This practical guide shows you step-by-step how to build and deploy complex applications in a flexible multicloud, multilanguage environment using Apache OpenWhisk. You’ll learn how this platform enables you to pursue a vendor-independent approach using preconfigured containers, microservices, and Kubernetes as your cloud operating system. Michele Sciabarrà demonstrates how to build a serverless application using classical design patterns and the programming language or languages that best fit your task. You’ll start by building a simple serverless application hands-on before diving into the more complex aspects of the OpenWhisk platform. Examine how OpenWhisk’s serverless architecture works, including the use of packages, actions, sequences, triggers, rules, and feeds Learn how OpenWhisk compares to existing architectures, such as Java Enterprise Edition Manipulate OpenWhisk features using the command-line interface or a JavaScript API Design applications using common Gang of Four design patterns Use architectural design patterns such as model-view-controller to combine several OpenWhisk actions Learn how to test and debug your code in a serverless environment

Building Serverless Applications with Python

Building Serverless Applications with Python
Author: Jalem Raj Rohit
Publisher: Packt Publishing Ltd
Total Pages: 266
Release: 2018-04-20
Genre: Computers
ISBN: 1787281132

Building efficient Python applications at minimal cost by adopting serverless architectures Key Features Design and set up a data flow between cloud services and custom business logic Make your applications efficient and reliable using serverless architecture Build and deploy scalable serverless Python APIs Book Description Serverless architectures allow you to build and run applications and services without having to manage the infrastructure. Many companies have adopted this architecture to save cost and improve scalability. This book will help you design serverless architectures for your applications with AWS and Python. The book is divided into three modules. The first module explains the fundamentals of serverless architecture and how AWS lambda functions work. In the next module, you will learn to build, release, and deploy your application to production. You will also learn to log and test your application. In the third module, we will take you through advanced topics such as building a serverless API for your application. You will also learn to troubleshoot and monitor your app and master AWS lambda programming concepts with API references. Moving on, you will also learn how to scale up serverless applications and handle distributed serverless systems in production. By the end of the book, you will be equipped with the knowledge required to build scalable and cost-efficient Python applications with a serverless framework. What you will learn Understand how AWS Lambda and Microsoft Azure Functions work and use them to create an application Explore various triggers and how to select them, based on the problem statement Build deployment packages for Lambda functions Master the finer details about building Lambda functions and versioning Log and monitor serverless applications Learn about security in AWS and Lambda functions Scale up serverless applications to handle huge workloads and serverless distributed systems in production Understand SAM model deployment in AWS Lambda Who this book is for This book is for Python developers who would like to learn about serverless architecture. Python programming knowledge is assumed.

Deployment with Docker

Deployment with Docker
Author: Srdjan Grubor
Publisher: Packt Publishing Ltd
Total Pages: 287
Release: 2017-11-22
Genre: Computers
ISBN: 1786463229

A practical guide to rapidly and efficiently mastering Docker containers, along with tips and tricks learned in the field. About This Book Use Docker containers, horizontal node scaling, modern orchestration tools (Docker Swarm, Kubernetes, and Mesos) and Continuous Integration/Continuous Delivery to manage your infrastructure. Increase service density by turning often-idle machines into hosts for numerous Docker services. Learn what it takes to build a true container infrastructure that is scalable, reliable, and resilient in the face of increased complexities from using container infrastructures. Find out how to identify, debug, and mitigate most real-world, undocumented issues when deploying your own Docker infrastructure. Learn tips and tricks of the trade from existing Docker infrastructures running in production environments. Who This Book Is For This book is aimed at system administrators, developers, DevOps engineers, and software engineers who want to get concrete, hands-on experience deploying multi-tier web applications and containerized microservices using Docker. This book is also for anyone who has worked on deploying services in some fashion and wants to take their small-scale setups to the next level (or simply to learn more about the process). What You Will Learn Set up a working development environment and create a simple web service to demonstrate the basics Learn how to make your service more usable by adding a database and an app server to process logic Add resilience to your services by learning how to horizontally scale with a few containers on a single node Master layering isolation and messaging to simplify and harden the connectivity between containers Learn about numerous issues encountered at scale and their workarounds, from the kernel up to code versioning Automate the most important parts of your infrastructure with continuous integration In Detail Deploying Docker into production is considered to be one of the major pain points in developing large-scale infrastructures, and the documentation available online leaves a lot to be desired. With this book, you will learn everything you wanted to know to effectively scale your deployments globally and build a resilient, scalable, and containerized cloud platform for your own use. The book starts by introducing you to the containerization ecosystem with some concrete and easy-to-digest examples; after that, you will delve into examples of launching multiple instances of the same container. From there, you will cover orchestration, multi-node setups, volumes, and almost every relevant component of this new approach to deploying services. Using intertwined approaches, the book will cover battle-tested tooling, or issues likely to be encountered in real-world scenarios, in detail. You will also learn about the other supporting components required for a true PaaS deployment and discover common options to tie the whole infrastructure together. At the end of the book, you learn to build a small, but functional, PaaS (to appreciate the power of the containerized service approach) and continue to explore real-world approaches to implementing even larger global-scale services. Style and approach This in-depth learning guide shows you how to deploy your applications in production using Docker (from the basic steps to advanced concepts) and how to overcome challenges in Docker-based infrastructures. The book also covers practical use-cases in real-world examples, and provides tips and tricks on the various topics.