更新时间:2021-08-27 19:12:39
封面
Title Page
Copyright and Credits
Serverless Design Patterns and Best Practices
Dedication
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
Introduction
What is serverless computing?
No servers to manage
Pay-per-invocation billing model
Ability to automatically scale with usage
Built-in availability and fault tolerance
Design patterns
When to use serverless
The sweet spot
Classes of serverless pattern
Three-tier web application patterns
ETL patterns
Big data patterns
Automation and deployment patterns
Serverless frameworks
Summary
A Three-Tier Web Application Using REST
Serverless tooling
System architecture
Presentation layer
Logic layer
Data layer
Application code and function layout
Organization of the Lambda functions
Organization of the application code
Configuration with environment variables
Code structure
Function layout
File storage with S3
CDN with CloudFront
Writing our logic layer
Application entrypoint
Application logic
Wiring handler.py to Lambda via API Gateway
Deploying the REST API
Deploying the Postgres database
Setting up static assets
Viewing the deployed web application
Running tests
Iteration and deployment
Deploying the entire stack
Deploying the application code
A Three-Tier Web Application Pattern with GraphQL
Introduction to GraphQL
Writing the logic layer
Implementing the entry point
Implementing GraphQL queries
Implementing GraphQL mutations
Deployment
Viewing the deployed application
Integrating Legacy APIs with the Proxy Pattern
AWS API Gateway introduction
Simple proxy to a legacy API
Setting up a pass-through proxy
Deploying a pass-through proxy
Transforming responses from a modern API
Method execution flow
Setting up example
Setting up a new resource and method
Setting up Integration Request
Setting up Integration Response
Complex integration using a Lambda function
Implementing the application code
Migration techniques
Staged migration
Migrating URLs