DynamoDBContext 没有 Save() 方法
DynamoDBContext does not have Save() method
我是 AWS 无服务器编程的新手。
我正在尝试使用无服务器架构来跟踪示例。
但我在 DynamoDBContext class 中找不到 Save() 方法,它只包含 SaveAsync()。谁能告诉我这是为什么?
我已经检查过最新版本。我相信无服务器 lambda 应用程序不能使用正常方法与 DynamoDB 通信,因此我不得不使用 SaveAsync()。 –
The reason the .NET Core version only has async is because the underlying http client available in .NET Core only supports async operations. We debated about keeping the sync methods in the .NET Core version and have them just call the async versions and then block. The problem with that is the SDK would not be following best practice for the platform and more importantly it could mask a potential performance problem.
https://github.com/aws/aws-sdk-net/issues/480#issuecomment-257382757
AWS 团队推荐:
public async Task<Response> ProcessS3ImageResizeAsync(SimpleS3Event input)
{
var response = await client.DoAsyncWork(input);
return response;
}
我是 AWS 无服务器编程的新手。 我正在尝试使用无服务器架构来跟踪示例。
但我在 DynamoDBContext class 中找不到 Save() 方法,它只包含 SaveAsync()。谁能告诉我这是为什么?
我已经检查过最新版本。我相信无服务器 lambda 应用程序不能使用正常方法与 DynamoDB 通信,因此我不得不使用 SaveAsync()。 –
The reason the .NET Core version only has async is because the underlying http client available in .NET Core only supports async operations. We debated about keeping the sync methods in the .NET Core version and have them just call the async versions and then block. The problem with that is the SDK would not be following best practice for the platform and more importantly it could mask a potential performance problem.
https://github.com/aws/aws-sdk-net/issues/480#issuecomment-257382757
AWS 团队推荐:
public async Task<Response> ProcessS3ImageResizeAsync(SimpleS3Event input)
{
var response = await client.DoAsyncWork(input);
return response;
}