Title: Add connection pre-warming for DynamoDB async client · Issue #6060 · feast-dev/feast · GitHub
Open Graph Title: Add connection pre-warming for DynamoDB async client · Issue #6060 · feast-dev/feast
X Title: Add connection pre-warming for DynamoDB async client · Issue #6060 · feast-dev/feast
Description: Expected Behavior When the DynamoDB online store is initialized via initialize(), connections to DynamoDB should be pre-established so that the first get_online_features() call does not incur cold-start latency. Current Behavior The init...
Open Graph Description: Expected Behavior When the DynamoDB online store is initialized via initialize(), connections to DynamoDB should be pre-established so that the first get_online_features() call does not incur cold-...
X Description: Expected Behavior When the DynamoDB online store is initialized via initialize(), connections to DynamoDB should be pre-established so that the first get_online_features() call does not incur cold-...
Opengraph URL: https://github.com/feast-dev/feast/issues/6060
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add connection pre-warming for DynamoDB async client","articleBody":"## Expected Behavior \nWhen the DynamoDB online store is initialized via initialize(), connections to DynamoDB should be pre-established so that the first get_online_features() call does not incur cold-start latency.\n\n## Current Behavior\nThe initialize() method creates the aiobotocore client but does not establish actual TCP connections to DynamoDB. The first BatchGetItem request incurs additional latency (~10-20ms) for connection establishment, TLS handshake, and authentication.\n```\n# Current implementation - client created but no connections established\nasync def initialize(self, config: RepoConfig):\n online_config = config.online_store\n await self._get_aiodynamodb_client(...) # Creates client object only\n```\n\n## Steps to reproduce\n```\nimport time\nfrom feast import FeatureStore\n\nfs = FeatureStore(repo_path=\".\")\n\n# First request - includes connection setup overhead\nstart = time.time()\nfs.get_online_features(features=[\"fv:f1\"], entity_rows=[{\"id\": \"1\"}])\nfirst_request = time.time() - start # ~80ms\n\n# Second request - connections already warm\nstart = time.time()\nfs.get_online_features(features=[\"fv:f1\"], entity_rows=[{\"id\": \"1\"}])\nsecond_request = time.time() - start # ~60ms\n\nprint(f\"First: {first_request*1000:.0f}ms, Second: {second_request*1000:.0f}ms\")\n# Output: First: 80ms, Second: 60ms (20ms cold-start overhead)\n```\n\n### Specifications\n\n- Version: 0.60.0 and latest master\n- Platform: Any\n- Subsystem: feast.infra.online_stores.dynamodb\n\n\n## Possible Solution\nAdd a lightweight DynamoDB API call in initialize() to warm up connections:\n```\nasync def initialize(self, config: RepoConfig):\n online_config = config.online_store\n \n client = await self._get_aiodynamodb_client(\n online_config.region,\n online_config.max_pool_connections,\n # ... other params\n )\n \n # Warm up connection pool with a lightweight call\n if online_config.warmup_connections: # New config option\n try:\n await client.describe_limits()\n except Exception:\n pass # Ignore errors, just warming up connections\n```\nOptionally gated behind a new config parameter warmup_connections: bool = False to maintain backward compatibility.\n\n","author":{"url":"https://github.com/abhijeet-dhumal","@type":"Person","name":"abhijeet-dhumal"},"datePublished":"2026-03-04T09:57:32Z","url":"https://github.com/feast-dev/feast/issues/6060"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e19756db-7128-f67f-41ac-af7716a9a610 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8348:729DB:EAC3B8:1357B3F:6AFE9814 |
| html-safe-nonce | 3619b847c008ea0616e84be943fffc7a42e9ccca200bb57c7c97dcc2ad061546 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzQ4OjcyOURCOkVBQzNCODoxMzU3QjNGOjZBRkU5ODE0IiwidmlzaXRvcl9pZCI6IjM2MDE0NTE3OTg4NjQyMzg2MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27538638ca04e74aa490119e7c6fb3a6ef5844d3be88b7d059a46b92f729c0fb |
| hovercard-subject-tag | issue:4021118842 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6060/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df69e8d37b2e5666b08252594629a753b416edf6b49d0509dafdac48798bcb6d/feast-dev/feast/issues/6060 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df69e8d37b2e5666b08252594629a753b416edf6b49d0509dafdac48798bcb6d/feast-dev/feast/issues/6060 |
| og:image:alt | Expected Behavior When the DynamoDB online store is initialized via initialize(), connections to DynamoDB should be pre-established so that the first get_online_features() call does not incur cold-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhijeet-dhumal |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width