S3Append 0.0.1
See the version list below for details.
dotnet add package S3Append --version 0.0.1
NuGet\Install-Package S3Append -Version 0.0.1
<PackageReference Include="S3Append" Version="0.0.1" />
paket add S3Append --version 0.0.1
#r "nuget: S3Append, 0.0.1"
// Install S3Append as a Cake Addin #addin nuget:?package=S3Append&version=0.0.1 // Install S3Append as a Cake Tool #tool nuget:?package=S3Append&version=0.0.1
.NET AWS SDK S3 Append
About
S3 Append
provides AppendObjectAsync extention method for .NET AWS SDK S3 client, capable of appending data to existing S3 hosted objects.
Performance
Implemented functionality relies on "server side" AWS S3 multipart copy operation, making its performance superior to naive download-update-upload approach. In a nutshel, existing portion of data is being copied by S3 internally while only to-be-appended chunk is uploaded from client's side. For details (and limitations) please refer to relevant documentation.
Implications
The key consideration is costs. Compared to naive approach, at least five AWS S3 requests have to be issued for every and each append operation:
- Yield object metadata to determine its size
- Create multipart upload through which data is to be copied/uploaded
- Copy existing data on the server side
- Upload new data from client side
- Complete multipart upload, overriding original object
Moreover, single UploadPartCopy
operation could only copy up to 5 GiB of data. That said, append to an object with size of 5 TB would result in (at least) 1004 requests issued by S3 Append
logic.
Usage
When imported into scope, AppendObjectAsync
could be used in in a straightforward fashion. Consider S3 bucket 109a6d191b67
hosting object fa5ec9042bc3
with plain text content Hello
. Following code would, when executed,
using Amazon.S3;
using S3Append.Extensions;
using S3Append.Models;
using System.Threading.Tasks;
public static async Task Main(string[] args)
{
var client = new AmazonS3Client();
var request = new AppendObjectRequest
{
BucketName = "109a6d191b67",
Key = "fa5ec9042bc3",
ContentBody = " world!"
};
await client.AppendObjectAsync(request);
}
result in (the same) fa5ec9042bc3
object containing proverbial Hello world!
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- AWSSDK.S3 (>= 3.7.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Public beta, please report back in case of problems