Invoke Type
- Synchronous
- Async
- S3 Event, SNS, CloudWatch
- Event Source Mapping
- 必須從來源"拉"下來,所以SNS不會是這種
- Kinesis Data Stream, SQS, SQS FIFO, DynamoDB Streams
Destinations
- Async invocations
- 可以針對成功跟失敗的訊息送到下列目標
- SQS
- SNS
- Lambda
- EventBridge Bus
- 建議使用Destinations,不要再用DLQ,但還是可以用 (2019)
Limitations
- RAM 128MB -> 3G
- CPU is linked to RAM, can't setup manually
- Timeout: up to 15min
- Storage: /tmp, 512MB
- Deployment package: Limit 250MB
- Concurrency execution: 1000, but can be increased
Alias & Version
- Alias
- Lambda version的別名,像git tag,是可以改的
- 用來整合API Gateway很有用
- Version
- 每次publish,都會產生的以數字遞增的version
- 是一組code + Configuration
- 不可更動,能被執行的是Latest version
CodeDeploy
- 用來deploy Lambda,可以自動幫你更新Alias
- Integrate with SAM