Skip to content

Spikes in response time when calling DynamoDb #4054

@LeonWinst

Description

@LeonWinst

Describe the bug

Bumping AWSSDK.SSO from version 4.0.1.3 to 4.0.1.6 and AWSSDK.SSOIDC from version 4.0.2 to 4.0.2.3 has resulted in frequent spikes when calling DynamoDb.

We have fixed the issue by reverting back to versions 4.0.1.3 and 4.0.2.3.

The spikes seemed to mainly effect queries that were querying GSIs. No throttle exceptions were logged inside the DynamoDb console. The query was searching on the primary & secondary keys so response times upwards of 20 seconds are not expected.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

DynamoDb queries do not result in frequent spikes.

Current Behavior

Querying GSIs result in frequent spikes. Example from an Xray trace - a batch of 9 queries running in parallel results in two taking 30 seconds:

Image

Reproduction Steps

Use the following packages:

  • AWSSDK.SSO: 4.0.1.6
  • AWSSDK.SSOIDC: 4.0.2.3
  • AWSSDK.DynamoDbv2: 4.0.6.3

Query a GSI using a PK & SK lookup in a Parallel.ForeachAsync() with a MaxDegreeOfParalllelism of 32

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

  • AWSSDK.SSO: 4.0.1.6
  • AWSSDK.SSOIDC: 4.0.2.3
  • AWSSDK.DynamoDbv2: 4.0.6.3

Targeted .NET Platform

.NET 8

Operating System and version

AmazonLinux & Windows10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-reviewresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions