Join us December 6 at apply(recsys), the ML event for recommender systems, to hear from speakers at Slack, Cookpad, and ByteDance. Register now →

Join us December 6 at apply(recsys), the ML event for recommender systems, to hear from speakers at Slack, Cookpad, and ByteDance. Register now →

Go feature server benchmarks

  • July 19, 2022
  • Felix Wang


The Feast team published a blog post several months ago with latency benchmarks for all of our online feature retrieval options. Since then, we have built a Go feature server. It is currently in alpha mode, and only supports Redis as an online store. The docs are here. We recommend teams that require extremely low-latency feature serving to try the Go feature server. To test it, we ran our benchmarks against it; the results are presented below.

Benchmark Setup

See for the exact benchmark code. The feature servers were deployed in Docker on AWS EC2 instances (c5.4xlarge, 16vCPU, 64GiB memory).

Data and query patterns

Feast’s feature retrieval primarily manages retrieving the latest values of a given feature for specified entities. In this benchmark, the online stores contain:

  • 25 feature views (with 10 features per feature view) for a total of 250 features
  • 1M entity rows

As described in RFC-031, we simulate different query patterns by additionally varying by number of entity rows in a request (i.e. batch size), requests per second, and the concurrency of the feature server. The goal here is to have numbers that apply to a diverse set of teams, regardless of their scale and typical query patterns. Users are welcome to extend the benchmark suite to better test their own setup.

Online store setup

These benchmarks only used Redis as an online store. We used a single Redis server, run locally with Docker Compose on an EC2 instance. This should closely approximate usage of a separate Redis server in AWS. Typical network latency within the same availability zone in AWS is < 1-2 ms. In these benchmarks, we did not hit limits that required use of a Redis cluster. With higher batch sizes, the benchmark suite would likely only work with Redis clusters. Redis clusters should improve Feast’s performance.

Benchmark Results


  • The Go feature server is very fast (e.g. p99 latency is ~3.9 ms for a single row fetch of 250 features)
  • For the same number of features and batch size, the Go feature server is about 3-5x faster than the Python feature server
    • Despite this, there are still compelling reasons to use Python, depending on your situation (e.g. simplicity of deployment)
  • Feature server latency…
    • scales linearly (moderate slope) with batch size
    • scales linearly (low slope) with number of features
    • does not substantially change as requests per seconds increase

Latency when varying by batch size

For this comparison, we check retrieval of 50 features across 5 feature views.

At p99, we see that Go significantly outperforms Python, by ~3-5x. It also scales much better with batch size.

Batch size

Latency when varying by number of requested features

The Go feature server scales a bit better than the Python feature server in terms of supporting a large number of features:

p99 retrieval times (ms), varying by number of requested features (batch size = 1)

Num features