Javascript on AWS Lambda: How to use Node.js in a serverless architecture


Javascript on AWS Lambda: How to use Node.js in a serverless architecture
ASIN: B08MWM7SLK
Publication Date 出版日期: November 5, 2020
Language 语言: English
File size: 6559 KB
pages 页数: 93 pages
by Tamás Sallai(Author)


Book Description
This books helps you bring what you already know --- programming in Javascript with Node.Js --- to AWS Lambda.
Developing serverless applications is frustrating at first. Up until the "Hello world" everything is easy, but then a lot of small differences come to the surface. Things like why some requests are way slower than others, how to set the available memory, and why a sensible timeout is important. These are the results of how the Lambda execution environment works, and it is markedly different from running Node.Js on a server.
And it's not just how the function is run, but also what other services it interacts with. CloudWatch and Logs, IAM, and API Gateway, not to mention a database most functions will use. It's overwhelming at first.
This book systematically walks you through the configuration options and gives just the right amount of background information so that you'll know what parts are important. With it, you'll be able to set up your Lambda functions using best practices and avoid the common problems.
You'll:
* Understand how the Lambda execution environment works
* Learn how to write Javascript serverless functions
* And walk away with knowledge about debuggers and HTTP APIs

Table of contents
Introduction
Chapter 1: The Lambda execution model
Serverless functions
Limits
The cost model
At-least-once execution
Caching in /tmp
Cold start
Memory
Chapter 2: Setup
Node versions
The Lambda permission model
How to define code
Inline code
File interpolation
Adding packages with npm
Handler argument
Chapter 3: Programming model
Async handler
Async programming patterns
Background tasks
Input and output
The event object
The context object
Output
The AWS SDK
Pagination
Environment variables
Timeout
Cause of timeouts
Mitigating timeouts
AWS SDK timeouts
Promise-based timeout handling
Chapter 4: Debugging
Logging
X-Ray
Custom segments
Chapter 5: Other topics
Storing secrets
Using SSM
Caching
Cache time
HTTP API
OpenAPI backend
Request parameters
Special handlers
Express backend

下载地址 Download
高速下载(不限速)
打赏
未经允许不得转载:finelybook » Javascript on AWS Lambda: How to use Node.js in a serverless architecture

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下

您的打赏,我们将继续给力更多优质内容

支付宝扫一扫打赏

微信扫一扫打赏