Add DynamoDB Accelerator (DAX) support for sub-millisecond reads
メンテナーはふだん 1 日以内に返信
@abhijeet-dhumal がすでに取り組んでいます。
2026年3月19日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
まず DynamoDB オンラインストアクライアントの初期化と設定定義を見つけ、次に pyproject.toml を調べてオプションの依存関係がどのように宣言されているかを確認します。既存の読み取りおよび書き込みパスとそのテストを追跡します。完了条件は、use_dax オプションを有効にしたときに amazon-dax-client が選択され、既存の DynamoDB の動作と APIs が変更されないことです。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
DynamoDB online store latency is fundamentally limited by network round-trip time to the DynamoDB service (~50-80ms per request). Even with all code optimizations applied, achieving <60ms p99 latency for production workloads (50 entities × 200 features) is not possible with direct DynamoDB access.
Benchmarks results here shows: https://github.com/abhijeet-dhumal/featurestore-benchmarks/tree/perf-with-6optimisations/fs-online-benchmark/locust-bechmarking/feast-benchmarking
- Current latency: 169ms p99 at 50 entities × 200 features
- Target SLA: 60ms p99
- Gap: 109ms that cannot be closed with code optimizations alone
This is frustrating for users who need low-latency feature serving for real-time ML inference but want to use DynamoDB for its scalability and managed infrastructure.
Describe the solution you'd like
Add native support for DynamoDB Accelerator (DAX) - AWS's in-memory caching layer for DynamoDB. This would allow users to configure a DAX endpoint for sub-millisecond cached reads:
online_store:
type: dynamodb
region: us-east-1
use_dax: true
endpoint_url: "daxs://my-cluster.abc123.dax-clusters.us-east-1.amazonaws.com:8111"
When enabled, Feast would use amazon-dax-client instead of boto3 for read operations, providing:
- <1ms latency for cached reads (vs 50-80ms for DynamoDB)
- 10x+ throughput improvement
- Transparent caching with no application changes
Describe alternatives you've considered
- VPC Endpoints: Reduces latency by ~10-20ms but still limited by DynamoDB service latency.
- Application-level caching (Redis sidecar): Adds operational complexity, requires cache invalidation logic, and duplicates the online store concept.
- Switch to Redis online store: Achieves lower latency (~102ms at same scale) but loses DynamoDB's serverless scaling, managed infrastructure, and AWS integration benefits.
- Reduce batch size: Requesting fewer entities per call meets latency benchmark but increases total request count and doesn't solve the underlying latency issue.
- ElastiCache for DynamoDB: Not a direct integration; requires custom implementation.
None of these alternatives provide the combination of low latency + DynamoDB's managed infrastructure that DAX offers natively.
| Configuration | P99 Latency (50 entities × 200 features) |
|---|---|
| DynamoDB (current Feast master branch) | 169ms |
| DynamoDB + VPC Endpoint | ~150ms (expected) |
| DynamoDB + DAX | ~40ms (expected) |
Implementation scope:
- Add use_dax: bool config option
- Conditional client initialization using amazon-dax-client
- Optional dependency in pyproject.toml
- No changes to read/write API signatures
DAX characteristics:
- Fully API-compatible with DynamoDB for reads
- Write-through cache (writes go to both DAX and DynamoDB)
- Cost: ~$0.25/hr for dax.r5.large node
- Runs inside VPC (same network as application pods)
References:
- AWS DAX Documentation
- amazon-dax-client on PyPI
- Benchmark results from Feast online store performance testing
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 1.5k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 107
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
feast-dev/feast のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
BigQuery data quality monitoring fails: PRIMARY KEY placed outside the column list in monitoring table DDL対応中かも @liron-velocity が 51 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
get_online_features silently drops a join key value when it shares a name with an OnDemandFeatureView's RequestSource field対応中かも @OHMFOHS が 99 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
kind/bug priority/p2
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
feast-dev/feast#6778 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
feast-dev/feast の issue をすべて見る
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
future-agi/future-agi#6392 ·
メンテナーはふだん 1 日以内に返信
-
memmapped_arange ignores the start value and drops the last point above the memmap threshold対応中かも @prathameshfuke が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
StingraySoftware/HENDRICS#213 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
bot-triaged module: decompositions module: edge cases module: int overflow module: primTorch oncall: pt2 triage review
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信