Big latency on the first GetObject (S3 package/ .net)

Hi,
Is ti normal to have this latency on the first GetObject ?
connect Ellapsed:275
read 0Ellapsed:2176
read 1Ellapsed:609
read 2Ellapsed:527
read 3Ellapsed:470
read 4Ellapsed:585
read 5Ellapsed:586
read 6Ellapsed:530
read 7Ellapsed:547
read 8Ellapsed:400
read 9Ellapsed:504
write Ellapsed:497

My code:
var sw = System.Diagnostics.Stopwatch.StartNew();
IAmazonS3 client = new AmazonS3Client("…", “…”, new AmazonS3Config { ServiceURL = “https://gateway.eu1.storjshare.io” });
sw.Stop();
Console.WriteLine($“connect Ellapsed:{sw.ElapsedMilliseconds}”);

    for (int i = 0; i < 10; i++)
    {
        sw = System.Diagnostics.Stopwatch.StartNew();
        GetObjectRequest request = new GetObjectRequest
        {
            BucketName = "demo-bucket",
            Key = "20201018_145824.jpg"
        };
        GetObjectResponse response = await client.GetObjectAsync(request);
        sw.Stop();
        Console.WriteLine($"read {i}Ellapsed:{sw.ElapsedMilliseconds}");
    }

Thanks for your response

1 Like

Thank you for reporting, we have escalated this issue to our dev team.

1 Like

500-600ms first byte latency is as designed. Given we are decentralized we need to go out to the nodes and retrieve the prices. After this initial latency, our throughput is terrific.

We are committed to continual improvement.

6 Likes