Serverless Design Patterns and Best Practices

Get started with designing your serverless application using optimum design patterns and industry standard practices
Preview in Mapt

Serverless Design Patterns and Best Practices

Brian Zambrano
New Release!

Get started with designing your serverless application using optimum design patterns and industry standard practices
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $35.99
Save 72%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Serverless Design Patterns and Best Practices Book Cover
Serverless Design Patterns and Best Practices
$ 35.99
$ 10.00
Kubernetes Cookbook - Second Edition Book Cover
Kubernetes Cookbook - Second Edition
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $51.98
Add to Cart

Book Details

ISBN 139781788620642
Paperback260 pages

Book Description

Serverless applications handle many problems that developers face when running systems and servers. The serverless pay-per-invocation model can also result in drastic cost savings, contributing to its popularity. While it's simple to create a basic serverless application, it's critical to structure your software correctly to ensure it continues to succeed as it grows. Serverless Design Patterns and Best Practices presents patterns that can be adapted to run in a serverless environment. You will learn how to develop applications that are scalable, fault tolerant, and well-tested.

The book begins with an introduction to the different design pattern categories available for serverless applications. You will learn the trade-offs between GraphQL and REST and how they fare regarding overall application design in a serverless ecosystem. The book will also show you how to migrate an existing API to a serverless backend using AWS API Gateway. You will learn how to build event-driven applications using queuing and streaming systems, such as AWS Simple Queuing Service (SQS) and AWS Kinesis. Patterns for data-intensive serverless application are also explained, including the lambda architecture and MapReduce.

This book will equip you with the knowledge and skills you need to develop scalable and resilient serverless applications confidently.

Table of Contents

Chapter 1: Introduction
What is serverless computing?
Design patterns
When to use serverless
Classes of serverless pattern
Serverless frameworks
Summary
Chapter 2: A Three-Tier Web Application Using REST
Serverless tooling
System architecture
Logic layer
Presentation layer
Data layer
Writing our logic layer
Deploying the REST API
Deploying the Postgres database
Setting up static assets
Viewing the deployed web application
Running tests
Iteration and deployment
Summary
Chapter 3: A Three-Tier Web Application Pattern with GraphQL
Introduction to GraphQL
System architecture
Logic layer
Presentation layer
Writing the logic layer
Deployment
Viewing the deployed application
Iteration and deployment
Summary
Chapter 4: Integrating Legacy APIs with the Proxy Pattern
AWS API Gateway introduction
Simple proxy to a legacy API
Transforming responses from a modern API
Complex integration using a Lambda function
Migration techniques
Summary
Chapter 5: Scaling Out with the Fan-Out Pattern
System architecture
Resizing images in parallel
Alternate Implementations
Summary
Chapter 6: Asynchronous Processing with the Messaging Pattern
Basics of queuing systems
Asynchronous processing of Twitter streams
Alternate Implementations
Summary
Chapter 7: Data Processing Using the Lambda Pattern
Introducing the lambda architecture
Lambda serverless architecture
Processing cryptocurrency prices using lambda architecture
Results
Summary
Chapter 8: The MapReduce Pattern
Introduction to MapReduce
MapReduce serverless architecture
Processing Enron emails with serverless MapReduce
Understanding the limitations of serverless MapReduce
Exploring alternate implementations
Summary
Chapter 9: Deployment and CI/CD Patterns
Introduction to CI/CD
Setting up unit tests
Setting up CI with CircleCI
Setting up CD and deployments with CircleCI
Summary
Chapter 10: Error Handling and Best Practices
Error tracking
Logging
Cold starts
Local development and testing
Managing different environments
Securing sensitive configuration
Trimming AWS Lambda versions
Summary

What You Will Learn

  • Comprehend the popular design patterns currently being used with serverless architectures
  • Understand the various design options and corresponding implementations for serverless web application APIs
  • Learn multiple patterns for data-intensive serverless systems and pipelines, including MapReduce and Lambda Architecture
  • Learn how to leverage hosted databases, queues, streams, storage services, and notification services
  • Understand error handling and system monitoring in a serverless architecture a serverless architecture
  • Learn how to set up a serverless application for continuous integration, continuous delivery, and continuous deployment

Authors

Table of Contents

Chapter 1: Introduction
What is serverless computing?
Design patterns
When to use serverless
Classes of serverless pattern
Serverless frameworks
Summary
Chapter 2: A Three-Tier Web Application Using REST
Serverless tooling
System architecture
Logic layer
Presentation layer
Data layer
Writing our logic layer
Deploying the REST API
Deploying the Postgres database
Setting up static assets
Viewing the deployed web application
Running tests
Iteration and deployment
Summary
Chapter 3: A Three-Tier Web Application Pattern with GraphQL
Introduction to GraphQL
System architecture
Logic layer
Presentation layer
Writing the logic layer
Deployment
Viewing the deployed application
Iteration and deployment
Summary
Chapter 4: Integrating Legacy APIs with the Proxy Pattern
AWS API Gateway introduction
Simple proxy to a legacy API
Transforming responses from a modern API
Complex integration using a Lambda function
Migration techniques
Summary
Chapter 5: Scaling Out with the Fan-Out Pattern
System architecture
Resizing images in parallel
Alternate Implementations
Summary
Chapter 6: Asynchronous Processing with the Messaging Pattern
Basics of queuing systems
Asynchronous processing of Twitter streams
Alternate Implementations
Summary
Chapter 7: Data Processing Using the Lambda Pattern
Introducing the lambda architecture
Lambda serverless architecture
Processing cryptocurrency prices using lambda architecture
Results
Summary
Chapter 8: The MapReduce Pattern
Introduction to MapReduce
MapReduce serverless architecture
Processing Enron emails with serverless MapReduce
Understanding the limitations of serverless MapReduce
Exploring alternate implementations
Summary
Chapter 9: Deployment and CI/CD Patterns
Introduction to CI/CD
Setting up unit tests
Setting up CI with CircleCI
Setting up CD and deployments with CircleCI
Summary
Chapter 10: Error Handling and Best Practices
Error tracking
Logging
Cold starts
Local development and testing
Managing different environments
Securing sensitive configuration
Trimming AWS Lambda versions
Summary

Book Details

ISBN 139781788620642
Paperback260 pages
Read More

Read More Reviews

Recommended for You

Kubernetes Cookbook - Second Edition Book Cover
Kubernetes Cookbook - Second Edition
$ 35.99
$ 10.00
Mastering Machine Learning Algorithms Book Cover
Mastering Machine Learning Algorithms
$ 35.99
$ 10.00
RUST Design Patterns and Best Practices Book Cover
RUST Design Patterns and Best Practices
$ 0.00
Vue.js 2 Design Patterns and Best Practices Book Cover
Vue.js 2 Design Patterns and Best Practices
$ 35.99
$ 10.00
Design Patterns and Best Practices in Java EE 8 [Video] Book Cover
Design Patterns and Best Practices in Java EE 8 [Video]
$ 124.99
$ 10.00
Cloud Native Development Patterns and Best Practices Book Cover
Cloud Native Development Patterns and Best Practices
$ 35.99
$ 10.00