Extending Feast
Custom OnlineStore
Feast allow users to create their own OnlineStore implementations, allowing Feast to read and write feature values to stores other than first-party implementations already in Feast directly. The interface for the is found at here, and consists of four methods that need to be implemented.
Update/Teardown methods
The update
method is should be set up any state in the OnlineStore that is required before any data can be ingested into it. This can be things like tables in sqlite, or keyspaces in Cassandra, etc. The update method should be idempotent. Similarly, the teardown
method should remove any state in the online store.
Write/Read methods
The online_write_batch
method is responsible for writing the data into the online store - and online_read
method is responsible for reading data from the online store.
Custom OfflineStore
Feast allow users to create their own OfflineStore implementations, allowing Feast to read and write feature values to stores other than first-party implementations already in Feast directly. The interface for the is found at here, and consists of two methods that need to be implemented.
Write method
The pull_latest_from_table_or_query
method is used to read data from a source for materialization into the OfflineStore.
Read method
The read method is responsible for reading historical features from the OfflineStore. The feature retrieval may be asynchronous, so the read method is expected to return an object that should produce a DataFrame representing the historical features once the feature retrieval job is complete.
Last updated