Add DynamoDB Accelerator (DAX) support for sub-millisecond reads

オープン
#6,059 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@abhijeet-dhumal がすでに取り組んでいます。

2026年3月19日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, python

調査の方向性

まず DynamoDB オンラインストアクライアントの初期化と設定定義を見つけ、次に pyproject.toml を調べてオプションの依存関係がどのように宣言されているかを確認します。既存の読み取りおよび書き込みパスとそのテストを追跡します。完了条件は、use_dax オプションを有効にしたときに amazon-dax-client が選択され、既存の DynamoDB の動作と APIs が変更されないことです。

索引モデルが issue の本文から書いたものです。

説明

kind/feature

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

  1. VPC Endpoints: Reduces latency by ~10-20ms but still limited by DynamoDB service latency.
  2. Application-level caching (Redis sidecar): Adds operational complexity, requires cache invalidation logic, and duplicates the online store concept.
  3. Switch to Redis online store: Achieves lower latency (~102ms at same scale) but loses DynamoDB's serverless scaling, managed infrastructure, and AWS integration benefits.
  4. Reduce batch size: Requesting fewer entities per call meets latency benchmark but increases total request count and doesn't solve the underlying latency issue.
  5. 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:

主要言語
Python
スター
7.4k
フォーク
1.5k
平均マージ
2日 6時間
マージ済み PR(30日)
107

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

feast-dev/feast のほかの issue

feast-dev/feast の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。