Back to Feast

Overview

docs/reference/online-stores/overview.md

0.65.04.1 KB
Original Source

Overview

Functionality

Here are the methods exposed by the OnlineStore interface, along with the core functionality supported by the method:

  • online_write_batch: write feature values to the online store
  • online_read: read feature values from the online store
  • update: update infrastructure (e.g. tables) in the online store
  • teardown: teardown infrastructure (e.g. tables) in the online store
  • plan: generate a plan of infrastructure changes based on feature repo changes

There is also additional functionality not properly captured by these interface methods:

  • support for on-demand transforms
  • readable by Python SDK
  • readable by Java
  • readable by Go
  • support for entityless feature views
  • support for concurrent writing to the same key
  • support for ttl (time to live) at retrieval
  • support for deleting expired data

Finally, there are multiple data models for storing the features in the online store. For example, features could be:

  • collocated by feature view
  • collocated by feature service
  • collocated by entity key

See this issue for a discussion around the tradeoffs of each of these data models.

Functionality Matrix

There are currently five core online store implementations: SqliteOnlineStore, RedisOnlineStore, DynamoDBOnlineStore, SnowflakeOnlineStore, and DatastoreOnlineStore. There are several additional implementations contributed by the Feast community (PostgreSQLOnlineStore, HbaseOnlineStore, CassandraOnlineStore and ScyllaDBOnlineStore), which are not guaranteed to be stable or to match the functionality of the core implementations. Details for each specific online store, such as how to configure it in a feature_store.yaml, can be found here.

Below is a matrix indicating which online stores support what functionality.

SqliteRedisDynamoDBSnowflakeDatastorePostgresHbase[Cassandra / Astra DB]MilvusScyllaDB
write feature values to the online storeyesyesyesyesyesyesyesyesyesyes
read feature values from the online storeyesyesyesyesyesyesyesyesyesyes
update infrastructure (e.g. tables) in the online storeyesyesyesyesyesyesyesyesyesyes
teardown infrastructure (e.g. tables) in the online storeyesyesyesyesyesyesyesyesyesyes
generate a plan of infrastructure changesyesnonononononoyesnono
support for on-demand transformsyesyesyesyesyesyesyesyesyesyes
readable by Python SDKyesyesyesyesyesyesyesyesyesyes
readable by Javanoyesnononononononono
readable by Goyesyesnononononononono
support for entityless feature viewsyesyesyesyesyesyesyesyesyesyes
support for concurrent writing to the same keynoyesnonononononoyesno
support for ttl (time to live) at retrievalnoyesnononononononoyes
support for deleting expired datanoyesnononononononoyes
collocated by feature viewyesnoyesyesyesyesyesyesnoyes
collocated by feature servicenononononononononono
collocated by entity keynoyesnonononononoyesno