Skip to content

fix: Add connection pre-warming for DynamoDB async client - #6711

Open
nithin42 wants to merge 1 commit into
feast-dev:masterfrom
nithin42:fix/dynamodb-warmup-connections-only
Open

fix: Add connection pre-warming for DynamoDB async client#6711
nithin42 wants to merge 1 commit into
feast-dev:masterfrom
nithin42:fix/dynamodb-warmup-connections-only

Conversation

@nithin42

@nithin42 nithin42 commented Aug 7, 2026

Copy link
Copy Markdown

What this PR does / why we need it

The DynamoDB online store async client doesn't establish actual TCP/TLS connections during initialize(), causing the very first get_online_features() call to pay a cold-start overhead (~20ms).
This PR adds a warmup_connections boolean option to DynamoDBOnlineStoreConfig and runs describe_limits() inside a safe try...except block in DynamoDBOnlineStore.initialize() to pre-warm the connections.

Which issue(s) this PR fixes

Fixes #6060

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Add warmup_connections parameter to DynamoDBOnlineStoreConfig and warm up connections via describe_limits inside initialize() method to solve cold-start latency.

Fixes feast-dev#6060

Signed-off-by: Nithin <kumbam.nithingoud@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add connection pre-warming for DynamoDB async client

1 participant