arrow-left

All pages
gitbookPowered by GitBook
1 of 5

Loading...

Loading...

Loading...

Loading...

Loading...

Online stores

Please see Online Store for an explanation of online stores.

SQLitechevron-rightRedischevron-rightDatastorechevron-rightDynamoDBchevron-right

Datastore

hashtag
Description

The Datastorearrow-up-right online store provides support for materializing feature values into Cloud Datastore. The data model used to store feature values in Datastore is described in more detail herearrow-up-right.

hashtag
Example

Configuration options are available .

feature_store.yaml
project: my_feature_repo
registry: data/registry.db
provider: gcp
online_store:
  type: datastore
  project_id: my_gcp_project
  namespace: my_datastore_namespace
herearrow-up-right

SQLite

hashtag
Description

The SQLitearrow-up-right online store provides support for materializing feature values into an SQLite database for serving online features.

  • All feature values are stored in an on-disk SQLite database

  • Only the latest feature values are persisted

hashtag
Example

Configuration options are available .

feature_store.yaml
project: my_feature_repo
registry: data/registry.db
provider: local
online_store:
  type: sqlite
  path: data/online_store.db
herearrow-up-right

Redis

hashtag
Description

The Redisarrow-up-right online store provides support for materializing feature values into Redis.

  • Both Redis and Redis Cluster are supported

  • The data model used to store feature values in Redis is described in more detail .

hashtag
Examples

Connecting to a single Redis instance

Connecting to a Redis Cluster with SSL enabled and password authentication

Configuration options are available .

feature_store.yaml
project: my_feature_repo
registry: data/registry.db
provider: local
online_store:
  type: redis
  connection_string: "localhost:6379"
herearrow-up-right
herearrow-up-right
feature_store.yaml
project: my_feature_repo
registry: data/registry.db
provider: local
online_store:
  type: redis
  redis_type: redis_cluster
  connection_string: "redis1:6379,redis2:6379,ssl=true,password=my_password"

DynamoDB

hashtag
Description

The DynamoDBarrow-up-right online store provides support for materializing feature values into AWS DynamoDB.

hashtag
Example

Configuration options are available .

hashtag
Permissions

Feast requires the following permissions in order to execute commands for DynamoDB online store:

The following inline policy can be used to grant Feast the necessary permissions:

Lastly, this IAM role needs to be associated with the desired Redshift cluster. Please follow the official AWS guide for the necessary steps .

Command

Permissions

Resources

Apply

dynamodb:CreateTable

dynamodb:DescribeTable

dynamodb:DeleteTable

arn:aws:dynamodb:<region>:<account_id>:table/*

Materialize

dynamodb.BatchWriteItem

arn:aws:dynamodb:<region>:<account_id>:table/*

Get Online Features

dynamodb.GetItem

arn:aws:dynamodb:<region>:<account_id>:table/*

herearrow-up-right
herearrow-up-right
feature_store.yaml
project: my_feature_repo
registry: data/registry.db
provider: aws
online_store:
  type: dynamodb
  region: us-west-2
{
    "Statement": [
        {
            "Action": [
                "dynamodb:CreateTable",
                "dynamodb:DescribeTable",
                "dynamodb:DeleteTable",
                "dynamodb:BatchWriteItem",
                "dynamodb:GetItem"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:dynamodb:<region>:<account_id>:table/*"
            ]
        }
    ],
    "Version": "2012-10-17"
}