Amazon .NET AWS SDK 的 AmazonS3 线程安全吗? [英] Is the Amazon .NET AWS SDK's AmazonS3 thread safe?

查看:33
本文介绍了Amazon .NET AWS SDK 的 AmazonS3 线程安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Amazon .NET AWS 开发工具包的 AmazonS3 线程安全还是我应该在多线程系统中为每个请求创建一个新的 AmazonS3 实例?

Is the Amazon .NET AWS SDK's AmazonS3 thread safe or should I be creating a new instance of AmazonS3 per request in a multi-threaded system?

特别适用于最新的 .NET AWS 开发工具包(版本 1.3.14).

Specifically for the latest .NET AWS SDK (version 1.3.14).

推荐答案

我也在 Amazon AWS 论坛上问过这个问题,AWS 的官方员工回复 (Norm@AWS) 是:

I also asked this question on the Amazon AWS forum and an official AWS employee replied (Norm@AWS) with:

.NET SDK 是线程安全的,因此保留任何像 AmazonS3 这样的客户并重复使用它们很好.

The .NET SDK is thread safe so keeping an instance of any of the clients like AmazonS3 around and reusing them is fine.

规范

链接(亚马逊 .NET 开发论坛 - 是 .NETSDK 的 AmazonS3 线程安全吗?).

这篇关于Amazon .NET AWS SDK 的 AmazonS3 线程安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆