Back to Feast

Offline feature server

docs/reference/feature-servers/offline-feature-server.md

0.63.02.9 KB
Original Source

Offline feature server

Description

The Offline feature server is an Apache Arrow Flight Server that uses the gRPC communication protocol to exchange data. This server wraps calls to existing offline store implementations and exposes interfaces as Arrow Flight endpoints.

How to configure the server

CLI

There is a CLI command that starts the Offline feature server: feast serve_offline. By default, remote offline server uses port 8815, the port can be overridden with a --port flag.

Deploying as a service on Kubernetes

See this for an example on how to run Feast on Kubernetes using the Operator.

The Offline feature server can be deployed with a slight modification of the FeatureStore CR -

yaml
apiVersion: feast.dev/v1
kind: FeatureStore
metadata:
  name: sample-offline-server
spec:
  feastProject: my_project
  services:
    offlineStore:
      server: {}

More advanced FeatureStore CR examples can be found in the feast-operator samples directory.

Server Example

The complete example can be found under remote-offline-store-example

How to configure the client

Please see the detail how to configure offline store client remote-offline-store.md

Functionality Matrix

The set of functionalities supported by remote offline stores is the same as those supported by offline stores with the SDK, which are described in detail here.

Offline Feature Server Permissions and Access Control

API Endpoints and Permissions

EndpointResource TypePermissionDescription
offline_write_batchFeatureViewWrite OfflineWrite a batch of data to the offline store
write_logged_featuresFeatureServiceWrite OfflineWrite logged features to the offline store
persistDataSourceWrite OfflinePersist the result of a read in the offline store
get_historical_featuresFeatureViewRead OfflineRetrieve historical features
pull_all_from_table_or_queryDataSourceRead OfflinePull all data from a table or read it
pull_latest_from_table_or_queryDataSourceRead OfflinePull the latest data from a table or read it

How to configure Authentication and Authorization ?

Please refer the page for more details on how to configure authentication and authorization.