Lambda需要从DynamoDB获取所有结果,并在每条记录上执行处理,并触发步骤函数工作流。虽然分页结果是由DynamoDB给出的,但如果有太多的页面无法在15分钟的Lambda限制内处理,lambda将会超时。除了迁移到Fargate之外,有没有使用lambda的变通方法?
Lambda概述
while True:
l, nextToken = get list of records from DynamoDB
for each record in l:
perform some preprocesing like reading a file and trigg
我想得到一些数字来证明我读到的DynamoDB键值存储与关系数据库(MySQL、PostgreSQL、Aurora)相比具有更好的读取性能。因此,我决定比较DynamoDB和Aurora的读取延迟(这是a/c到AWS网站--“比标准MySQL数据库快5倍,比标准PostgreSQL数据库快3倍”)。
Step1:使用以下模式在Aurora中创建一个表,并将102万条记录添加到该表中。
Table gift_log (
gift_uuid BINARY(16) NOT NULL,
user_uuid BINARY(16) NOT N
我已经建立了一个运行我的网站的Fargate集群。该服务正常启动网站的任务,但当它试图连接到我的数据库实例时停止。
MongoError: failed to connect to server [123.456.789.0:27017] on first connect [MongoError: connection 0 to 123.456.789.0:27017 timed out]
如何将Fargate群集添加到数据库实例上的安全组中。我没有可以找到的fargate集群的公共ip地址或范围。我找不到任何关于aws文档的正确指南。
我正在使用Pulumi进行AWS Fargate集群设置,我的当前程序已经成功地创建了一个集群incl。运行公共可访问容器映像的Fargate任务。我的映像基于Spring ():
import * as awsx from "@pulumi/awsx";
// Spring Boot Apps port
const port = 8098;
// Create a ApplicationLoadBalancer to listen for requests and route them to the container.
const alb = new awsx.lb.A