You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/online-stores/dynamodb.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,47 @@ online_store:
22
22
23
23
The full set of configuration options is available in [DynamoDBOnlineStoreConfig](https://rtd.feast.dev/en/master/#feast.infra.online_stores.dynamodb.DynamoDBOnlineStoreConfig).
24
24
25
+
## Configuration
26
+
27
+
Below is a example with performance tuning options:
| `batch_size` | int | `40` | Number of items per BatchGetItem/BatchWriteItem request (max 100) |
50
+
| `max_read_workers` | int | `10` | Maximum parallel threads for batch read operations. Higher values improve throughput for large batch reads but increase resource usage |
51
+
| `consistent_reads` | bool | `false` | Whether to use strongly consistent reads (higher latency, guaranteed latest data) |
52
+
| `tags` | dict | `null` | AWS resource tags added to each table |
**Parallel Batch Reads**: When reading features for many entities, DynamoDB's BatchGetItem is limited to 100 items per request. For 500 entities, this requires 5 batch requests. The `max_read_workers` option controls how many of these batches execute in parallel:
- **Parallel (with `max_read_workers: 10`)**: 5 batches in parallel ≈ 10ms total
61
+
62
+
For high-throughput workloads with large entity counts, increase `max_read_workers` (up to 20-30) based on your DynamoDB capacity and network conditions.
63
+
64
+
**Batch Size**: Increase `batch_size` up to 100 to reduce the number of API calls. However, larger batches may hit DynamoDB's 16MB response limit for tables with large feature values.
65
+
25
66
## Permissions
26
67
27
68
Feast requires the following permissions in order to execute commands for DynamoDB online store:
0 commit comments